diff --git a/python-client/windmill-api/.gitignore b/python-client/windmill-api/.gitignore deleted file mode 100644 index 79a2c3d73c..0000000000 --- a/python-client/windmill-api/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -__pycache__/ -build/ -dist/ -*.egg-info/ -.pytest_cache/ - -# pyenv -.python-version - -# Environments -.env -.venv - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# JetBrains -.idea/ - -/coverage.xml -/.coverage diff --git a/python-client/windmill-api/LICENSE b/python-client/windmill-api/LICENSE deleted file mode 100644 index b271f17a84..0000000000 --- a/python-client/windmill-api/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2022 Windmill Labs, Inc - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/python-client/windmill-api/README.md b/python-client/windmill-api/README.md deleted file mode 100644 index 6cc5a7efad..0000000000 --- a/python-client/windmill-api/README.md +++ /dev/null @@ -1,114 +0,0 @@ -# Autogenerated Windmill OpenApi Client -This is the raw autogenerated api client. You are most likely more interested in [wmill](https://pypi.org/project/wmill/) which leverages this client to offer an user friendly experience. We use [this openapi python client generator](https://github.com/openapi-generators/openapi-python-client/) - -# windmill-api -A client library for accessing Windmill API - -## Usage -First, create a client: - -```python -from windmill_api import Client - -client = Client(base_url="https://api.example.com") -``` - -If the endpoints you're going to hit require authentication, use `AuthenticatedClient` instead: - -```python -from windmill_api import AuthenticatedClient - -client = AuthenticatedClient(base_url="https://api.example.com", token="SuperSecretToken") -``` - -Now call your endpoint and use your models: - -```python -from windmill_api.models import MyDataModel -from windmill_api.api.my_tag import get_my_data_model -from windmill_api.types import Response - -with client as client: - my_data: MyDataModel = get_my_data_model.sync(client=client) - # or if you need more info (e.g. status_code) - response: Response[MyDataModel] = get_my_data_model.sync_detailed(client=client) -``` - -Or do the same thing with an async version: - -```python -from windmill_api.models import MyDataModel -from windmill_api.api.my_tag import get_my_data_model -from windmill_api.types import Response - -async with client as client: - my_data: MyDataModel = await get_my_data_model.asyncio(client=client) - response: Response[MyDataModel] = await get_my_data_model.asyncio_detailed(client=client) -``` - -By default, when you're calling an HTTPS API it will attempt to verify that SSL is working correctly. Using certificate verification is highly recommended most of the time, but sometimes you may need to authenticate to a server (especially an internal server) using a custom certificate bundle. - -```python -client = AuthenticatedClient( - base_url="https://internal_api.example.com", - token="SuperSecretToken", - verify_ssl="/path/to/certificate_bundle.pem", -) -``` - -You can also disable certificate validation altogether, but beware that **this is a security risk**. - -```python -client = AuthenticatedClient( - base_url="https://internal_api.example.com", - token="SuperSecretToken", - verify_ssl=False -) -``` - -Things to know: -1. Every path/method combo becomes a Python module with four functions: - 1. `sync`: Blocking request that returns parsed data (if successful) or `None` - 1. `sync_detailed`: Blocking request that always returns a `Request`, optionally with `parsed` set if the request was successful. - 1. `asyncio`: Like `sync` but async instead of blocking - 1. `asyncio_detailed`: Like `sync_detailed` but async instead of blocking - -1. All path/query params, and bodies become method arguments. -1. If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above) -1. Any endpoint which did not have a tag will be in `windmill_api.api.default` - -## Advanced customizations - -There are more settings on the generated `Client` class which let you control more runtime behavior, check out the docstring on that class for more info. You can also customize the underlying `httpx.Client` or `httpx.AsyncClient` (depending on your use-case): - -```python -from windmill_api import Client - -def log_request(request): - print(f"Request event hook: {request.method} {request.url} - Waiting for response") - -def log_response(response): - request = response.request - print(f"Response event hook: {request.method} {request.url} - Status {response.status_code}") - -client = Client( - base_url="https://api.example.com", - httpx_args={"event_hooks": {"request": [log_request], "response": [log_response]}}, -) - -# Or get the underlying httpx client to modify directly with client.get_httpx_client() or client.get_async_httpx_client() -``` - -You can even set the httpx client directly, but beware that this will override any existing settings (e.g., base_url): - -```python -import httpx -from windmill_api import Client - -client = Client( - base_url="https://api.example.com", -) -# Note that base_url needs to be re-set, as would any shared cookies, headers, etc. -client.set_httpx_client(httpx.Client(base_url="https://api.example.com", proxies="http://localhost:8030")) -``` - diff --git a/python-client/windmill-api/pyproject.toml b/python-client/windmill-api/pyproject.toml deleted file mode 100644 index fd0b19e830..0000000000 --- a/python-client/windmill-api/pyproject.toml +++ /dev/null @@ -1,40 +0,0 @@ -[tool.poetry] -name = "windmill-api" -version = "1.245.0" -description = "A client library for accessing Windmill API" -license = "Apache-2.0" - -authors = ["Ruben Fiszel "] - -readme = "README.md" -packages = [ - {include = "windmill_api"}, -] -include = ["CHANGELOG.md", "windmill_api/py.typed"] - -[tool.poetry.dependencies] -python = "^3.8" -httpx = ">=0.20.0,<0.25.0" -attrs = ">=21.3.0" -python-dateutil = "^2.8.0" - -[build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" - -[tool.black] -line-length = 120 -target_version = ['py38', 'py39', 'py310', 'py311'] -exclude = ''' -( - /( - | \.git - | \.venv - | \.mypy_cache - )/ -) -''' - -[tool.isort] -line_length = 120 -profile = "black" diff --git a/python-client/windmill-api/windmill_api/__init__.py b/python-client/windmill-api/windmill_api/__init__.py deleted file mode 100644 index c37a975638..0000000000 --- a/python-client/windmill-api/windmill_api/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ - -""" A client library for accessing Windmill API """ -from .client import AuthenticatedClient, Client - -__all__ = ( - "AuthenticatedClient", - "Client", -) diff --git a/python-client/windmill-api/windmill_api/api/__init__.py b/python-client/windmill-api/windmill_api/api/__init__.py deleted file mode 100644 index dc035f4ce8..0000000000 --- a/python-client/windmill-api/windmill_api/api/__init__.py +++ /dev/null @@ -1 +0,0 @@ -""" Contains methods for accessing the API """ diff --git a/python-client/windmill-api/windmill_api/api/app/__init__.py b/python-client/windmill-api/windmill_api/api/app/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/app/create_app.py b/python-client/windmill-api/windmill_api/api/app/create_app.py deleted file mode 100644 index 76c484457b..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/create_app.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.create_app_json_body import CreateAppJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateAppJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/apps/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateAppJsonBody, - -) -> Response[Any]: - """ create app - - Args: - workspace (str): - json_body (CreateAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateAppJsonBody, - -) -> Response[Any]: - """ create app - - Args: - workspace (str): - json_body (CreateAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/app/delete_app.py b/python-client/windmill-api/windmill_api/api/app/delete_app.py deleted file mode 100644 index 201717cbcc..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/delete_app.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/apps/delete/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete app - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete app - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/app/execute_component.py b/python-client/windmill-api/windmill_api/api/app/execute_component.py deleted file mode 100644 index fe8a103f68..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/execute_component.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.execute_component_json_body import ExecuteComponentJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: ExecuteComponentJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/apps_u/execute_component/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ExecuteComponentJsonBody, - -) -> Response[Any]: - """ executeComponent - - Args: - workspace (str): - path (str): - json_body (ExecuteComponentJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ExecuteComponentJsonBody, - -) -> Response[Any]: - """ executeComponent - - Args: - workspace (str): - path (str): - json_body (ExecuteComponentJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/app/exists_app.py b/python-client/windmill-api/windmill_api/api/app/exists_app.py deleted file mode 100644 index 2871dddaf2..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/exists_app.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/exists/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/get_app_by_path.py b/python-client/windmill-api/windmill_api/api/app/get_app_by_path.py deleted file mode 100644 index f24b254e78..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_app_by_path.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.get_app_by_path_response_200 import GetAppByPathResponse200 -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/get/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetAppByPathResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetAppByPathResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetAppByPathResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAppByPathResponse200]: - """ get app by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAppByPathResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAppByPathResponse200]: - """ get app by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAppByPathResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAppByPathResponse200]: - """ get app by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAppByPathResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAppByPathResponse200]: - """ get app by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAppByPathResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/get_app_by_path_with_draft.py b/python-client/windmill-api/windmill_api/api/app/get_app_by_path_with_draft.py deleted file mode 100644 index 7cebda7290..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_app_by_path_with_draft.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_app_by_path_with_draft_response_200 import GetAppByPathWithDraftResponse200 - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/get/draft/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetAppByPathWithDraftResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetAppByPathWithDraftResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetAppByPathWithDraftResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAppByPathWithDraftResponse200]: - """ get app by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAppByPathWithDraftResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAppByPathWithDraftResponse200]: - """ get app by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAppByPathWithDraftResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAppByPathWithDraftResponse200]: - """ get app by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAppByPathWithDraftResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAppByPathWithDraftResponse200]: - """ get app by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAppByPathWithDraftResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/get_app_by_version.py b/python-client/windmill-api/windmill_api/api/app/get_app_by_version.py deleted file mode 100644 index bc2a48ec47..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_app_by_version.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.get_app_by_version_response_200 import GetAppByVersionResponse200 -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - id: int, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/get/v/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetAppByVersionResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetAppByVersionResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetAppByVersionResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAppByVersionResponse200]: - """ get app by version - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAppByVersionResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAppByVersionResponse200]: - """ get app by version - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAppByVersionResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAppByVersionResponse200]: - """ get app by version - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAppByVersionResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAppByVersionResponse200]: - """ get app by version - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAppByVersionResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/get_app_history_by_path.py b/python-client/windmill-api/windmill_api/api/app/get_app_history_by_path.py deleted file mode 100644 index 14bd3d17a6..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_app_history_by_path.py +++ /dev/null @@ -1,190 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.get_app_history_by_path_response_200_item import GetAppHistoryByPathResponse200Item -from typing import cast -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/history/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['GetAppHistoryByPathResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = GetAppHistoryByPathResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['GetAppHistoryByPathResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['GetAppHistoryByPathResponse200Item']]: - """ get app history by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetAppHistoryByPathResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['GetAppHistoryByPathResponse200Item']]: - """ get app history by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetAppHistoryByPathResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['GetAppHistoryByPathResponse200Item']]: - """ get app history by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetAppHistoryByPathResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['GetAppHistoryByPathResponse200Item']]: - """ get app history by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetAppHistoryByPathResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/get_hub_app_by_id.py b/python-client/windmill-api/windmill_api/api/app/get_hub_app_by_id.py deleted file mode 100644 index a589d54caf..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_hub_app_by_id.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_hub_app_by_id_response_200 import GetHubAppByIdResponse200 - - - -def _get_kwargs( - id: int, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/apps/hub/get/{id}".format(id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetHubAppByIdResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetHubAppByIdResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetHubAppByIdResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetHubAppByIdResponse200]: - """ get hub app by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetHubAppByIdResponse200] - """ - - - kwargs = _get_kwargs( - id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetHubAppByIdResponse200]: - """ get hub app by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetHubAppByIdResponse200 - """ - - - return sync_detailed( - id=id, -client=client, - - ).parsed - -async def asyncio_detailed( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetHubAppByIdResponse200]: - """ get hub app by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetHubAppByIdResponse200] - """ - - - kwargs = _get_kwargs( - id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetHubAppByIdResponse200]: - """ get hub app by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetHubAppByIdResponse200 - """ - - - return (await asyncio_detailed( - id=id, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/get_public_app_by_secret.py b/python-client/windmill-api/windmill_api/api/app/get_public_app_by_secret.py deleted file mode 100644 index 581dfcad32..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_public_app_by_secret.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_public_app_by_secret_response_200 import GetPublicAppBySecretResponse200 - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps_u/public_app/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetPublicAppBySecretResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetPublicAppBySecretResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetPublicAppBySecretResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetPublicAppBySecretResponse200]: - """ get public app by secret - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetPublicAppBySecretResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetPublicAppBySecretResponse200]: - """ get public app by secret - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetPublicAppBySecretResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetPublicAppBySecretResponse200]: - """ get public app by secret - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetPublicAppBySecretResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetPublicAppBySecretResponse200]: - """ get public app by secret - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetPublicAppBySecretResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/get_public_resource.py b/python-client/windmill-api/windmill_api/api/app/get_public_resource.py deleted file mode 100644 index c7b515b8ca..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_public_resource.py +++ /dev/null @@ -1,121 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps_u/public_resource/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get public resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get public resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/app/get_public_secret_of_app.py b/python-client/windmill-api/windmill_api/api/app/get_public_secret_of_app.py deleted file mode 100644 index 01c5ebc1b3..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/get_public_secret_of_app.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/secret_of/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get public secret of app - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get public secret of app - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/app/list_apps.py b/python-client/windmill-api/windmill_api/api/app/list_apps.py deleted file mode 100644 index e92da6b944..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/list_apps.py +++ /dev/null @@ -1,297 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from ...models.list_apps_response_200_item import ListAppsResponse200Item -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - params["order_desc"] = order_desc - - - params["created_by"] = created_by - - - params["path_start"] = path_start - - - params["path_exact"] = path_exact - - - params["starred_only"] = starred_only - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListAppsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListAppsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListAppsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListAppsResponse200Item']]: - """ list all apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListAppsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListAppsResponse200Item']]: - """ list all apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListAppsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListAppsResponse200Item']]: - """ list all apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListAppsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListAppsResponse200Item']]: - """ list all apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListAppsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/list_hub_apps.py b/python-client/windmill-api/windmill_api/api/app/list_hub_apps.py deleted file mode 100644 index 215f57b310..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/list_hub_apps.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.list_hub_apps_response_200 import ListHubAppsResponse200 -from typing import cast -from typing import Dict - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/apps/hub/list", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[ListHubAppsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = ListHubAppsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[ListHubAppsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListHubAppsResponse200]: - """ list all hub apps - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListHubAppsResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListHubAppsResponse200]: - """ list all hub apps - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListHubAppsResponse200 - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListHubAppsResponse200]: - """ list all hub apps - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListHubAppsResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListHubAppsResponse200]: - """ list all hub apps - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListHubAppsResponse200 - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/list_search_app.py b/python-client/windmill-api/windmill_api/api/app/list_search_app.py deleted file mode 100644 index e96ae80c3c..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/list_search_app.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.list_search_app_response_200_item import ListSearchAppResponse200Item -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/list_search".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListSearchAppResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListSearchAppResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListSearchAppResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchAppResponse200Item']]: - """ list apps for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchAppResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchAppResponse200Item']]: - """ list apps for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchAppResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchAppResponse200Item']]: - """ list apps for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchAppResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchAppResponse200Item']]: - """ list apps for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchAppResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/app/update_app.py b/python-client/windmill-api/windmill_api/api/app/update_app.py deleted file mode 100644 index c60ba89053..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/update_app.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_app_json_body import UpdateAppJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateAppJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/apps/update/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateAppJsonBody, - -) -> Response[Any]: - """ update app - - Args: - workspace (str): - path (str): - json_body (UpdateAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateAppJsonBody, - -) -> Response[Any]: - """ update app - - Args: - workspace (str): - path (str): - json_body (UpdateAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/app/update_app_history.py b/python-client/windmill-api/windmill_api/api/app/update_app_history.py deleted file mode 100644 index d751240c9b..0000000000 --- a/python-client/windmill-api/windmill_api/api/app/update_app_history.py +++ /dev/null @@ -1,140 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_app_history_json_body import UpdateAppHistoryJsonBody - - - -def _get_kwargs( - workspace: str, - id: int, - version: int, - *, - json_body: UpdateAppHistoryJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/apps/history_update/a/{id}/v/{version}".format(workspace=workspace,id=id,version=version,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: int, - version: int, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateAppHistoryJsonBody, - -) -> Response[Any]: - """ update app history - - Args: - workspace (str): - id (int): - version (int): - json_body (UpdateAppHistoryJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -version=version, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: int, - version: int, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateAppHistoryJsonBody, - -) -> Response[Any]: - """ update app history - - Args: - workspace (str): - id (int): - version (int): - json_body (UpdateAppHistoryJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -version=version, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/audit/__init__.py b/python-client/windmill-api/windmill_api/api/audit/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/audit/get_audit_log.py b/python-client/windmill-api/windmill_api/api/audit/get_audit_log.py deleted file mode 100644 index 54a6d88582..0000000000 --- a/python-client/windmill-api/windmill_api/api/audit/get_audit_log.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_audit_log_response_200 import GetAuditLogResponse200 - - - -def _get_kwargs( - workspace: str, - id: int, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/audit/get/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetAuditLogResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetAuditLogResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetAuditLogResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAuditLogResponse200]: - """ get audit log (requires admin privilege) - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAuditLogResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAuditLogResponse200]: - """ get audit log (requires admin privilege) - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAuditLogResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetAuditLogResponse200]: - """ get audit log (requires admin privilege) - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetAuditLogResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetAuditLogResponse200]: - """ get audit log (requires admin privilege) - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetAuditLogResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/audit/list_audit_logs.py b/python-client/windmill-api/windmill_api/api/audit/list_audit_logs.py deleted file mode 100644 index 117e767210..0000000000 --- a/python-client/windmill-api/windmill_api/api/audit/list_audit_logs.py +++ /dev/null @@ -1,328 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_audit_logs_action_kind import ListAuditLogsActionKind -import datetime -from dateutil.parser import isoparse -from ...models.list_audit_logs_response_200_item import ListAuditLogsResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - before: Union[Unset, None, datetime.datetime] = UNSET, - after: Union[Unset, None, datetime.datetime] = UNSET, - username: Union[Unset, None, str] = UNSET, - operation: Union[Unset, None, str] = UNSET, - resource: Union[Unset, None, str] = UNSET, - action_kind: Union[Unset, None, ListAuditLogsActionKind] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - json_before: Union[Unset, None, str] = UNSET - if not isinstance(before, Unset): - json_before = before.isoformat() if before else None - - params["before"] = json_before - - - json_after: Union[Unset, None, str] = UNSET - if not isinstance(after, Unset): - json_after = after.isoformat() if after else None - - params["after"] = json_after - - - params["username"] = username - - - params["operation"] = operation - - - params["resource"] = resource - - - json_action_kind: Union[Unset, None, str] = UNSET - if not isinstance(action_kind, Unset): - json_action_kind = action_kind.value if action_kind else None - - params["action_kind"] = json_action_kind - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/audit/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListAuditLogsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListAuditLogsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListAuditLogsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - before: Union[Unset, None, datetime.datetime] = UNSET, - after: Union[Unset, None, datetime.datetime] = UNSET, - username: Union[Unset, None, str] = UNSET, - operation: Union[Unset, None, str] = UNSET, - resource: Union[Unset, None, str] = UNSET, - action_kind: Union[Unset, None, ListAuditLogsActionKind] = UNSET, - -) -> Response[List['ListAuditLogsResponse200Item']]: - """ list audit logs (requires admin privilege) - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - before (Union[Unset, None, datetime.datetime]): - after (Union[Unset, None, datetime.datetime]): - username (Union[Unset, None, str]): - operation (Union[Unset, None, str]): - resource (Union[Unset, None, str]): - action_kind (Union[Unset, None, ListAuditLogsActionKind]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListAuditLogsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -before=before, -after=after, -username=username, -operation=operation, -resource=resource, -action_kind=action_kind, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - before: Union[Unset, None, datetime.datetime] = UNSET, - after: Union[Unset, None, datetime.datetime] = UNSET, - username: Union[Unset, None, str] = UNSET, - operation: Union[Unset, None, str] = UNSET, - resource: Union[Unset, None, str] = UNSET, - action_kind: Union[Unset, None, ListAuditLogsActionKind] = UNSET, - -) -> Optional[List['ListAuditLogsResponse200Item']]: - """ list audit logs (requires admin privilege) - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - before (Union[Unset, None, datetime.datetime]): - after (Union[Unset, None, datetime.datetime]): - username (Union[Unset, None, str]): - operation (Union[Unset, None, str]): - resource (Union[Unset, None, str]): - action_kind (Union[Unset, None, ListAuditLogsActionKind]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListAuditLogsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -before=before, -after=after, -username=username, -operation=operation, -resource=resource, -action_kind=action_kind, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - before: Union[Unset, None, datetime.datetime] = UNSET, - after: Union[Unset, None, datetime.datetime] = UNSET, - username: Union[Unset, None, str] = UNSET, - operation: Union[Unset, None, str] = UNSET, - resource: Union[Unset, None, str] = UNSET, - action_kind: Union[Unset, None, ListAuditLogsActionKind] = UNSET, - -) -> Response[List['ListAuditLogsResponse200Item']]: - """ list audit logs (requires admin privilege) - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - before (Union[Unset, None, datetime.datetime]): - after (Union[Unset, None, datetime.datetime]): - username (Union[Unset, None, str]): - operation (Union[Unset, None, str]): - resource (Union[Unset, None, str]): - action_kind (Union[Unset, None, ListAuditLogsActionKind]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListAuditLogsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -before=before, -after=after, -username=username, -operation=operation, -resource=resource, -action_kind=action_kind, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - before: Union[Unset, None, datetime.datetime] = UNSET, - after: Union[Unset, None, datetime.datetime] = UNSET, - username: Union[Unset, None, str] = UNSET, - operation: Union[Unset, None, str] = UNSET, - resource: Union[Unset, None, str] = UNSET, - action_kind: Union[Unset, None, ListAuditLogsActionKind] = UNSET, - -) -> Optional[List['ListAuditLogsResponse200Item']]: - """ list audit logs (requires admin privilege) - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - before (Union[Unset, None, datetime.datetime]): - after (Union[Unset, None, datetime.datetime]): - username (Union[Unset, None, str]): - operation (Union[Unset, None, str]): - resource (Union[Unset, None, str]): - action_kind (Union[Unset, None, ListAuditLogsActionKind]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListAuditLogsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -before=before, -after=after, -username=username, -operation=operation, -resource=resource, -action_kind=action_kind, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/capture/__init__.py b/python-client/windmill-api/windmill_api/api/capture/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/capture/create_capture.py b/python-client/windmill-api/windmill_api/api/capture/create_capture.py deleted file mode 100644 index 02f3ec4b82..0000000000 --- a/python-client/windmill-api/windmill_api/api/capture/create_capture.py +++ /dev/null @@ -1,121 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "put", - "url": "/w/{workspace}/capture/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.CREATED: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ create flow preview capture - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ create flow preview capture - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/capture/get_capture.py b/python-client/windmill-api/windmill_api/api/capture/get_capture.py deleted file mode 100644 index 74a8bc63ee..0000000000 --- a/python-client/windmill-api/windmill_api/api/capture/get_capture.py +++ /dev/null @@ -1,123 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/capture/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if response.status_code == HTTPStatus.NOT_FOUND: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get flow preview capture - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get flow preview capture - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/capture/update_capture.py b/python-client/windmill-api/windmill_api/api/capture/update_capture.py deleted file mode 100644 index 424ec8a421..0000000000 --- a/python-client/windmill-api/windmill_api/api/capture/update_capture.py +++ /dev/null @@ -1,121 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/capture_u/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.NO_CONTENT: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ update flow preview capture - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ update flow preview capture - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/config/__init__.py b/python-client/windmill-api/windmill_api/api/config/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/config/delete_config.py b/python-client/windmill-api/windmill_api/api/config/delete_config.py deleted file mode 100644 index 1ab3fe50ad..0000000000 --- a/python-client/windmill-api/windmill_api/api/config/delete_config.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/configs/update/{name}".format(name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ Delete Config - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ Delete Config - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/config/get_config.py b/python-client/windmill-api/windmill_api/api/config/get_config.py deleted file mode 100644 index fb1b363f65..0000000000 --- a/python-client/windmill-api/windmill_api/api/config/get_config.py +++ /dev/null @@ -1,114 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/configs/get/{name}".format(name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get config - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get config - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/config/list_worker_groups.py b/python-client/windmill-api/windmill_api/api/config/list_worker_groups.py deleted file mode 100644 index 708661ec97..0000000000 --- a/python-client/windmill-api/windmill_api/api/config/list_worker_groups.py +++ /dev/null @@ -1,156 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_worker_groups_response_200_item import ListWorkerGroupsResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/configs/list_worker_groups", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListWorkerGroupsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListWorkerGroupsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListWorkerGroupsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListWorkerGroupsResponse200Item']]: - """ list worker groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkerGroupsResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListWorkerGroupsResponse200Item']]: - """ list worker groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkerGroupsResponse200Item'] - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListWorkerGroupsResponse200Item']]: - """ list worker groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkerGroupsResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListWorkerGroupsResponse200Item']]: - """ list worker groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkerGroupsResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/config/update_config.py b/python-client/windmill-api/windmill_api/api/config/update_config.py deleted file mode 100644 index d91623cb90..0000000000 --- a/python-client/windmill-api/windmill_api/api/config/update_config.py +++ /dev/null @@ -1,122 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - name: str, - *, - json_body: Any, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body - - - - - return { - "method": "post", - "url": "/configs/update/{name}".format(name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: Any, - -) -> Response[Any]: - """ Update config - - Args: - name (str): - json_body (Any): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: Any, - -) -> Response[Any]: - """ Update config - - Args: - name (str): - json_body (Any): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/draft/__init__.py b/python-client/windmill-api/windmill_api/api/draft/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/draft/create_draft.py b/python-client/windmill-api/windmill_api/api/draft/create_draft.py deleted file mode 100644 index f388270259..0000000000 --- a/python-client/windmill-api/windmill_api/api/draft/create_draft.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.create_draft_json_body import CreateDraftJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateDraftJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/drafts/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateDraftJsonBody, - -) -> Response[Any]: - """ create draft - - Args: - workspace (str): - json_body (CreateDraftJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateDraftJsonBody, - -) -> Response[Any]: - """ create draft - - Args: - workspace (str): - json_body (CreateDraftJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/draft/delete_draft.py b/python-client/windmill-api/windmill_api/api/draft/delete_draft.py deleted file mode 100644 index 53da83664a..0000000000 --- a/python-client/windmill-api/windmill_api/api/draft/delete_draft.py +++ /dev/null @@ -1,127 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.delete_draft_kind import DeleteDraftKind - - - -def _get_kwargs( - workspace: str, - kind: DeleteDraftKind, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/drafts/delete/{kind}/{path}".format(workspace=workspace,kind=kind,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - kind: DeleteDraftKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete draft - - Args: - workspace (str): - kind (DeleteDraftKind): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - kind: DeleteDraftKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete draft - - Args: - workspace (str): - kind (DeleteDraftKind): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/favorite/__init__.py b/python-client/windmill-api/windmill_api/api/favorite/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/favorite/star.py b/python-client/windmill-api/windmill_api/api/favorite/star.py deleted file mode 100644 index 3f758ec534..0000000000 --- a/python-client/windmill-api/windmill_api/api/favorite/star.py +++ /dev/null @@ -1,128 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.star_json_body import StarJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: StarJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/favorites/star".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: StarJsonBody, - -) -> Response[Any]: - """ star item - - Args: - workspace (str): - json_body (StarJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: StarJsonBody, - -) -> Response[Any]: - """ star item - - Args: - workspace (str): - json_body (StarJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/favorite/unstar.py b/python-client/windmill-api/windmill_api/api/favorite/unstar.py deleted file mode 100644 index e69471cda8..0000000000 --- a/python-client/windmill-api/windmill_api/api/favorite/unstar.py +++ /dev/null @@ -1,128 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.unstar_json_body import UnstarJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: UnstarJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/favorites/unstar".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UnstarJsonBody, - -) -> Response[Any]: - """ unstar item - - Args: - workspace (str): - json_body (UnstarJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UnstarJsonBody, - -) -> Response[Any]: - """ unstar item - - Args: - workspace (str): - json_body (UnstarJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/flow/__init__.py b/python-client/windmill-api/windmill_api/api/flow/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/flow/archive_flow_by_path.py b/python-client/windmill-api/windmill_api/api/flow/archive_flow_by_path.py deleted file mode 100644 index 6abfcbe7e8..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/archive_flow_by_path.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.archive_flow_by_path_json_body import ArchiveFlowByPathJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: ArchiveFlowByPathJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/flows/archive/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ArchiveFlowByPathJsonBody, - -) -> Response[Any]: - """ archive flow by path - - Args: - workspace (str): - path (str): - json_body (ArchiveFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ArchiveFlowByPathJsonBody, - -) -> Response[Any]: - """ archive flow by path - - Args: - workspace (str): - path (str): - json_body (ArchiveFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/flow/create_flow.py b/python-client/windmill-api/windmill_api/api/flow/create_flow.py deleted file mode 100644 index 7506b195c7..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/create_flow.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.create_flow_json_body import CreateFlowJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateFlowJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/flows/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateFlowJsonBody, - -) -> Response[Any]: - """ create flow - - Args: - workspace (str): - json_body (CreateFlowJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateFlowJsonBody, - -) -> Response[Any]: - """ create flow - - Args: - workspace (str): - json_body (CreateFlowJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/flow/delete_flow_by_path.py b/python-client/windmill-api/windmill_api/api/flow/delete_flow_by_path.py deleted file mode 100644 index 1485d3e80a..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/delete_flow_by_path.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/flows/delete/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/flow/exists_flow_by_path.py b/python-client/windmill-api/windmill_api/api/flow/exists_flow_by_path.py deleted file mode 100644 index 991d5cb346..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/exists_flow_by_path.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/flows/exists/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ exists flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ exists flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ exists flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ exists flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/get_flow_by_path.py b/python-client/windmill-api/windmill_api/api/flow/get_flow_by_path.py deleted file mode 100644 index 90d6c2d2ba..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/get_flow_by_path.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_flow_by_path_response_200 import GetFlowByPathResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/flows/get/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetFlowByPathResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetFlowByPathResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetFlowByPathResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFlowByPathResponse200]: - """ get flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFlowByPathResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFlowByPathResponse200]: - """ get flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFlowByPathResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFlowByPathResponse200]: - """ get flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFlowByPathResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFlowByPathResponse200]: - """ get flow by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFlowByPathResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/get_flow_by_path_with_draft.py b/python-client/windmill-api/windmill_api/api/flow/get_flow_by_path_with_draft.py deleted file mode 100644 index 273dcfda42..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/get_flow_by_path_with_draft.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_flow_by_path_with_draft_response_200 import GetFlowByPathWithDraftResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/flows/get/draft/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetFlowByPathWithDraftResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetFlowByPathWithDraftResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetFlowByPathWithDraftResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFlowByPathWithDraftResponse200]: - """ get flow by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFlowByPathWithDraftResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFlowByPathWithDraftResponse200]: - """ get flow by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFlowByPathWithDraftResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFlowByPathWithDraftResponse200]: - """ get flow by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFlowByPathWithDraftResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFlowByPathWithDraftResponse200]: - """ get flow by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFlowByPathWithDraftResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/get_flow_input_history_by_path.py b/python-client/windmill-api/windmill_api/api/flow/get_flow_input_history_by_path.py deleted file mode 100644 index 62a57eb753..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/get_flow_input_history_by_path.py +++ /dev/null @@ -1,230 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.get_flow_input_history_by_path_response_200_item import GetFlowInputHistoryByPathResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/flows/input_history/p/{path}".format(workspace=workspace,path=path,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['GetFlowInputHistoryByPathResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = GetFlowInputHistoryByPathResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['GetFlowInputHistoryByPathResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['GetFlowInputHistoryByPathResponse200Item']]: - """ list inputs for previous completed flow jobs - - Args: - workspace (str): - path (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetFlowInputHistoryByPathResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['GetFlowInputHistoryByPathResponse200Item']]: - """ list inputs for previous completed flow jobs - - Args: - workspace (str): - path (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetFlowInputHistoryByPathResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['GetFlowInputHistoryByPathResponse200Item']]: - """ list inputs for previous completed flow jobs - - Args: - workspace (str): - path (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetFlowInputHistoryByPathResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['GetFlowInputHistoryByPathResponse200Item']]: - """ list inputs for previous completed flow jobs - - Args: - workspace (str): - path (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetFlowInputHistoryByPathResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/get_hub_flow_by_id.py b/python-client/windmill-api/windmill_api/api/flow/get_hub_flow_by_id.py deleted file mode 100644 index e0ef969cc7..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/get_hub_flow_by_id.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.get_hub_flow_by_id_response_200 import GetHubFlowByIdResponse200 -from typing import cast -from typing import Dict - - - -def _get_kwargs( - id: int, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/flows/hub/get/{id}".format(id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetHubFlowByIdResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetHubFlowByIdResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetHubFlowByIdResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetHubFlowByIdResponse200]: - """ get hub flow by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetHubFlowByIdResponse200] - """ - - - kwargs = _get_kwargs( - id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetHubFlowByIdResponse200]: - """ get hub flow by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetHubFlowByIdResponse200 - """ - - - return sync_detailed( - id=id, -client=client, - - ).parsed - -async def asyncio_detailed( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetHubFlowByIdResponse200]: - """ get hub flow by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetHubFlowByIdResponse200] - """ - - - kwargs = _get_kwargs( - id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetHubFlowByIdResponse200]: - """ get hub flow by id - - Args: - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetHubFlowByIdResponse200 - """ - - - return (await asyncio_detailed( - id=id, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/list_flow_paths.py b/python-client/windmill-api/windmill_api/api/flow/list_flow_paths.py deleted file mode 100644 index f92a3b22c6..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/list_flow_paths.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/flows/list_paths".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ list all flow paths - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ list all flow paths - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/flow/list_flows.py b/python-client/windmill-api/windmill_api/api/flow/list_flows.py deleted file mode 100644 index e1307247c5..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/list_flows.py +++ /dev/null @@ -1,313 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_flows_response_200_item import ListFlowsResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - params["order_desc"] = order_desc - - - params["created_by"] = created_by - - - params["path_start"] = path_start - - - params["path_exact"] = path_exact - - - params["show_archived"] = show_archived - - - params["starred_only"] = starred_only - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/flows/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListFlowsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListFlowsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListFlowsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListFlowsResponse200Item']]: - """ list all flows - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListFlowsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -show_archived=show_archived, -starred_only=starred_only, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListFlowsResponse200Item']]: - """ list all flows - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListFlowsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -show_archived=show_archived, -starred_only=starred_only, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListFlowsResponse200Item']]: - """ list all flows - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListFlowsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -show_archived=show_archived, -starred_only=starred_only, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListFlowsResponse200Item']]: - """ list all flows - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListFlowsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -show_archived=show_archived, -starred_only=starred_only, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/list_hub_flows.py b/python-client/windmill-api/windmill_api/api/flow/list_hub_flows.py deleted file mode 100644 index f86a6b31f1..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/list_hub_flows.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.list_hub_flows_response_200 import ListHubFlowsResponse200 -from typing import cast -from typing import Dict - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/flows/hub/list", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[ListHubFlowsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = ListHubFlowsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[ListHubFlowsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListHubFlowsResponse200]: - """ list all hub flows - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListHubFlowsResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListHubFlowsResponse200]: - """ list all hub flows - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListHubFlowsResponse200 - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListHubFlowsResponse200]: - """ list all hub flows - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListHubFlowsResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListHubFlowsResponse200]: - """ list all hub flows - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListHubFlowsResponse200 - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/list_search_flow.py b/python-client/windmill-api/windmill_api/api/flow/list_search_flow.py deleted file mode 100644 index 524f85ca01..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/list_search_flow.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_search_flow_response_200_item import ListSearchFlowResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/flows/list_search".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListSearchFlowResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListSearchFlowResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListSearchFlowResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchFlowResponse200Item']]: - """ list flows for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchFlowResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchFlowResponse200Item']]: - """ list flows for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchFlowResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchFlowResponse200Item']]: - """ list flows for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchFlowResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchFlowResponse200Item']]: - """ list flows for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchFlowResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/flow/toggle_workspace_error_handler_for_flow.py b/python-client/windmill-api/windmill_api/api/flow/toggle_workspace_error_handler_for_flow.py deleted file mode 100644 index 1c4fc9587f..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/toggle_workspace_error_handler_for_flow.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.toggle_workspace_error_handler_for_flow_json_body import ToggleWorkspaceErrorHandlerForFlowJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: ToggleWorkspaceErrorHandlerForFlowJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/flows/toggle_workspace_error_handler/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ToggleWorkspaceErrorHandlerForFlowJsonBody, - -) -> Response[Any]: - """ Toggle ON and OFF the workspace error handler for a given flow - - Args: - workspace (str): - path (str): - json_body (ToggleWorkspaceErrorHandlerForFlowJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ToggleWorkspaceErrorHandlerForFlowJsonBody, - -) -> Response[Any]: - """ Toggle ON and OFF the workspace error handler for a given flow - - Args: - workspace (str): - path (str): - json_body (ToggleWorkspaceErrorHandlerForFlowJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/flow/update_flow.py b/python-client/windmill-api/windmill_api/api/flow/update_flow.py deleted file mode 100644 index 88e363ae7e..0000000000 --- a/python-client/windmill-api/windmill_api/api/flow/update_flow.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_flow_json_body import UpdateFlowJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateFlowJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/flows/update/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateFlowJsonBody, - -) -> Response[Any]: - """ update flow - - Args: - workspace (str): - path (str): - json_body (UpdateFlowJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateFlowJsonBody, - -) -> Response[Any]: - """ update flow - - Args: - workspace (str): - path (str): - json_body (UpdateFlowJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/folder/__init__.py b/python-client/windmill-api/windmill_api/api/folder/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/folder/add_owner_to_folder.py b/python-client/windmill-api/windmill_api/api/folder/add_owner_to_folder.py deleted file mode 100644 index ab9605fe2b..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/add_owner_to_folder.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.add_owner_to_folder_json_body import AddOwnerToFolderJsonBody - - - -def _get_kwargs( - workspace: str, - name: str, - *, - json_body: AddOwnerToFolderJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/folders/addowner/{name}".format(workspace=workspace,name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddOwnerToFolderJsonBody, - -) -> Response[Any]: - """ add owner to folder - - Args: - workspace (str): - name (str): - json_body (AddOwnerToFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddOwnerToFolderJsonBody, - -) -> Response[Any]: - """ add owner to folder - - Args: - workspace (str): - name (str): - json_body (AddOwnerToFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/folder/create_folder.py b/python-client/windmill-api/windmill_api/api/folder/create_folder.py deleted file mode 100644 index 1da69b0f86..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/create_folder.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.create_folder_json_body import CreateFolderJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateFolderJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/folders/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateFolderJsonBody, - -) -> Response[Any]: - """ create folder - - Args: - workspace (str): - json_body (CreateFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateFolderJsonBody, - -) -> Response[Any]: - """ create folder - - Args: - workspace (str): - json_body (CreateFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/folder/delete_folder.py b/python-client/windmill-api/windmill_api/api/folder/delete_folder.py deleted file mode 100644 index 1eaf3b4aba..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/delete_folder.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/folders/delete/{name}".format(workspace=workspace,name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete folder - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete folder - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/folder/get_folder.py b/python-client/windmill-api/windmill_api/api/folder/get_folder.py deleted file mode 100644 index 7f9b4046b4..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/get_folder.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_folder_response_200 import GetFolderResponse200 - - - -def _get_kwargs( - workspace: str, - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/folders/get/{name}".format(workspace=workspace,name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetFolderResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetFolderResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetFolderResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFolderResponse200]: - """ get folder - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFolderResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFolderResponse200]: - """ get folder - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFolderResponse200 - """ - - - return sync_detailed( - workspace=workspace, -name=name, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFolderResponse200]: - """ get folder - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFolderResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFolderResponse200]: - """ get folder - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFolderResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -name=name, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/folder/get_folder_usage.py b/python-client/windmill-api/windmill_api/api/folder/get_folder_usage.py deleted file mode 100644 index b386038a97..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/get_folder_usage.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_folder_usage_response_200 import GetFolderUsageResponse200 - - - -def _get_kwargs( - workspace: str, - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/folders/getusage/{name}".format(workspace=workspace,name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetFolderUsageResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetFolderUsageResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetFolderUsageResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFolderUsageResponse200]: - """ get folder usage - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFolderUsageResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFolderUsageResponse200]: - """ get folder usage - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFolderUsageResponse200 - """ - - - return sync_detailed( - workspace=workspace, -name=name, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetFolderUsageResponse200]: - """ get folder usage - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetFolderUsageResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetFolderUsageResponse200]: - """ get folder usage - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetFolderUsageResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -name=name, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/folder/list_folder_names.py b/python-client/windmill-api/windmill_api/api/folder/list_folder_names.py deleted file mode 100644 index 81147354ed..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/list_folder_names.py +++ /dev/null @@ -1,191 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import Optional -from typing import cast, List -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["only_member_of"] = only_member_of - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/folders/listnames".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(List[str], response.json()) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Response[List[str]]: - """ list folder names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -only_member_of=only_member_of, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Optional[List[str]]: - """ list folder names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -only_member_of=only_member_of, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Response[List[str]]: - """ list folder names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -only_member_of=only_member_of, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Optional[List[str]]: - """ list folder names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -only_member_of=only_member_of, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/folder/list_folders.py b/python-client/windmill-api/windmill_api/api/folder/list_folders.py deleted file mode 100644 index 90c640c42d..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/list_folders.py +++ /dev/null @@ -1,217 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_folders_response_200_item import ListFoldersResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/folders/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListFoldersResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListFoldersResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListFoldersResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListFoldersResponse200Item']]: - """ list folders - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListFoldersResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListFoldersResponse200Item']]: - """ list folders - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListFoldersResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListFoldersResponse200Item']]: - """ list folders - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListFoldersResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListFoldersResponse200Item']]: - """ list folders - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListFoldersResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/folder/remove_owner_to_folder.py b/python-client/windmill-api/windmill_api/api/folder/remove_owner_to_folder.py deleted file mode 100644 index fdf9d5383a..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/remove_owner_to_folder.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.remove_owner_to_folder_json_body import RemoveOwnerToFolderJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - name: str, - *, - json_body: RemoveOwnerToFolderJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/folders/removeowner/{name}".format(workspace=workspace,name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveOwnerToFolderJsonBody, - -) -> Response[Any]: - """ remove owner to folder - - Args: - workspace (str): - name (str): - json_body (RemoveOwnerToFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveOwnerToFolderJsonBody, - -) -> Response[Any]: - """ remove owner to folder - - Args: - workspace (str): - name (str): - json_body (RemoveOwnerToFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/folder/update_folder.py b/python-client/windmill-api/windmill_api/api/folder/update_folder.py deleted file mode 100644 index 58d6dd7822..0000000000 --- a/python-client/windmill-api/windmill_api/api/folder/update_folder.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_folder_json_body import UpdateFolderJsonBody - - - -def _get_kwargs( - workspace: str, - name: str, - *, - json_body: UpdateFolderJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/folders/update/{name}".format(workspace=workspace,name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateFolderJsonBody, - -) -> Response[Any]: - """ update folder - - Args: - workspace (str): - name (str): - json_body (UpdateFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateFolderJsonBody, - -) -> Response[Any]: - """ update folder - - Args: - workspace (str): - name (str): - json_body (UpdateFolderJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/granular_acl/__init__.py b/python-client/windmill-api/windmill_api/api/granular_acl/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/granular_acl/add_granular_acls.py b/python-client/windmill-api/windmill_api/api/granular_acl/add_granular_acls.py deleted file mode 100644 index f945063c35..0000000000 --- a/python-client/windmill-api/windmill_api/api/granular_acl/add_granular_acls.py +++ /dev/null @@ -1,141 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.add_granular_acls_json_body import AddGranularAclsJsonBody -from typing import Dict -from ...models.add_granular_acls_kind import AddGranularAclsKind - - - -def _get_kwargs( - workspace: str, - kind: AddGranularAclsKind, - path: str, - *, - json_body: AddGranularAclsJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/acls/add/{kind}/{path}".format(workspace=workspace,kind=kind,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - kind: AddGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddGranularAclsJsonBody, - -) -> Response[Any]: - """ add granular acls - - Args: - workspace (str): - kind (AddGranularAclsKind): - path (str): - json_body (AddGranularAclsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - kind: AddGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddGranularAclsJsonBody, - -) -> Response[Any]: - """ add granular acls - - Args: - workspace (str): - kind (AddGranularAclsKind): - path (str): - json_body (AddGranularAclsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/granular_acl/get_granular_acls.py b/python-client/windmill-api/windmill_api/api/granular_acl/get_granular_acls.py deleted file mode 100644 index af40966013..0000000000 --- a/python-client/windmill-api/windmill_api/api/granular_acl/get_granular_acls.py +++ /dev/null @@ -1,198 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.get_granular_acls_kind import GetGranularAclsKind -from typing import cast -from ...models.get_granular_acls_response_200 import GetGranularAclsResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - kind: GetGranularAclsKind, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/acls/get/{kind}/{path}".format(workspace=workspace,kind=kind,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetGranularAclsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetGranularAclsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetGranularAclsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - kind: GetGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetGranularAclsResponse200]: - """ get granular acls - - Args: - workspace (str): - kind (GetGranularAclsKind): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetGranularAclsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - kind: GetGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetGranularAclsResponse200]: - """ get granular acls - - Args: - workspace (str): - kind (GetGranularAclsKind): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetGranularAclsResponse200 - """ - - - return sync_detailed( - workspace=workspace, -kind=kind, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - kind: GetGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetGranularAclsResponse200]: - """ get granular acls - - Args: - workspace (str): - kind (GetGranularAclsKind): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetGranularAclsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - kind: GetGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetGranularAclsResponse200]: - """ get granular acls - - Args: - workspace (str): - kind (GetGranularAclsKind): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetGranularAclsResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -kind=kind, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/granular_acl/remove_granular_acls.py b/python-client/windmill-api/windmill_api/api/granular_acl/remove_granular_acls.py deleted file mode 100644 index ae82736e23..0000000000 --- a/python-client/windmill-api/windmill_api/api/granular_acl/remove_granular_acls.py +++ /dev/null @@ -1,141 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.remove_granular_acls_json_body import RemoveGranularAclsJsonBody -from typing import cast -from ...models.remove_granular_acls_kind import RemoveGranularAclsKind -from typing import Dict - - - -def _get_kwargs( - workspace: str, - kind: RemoveGranularAclsKind, - path: str, - *, - json_body: RemoveGranularAclsJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/acls/remove/{kind}/{path}".format(workspace=workspace,kind=kind,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - kind: RemoveGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveGranularAclsJsonBody, - -) -> Response[Any]: - """ remove granular acls - - Args: - workspace (str): - kind (RemoveGranularAclsKind): - path (str): - json_body (RemoveGranularAclsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - kind: RemoveGranularAclsKind, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveGranularAclsJsonBody, - -) -> Response[Any]: - """ remove granular acls - - Args: - workspace (str): - kind (RemoveGranularAclsKind): - path (str): - json_body (RemoveGranularAclsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -kind=kind, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/__init__.py b/python-client/windmill-api/windmill_api/api/group/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/group/add_user_to_group.py b/python-client/windmill-api/windmill_api/api/group/add_user_to_group.py deleted file mode 100644 index 7b322ed42f..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/add_user_to_group.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.add_user_to_group_json_body import AddUserToGroupJsonBody - - - -def _get_kwargs( - workspace: str, - name: str, - *, - json_body: AddUserToGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/groups/adduser/{name}".format(workspace=workspace,name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddUserToGroupJsonBody, - -) -> Response[Any]: - """ add user to group - - Args: - workspace (str): - name (str): - json_body (AddUserToGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddUserToGroupJsonBody, - -) -> Response[Any]: - """ add user to group - - Args: - workspace (str): - name (str): - json_body (AddUserToGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/add_user_to_instance_group.py b/python-client/windmill-api/windmill_api/api/group/add_user_to_instance_group.py deleted file mode 100644 index db6481b86a..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/add_user_to_instance_group.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.add_user_to_instance_group_json_body import AddUserToInstanceGroupJsonBody - - - -def _get_kwargs( - name: str, - *, - json_body: AddUserToInstanceGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/groups/adduser/{name}".format(name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddUserToInstanceGroupJsonBody, - -) -> Response[Any]: - """ add user to instance group - - Args: - name (str): - json_body (AddUserToInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddUserToInstanceGroupJsonBody, - -) -> Response[Any]: - """ add user to instance group - - Args: - name (str): - json_body (AddUserToInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/create_group.py b/python-client/windmill-api/windmill_api/api/group/create_group.py deleted file mode 100644 index c28aed8a35..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/create_group.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.create_group_json_body import CreateGroupJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/groups/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateGroupJsonBody, - -) -> Response[Any]: - """ create group - - Args: - workspace (str): - json_body (CreateGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateGroupJsonBody, - -) -> Response[Any]: - """ create group - - Args: - workspace (str): - json_body (CreateGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/create_instance_group.py b/python-client/windmill-api/windmill_api/api/group/create_instance_group.py deleted file mode 100644 index bb83a0dc7f..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/create_instance_group.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.create_instance_group_json_body import CreateInstanceGroupJsonBody - - - -def _get_kwargs( - *, - json_body: CreateInstanceGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/groups/create", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateInstanceGroupJsonBody, - -) -> Response[Any]: - """ create instance group - - Args: - json_body (CreateInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateInstanceGroupJsonBody, - -) -> Response[Any]: - """ create instance group - - Args: - json_body (CreateInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/delete_group.py b/python-client/windmill-api/windmill_api/api/group/delete_group.py deleted file mode 100644 index 2a0a5ff755..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/delete_group.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/groups/delete/{name}".format(workspace=workspace,name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete group - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete group - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/delete_instance_group.py b/python-client/windmill-api/windmill_api/api/group/delete_instance_group.py deleted file mode 100644 index 8db31786d9..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/delete_instance_group.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/groups/delete/{name}".format(name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete instance group - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete instance group - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/get_group.py b/python-client/windmill-api/windmill_api/api/group/get_group.py deleted file mode 100644 index 98d6909a4f..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/get_group.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_group_response_200 import GetGroupResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/groups/get/{name}".format(workspace=workspace,name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetGroupResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetGroupResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetGroupResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetGroupResponse200]: - """ get group - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetGroupResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetGroupResponse200]: - """ get group - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetGroupResponse200 - """ - - - return sync_detailed( - workspace=workspace, -name=name, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetGroupResponse200]: - """ get group - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetGroupResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetGroupResponse200]: - """ get group - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetGroupResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -name=name, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/group/get_instance_group.py b/python-client/windmill-api/windmill_api/api/group/get_instance_group.py deleted file mode 100644 index 945944be26..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/get_instance_group.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_instance_group_response_200 import GetInstanceGroupResponse200 - - - -def _get_kwargs( - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/groups/get/{name}".format(name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetInstanceGroupResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetInstanceGroupResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetInstanceGroupResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetInstanceGroupResponse200]: - """ get instance group - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetInstanceGroupResponse200] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetInstanceGroupResponse200]: - """ get instance group - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetInstanceGroupResponse200 - """ - - - return sync_detailed( - name=name, -client=client, - - ).parsed - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetInstanceGroupResponse200]: - """ get instance group - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetInstanceGroupResponse200] - """ - - - kwargs = _get_kwargs( - name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetInstanceGroupResponse200]: - """ get instance group - - Args: - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetInstanceGroupResponse200 - """ - - - return (await asyncio_detailed( - name=name, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/group/list_group_names.py b/python-client/windmill-api/windmill_api/api/group/list_group_names.py deleted file mode 100644 index 8f3efba58d..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/list_group_names.py +++ /dev/null @@ -1,191 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import Optional -from typing import cast, List -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["only_member_of"] = only_member_of - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/groups/listnames".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(List[str], response.json()) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Response[List[str]]: - """ list group names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -only_member_of=only_member_of, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Optional[List[str]]: - """ list group names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -only_member_of=only_member_of, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Response[List[str]]: - """ list group names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -only_member_of=only_member_of, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - only_member_of: Union[Unset, None, bool] = UNSET, - -) -> Optional[List[str]]: - """ list group names - - Args: - workspace (str): - only_member_of (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -only_member_of=only_member_of, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/group/list_groups.py b/python-client/windmill-api/windmill_api/api/group/list_groups.py deleted file mode 100644 index 95778f3901..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/list_groups.py +++ /dev/null @@ -1,217 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from ...models.list_groups_response_200_item import ListGroupsResponse200Item -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/groups/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListGroupsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListGroupsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListGroupsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListGroupsResponse200Item']]: - """ list groups - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListGroupsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListGroupsResponse200Item']]: - """ list groups - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListGroupsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListGroupsResponse200Item']]: - """ list groups - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListGroupsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListGroupsResponse200Item']]: - """ list groups - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListGroupsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/group/list_instance_groups.py b/python-client/windmill-api/windmill_api/api/group/list_instance_groups.py deleted file mode 100644 index d03d94950a..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/list_instance_groups.py +++ /dev/null @@ -1,156 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.list_instance_groups_response_200_item import ListInstanceGroupsResponse200Item -from typing import cast, List - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/groups/list", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListInstanceGroupsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListInstanceGroupsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListInstanceGroupsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListInstanceGroupsResponse200Item']]: - """ list instance groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListInstanceGroupsResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListInstanceGroupsResponse200Item']]: - """ list instance groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListInstanceGroupsResponse200Item'] - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListInstanceGroupsResponse200Item']]: - """ list instance groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListInstanceGroupsResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListInstanceGroupsResponse200Item']]: - """ list instance groups - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListInstanceGroupsResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/group/remove_user_from_instance_group.py b/python-client/windmill-api/windmill_api/api/group/remove_user_from_instance_group.py deleted file mode 100644 index 8a850d4f87..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/remove_user_from_instance_group.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.remove_user_from_instance_group_json_body import RemoveUserFromInstanceGroupJsonBody - - - -def _get_kwargs( - name: str, - *, - json_body: RemoveUserFromInstanceGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/groups/removeuser/{name}".format(name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveUserFromInstanceGroupJsonBody, - -) -> Response[Any]: - """ remove user from instance group - - Args: - name (str): - json_body (RemoveUserFromInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveUserFromInstanceGroupJsonBody, - -) -> Response[Any]: - """ remove user from instance group - - Args: - name (str): - json_body (RemoveUserFromInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/remove_user_to_group.py b/python-client/windmill-api/windmill_api/api/group/remove_user_to_group.py deleted file mode 100644 index 6d12858185..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/remove_user_to_group.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.remove_user_to_group_json_body import RemoveUserToGroupJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - name: str, - *, - json_body: RemoveUserToGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/groups/removeuser/{name}".format(workspace=workspace,name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveUserToGroupJsonBody, - -) -> Response[Any]: - """ remove user to group - - Args: - workspace (str): - name (str): - json_body (RemoveUserToGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RemoveUserToGroupJsonBody, - -) -> Response[Any]: - """ remove user to group - - Args: - workspace (str): - name (str): - json_body (RemoveUserToGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/update_group.py b/python-client/windmill-api/windmill_api/api/group/update_group.py deleted file mode 100644 index 8ade7afa88..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/update_group.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_group_json_body import UpdateGroupJsonBody - - - -def _get_kwargs( - workspace: str, - name: str, - *, - json_body: UpdateGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/groups/update/{name}".format(workspace=workspace,name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateGroupJsonBody, - -) -> Response[Any]: - """ update group - - Args: - workspace (str): - name (str): - json_body (UpdateGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateGroupJsonBody, - -) -> Response[Any]: - """ update group - - Args: - workspace (str): - name (str): - json_body (UpdateGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/group/update_instance_group.py b/python-client/windmill-api/windmill_api/api/group/update_instance_group.py deleted file mode 100644 index 091b0efea8..0000000000 --- a/python-client/windmill-api/windmill_api/api/group/update_instance_group.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_instance_group_json_body import UpdateInstanceGroupJsonBody - - - -def _get_kwargs( - name: str, - *, - json_body: UpdateInstanceGroupJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/groups/update/{name}".format(name=name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateInstanceGroupJsonBody, - -) -> Response[Any]: - """ update instance group - - Args: - name (str): - json_body (UpdateInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateInstanceGroupJsonBody, - -) -> Response[Any]: - """ update instance group - - Args: - name (str): - json_body (UpdateInstanceGroupJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - name=name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/helpers/__init__.py b/python-client/windmill-api/windmill_api/api/helpers/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/helpers/dataset_storage_test_connection.py b/python-client/windmill-api/windmill_api/api/helpers/dataset_storage_test_connection.py deleted file mode 100644 index 7de8fb0495..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/dataset_storage_test_connection.py +++ /dev/null @@ -1,114 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/job_helpers/test_connection".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ Test connection to the workspace datasets storage - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ Test connection to the workspace datasets storage - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/helpers/delete_s3_file.py b/python-client/windmill-api/windmill_api/api/helpers/delete_s3_file.py deleted file mode 100644 index 01d17147f5..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/delete_s3_file.py +++ /dev/null @@ -1,129 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - *, - file_key: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["file_key"] = file_key - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/job_helpers/delete_s3_file".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - -) -> Response[Any]: - """ Permanently delete file from S3 - - Args: - workspace (str): - file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -file_key=file_key, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - -) -> Response[Any]: - """ Permanently delete file from S3 - - Args: - workspace (str): - file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -file_key=file_key, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/helpers/duckdb_connection_settings.py b/python-client/windmill-api/windmill_api/api/helpers/duckdb_connection_settings.py deleted file mode 100644 index cdb07ffdb4..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/duckdb_connection_settings.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.duckdb_connection_settings_json_body import DuckdbConnectionSettingsJsonBody -from ...models.duckdb_connection_settings_response_200 import DuckdbConnectionSettingsResponse200 - - - -def _get_kwargs( - workspace: str, - *, - json_body: DuckdbConnectionSettingsJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/job_helpers/duckdb_connection_settings".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[DuckdbConnectionSettingsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = DuckdbConnectionSettingsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[DuckdbConnectionSettingsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsJsonBody, - -) -> Response[DuckdbConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DuckdbConnectionSettingsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsJsonBody, - -) -> Optional[DuckdbConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DuckdbConnectionSettingsResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsJsonBody, - -) -> Response[DuckdbConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DuckdbConnectionSettingsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsJsonBody, - -) -> Optional[DuckdbConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DuckdbConnectionSettingsResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/duckdb_connection_settings_v2.py b/python-client/windmill-api/windmill_api/api/helpers/duckdb_connection_settings_v2.py deleted file mode 100644 index da0e3c3746..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/duckdb_connection_settings_v2.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.duckdb_connection_settings_v2_json_body import DuckdbConnectionSettingsV2JsonBody -from typing import Dict -from ...models.duckdb_connection_settings_v2_response_200 import DuckdbConnectionSettingsV2Response200 - - - -def _get_kwargs( - workspace: str, - *, - json_body: DuckdbConnectionSettingsV2JsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/job_helpers/v2/duckdb_connection_settings".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[DuckdbConnectionSettingsV2Response200]: - if response.status_code == HTTPStatus.OK: - response_200 = DuckdbConnectionSettingsV2Response200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[DuckdbConnectionSettingsV2Response200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsV2JsonBody, - -) -> Response[DuckdbConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DuckdbConnectionSettingsV2Response200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsV2JsonBody, - -) -> Optional[DuckdbConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DuckdbConnectionSettingsV2Response200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsV2JsonBody, - -) -> Response[DuckdbConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DuckdbConnectionSettingsV2Response200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DuckdbConnectionSettingsV2JsonBody, - -) -> Optional[DuckdbConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of instructions necessary to connect DuckDB to an S3 bucket - - Args: - workspace (str): - json_body (DuckdbConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DuckdbConnectionSettingsV2Response200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/list_stored_files.py b/python-client/windmill-api/windmill_api/api/helpers/list_stored_files.py deleted file mode 100644 index 2bdb6fd633..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/list_stored_files.py +++ /dev/null @@ -1,211 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.list_stored_files_response_200 import ListStoredFilesResponse200 -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - max_keys: int, - marker: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["max_keys"] = max_keys - - - params["marker"] = marker - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/job_helpers/list_stored_files".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[ListStoredFilesResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = ListStoredFilesResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[ListStoredFilesResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - max_keys: int, - marker: Union[Unset, None, str] = UNSET, - -) -> Response[ListStoredFilesResponse200]: - """ List the file keys available in the workspace files storage (S3) - - Args: - workspace (str): - max_keys (int): - marker (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListStoredFilesResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -max_keys=max_keys, -marker=marker, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - max_keys: int, - marker: Union[Unset, None, str] = UNSET, - -) -> Optional[ListStoredFilesResponse200]: - """ List the file keys available in the workspace files storage (S3) - - Args: - workspace (str): - max_keys (int): - marker (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListStoredFilesResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -max_keys=max_keys, -marker=marker, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - max_keys: int, - marker: Union[Unset, None, str] = UNSET, - -) -> Response[ListStoredFilesResponse200]: - """ List the file keys available in the workspace files storage (S3) - - Args: - workspace (str): - max_keys (int): - marker (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListStoredFilesResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -max_keys=max_keys, -marker=marker, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - max_keys: int, - marker: Union[Unset, None, str] = UNSET, - -) -> Optional[ListStoredFilesResponse200]: - """ List the file keys available in the workspace files storage (S3) - - Args: - workspace (str): - max_keys (int): - marker (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListStoredFilesResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -max_keys=max_keys, -marker=marker, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/load_file_metadata.py b/python-client/windmill-api/windmill_api/api/helpers/load_file_metadata.py deleted file mode 100644 index 86746e4410..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/load_file_metadata.py +++ /dev/null @@ -1,192 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.load_file_metadata_response_200 import LoadFileMetadataResponse200 - - - -def _get_kwargs( - workspace: str, - *, - file_key: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["file_key"] = file_key - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/job_helpers/load_file_metadata".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[LoadFileMetadataResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = LoadFileMetadataResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[LoadFileMetadataResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - -) -> Response[LoadFileMetadataResponse200]: - """ Load metadata of the file - - Args: - workspace (str): - file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[LoadFileMetadataResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -file_key=file_key, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - -) -> Optional[LoadFileMetadataResponse200]: - """ Load metadata of the file - - Args: - workspace (str): - file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - LoadFileMetadataResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -file_key=file_key, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - -) -> Response[LoadFileMetadataResponse200]: - """ Load metadata of the file - - Args: - workspace (str): - file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[LoadFileMetadataResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -file_key=file_key, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - -) -> Optional[LoadFileMetadataResponse200]: - """ Load metadata of the file - - Args: - workspace (str): - file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - LoadFileMetadataResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -file_key=file_key, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/load_file_preview.py b/python-client/windmill-api/windmill_api/api/helpers/load_file_preview.py deleted file mode 100644 index d264d5bdb4..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/load_file_preview.py +++ /dev/null @@ -1,291 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from ...models.load_file_preview_response_200 import LoadFilePreviewResponse200 -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - file_key: str, - file_size_in_bytes: Union[Unset, None, int] = UNSET, - file_mime_type: Union[Unset, None, str] = UNSET, - csv_separator: Union[Unset, None, str] = UNSET, - csv_has_header: Union[Unset, None, bool] = UNSET, - read_bytes_from: Union[Unset, None, int] = UNSET, - read_bytes_length: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["file_key"] = file_key - - - params["file_size_in_bytes"] = file_size_in_bytes - - - params["file_mime_type"] = file_mime_type - - - params["csv_separator"] = csv_separator - - - params["csv_has_header"] = csv_has_header - - - params["read_bytes_from"] = read_bytes_from - - - params["read_bytes_length"] = read_bytes_length - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/job_helpers/load_file_preview".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[LoadFilePreviewResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = LoadFilePreviewResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[LoadFilePreviewResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - file_size_in_bytes: Union[Unset, None, int] = UNSET, - file_mime_type: Union[Unset, None, str] = UNSET, - csv_separator: Union[Unset, None, str] = UNSET, - csv_has_header: Union[Unset, None, bool] = UNSET, - read_bytes_from: Union[Unset, None, int] = UNSET, - read_bytes_length: Union[Unset, None, int] = UNSET, - -) -> Response[LoadFilePreviewResponse200]: - """ Load a preview of the file - - Args: - workspace (str): - file_key (str): - file_size_in_bytes (Union[Unset, None, int]): - file_mime_type (Union[Unset, None, str]): - csv_separator (Union[Unset, None, str]): - csv_has_header (Union[Unset, None, bool]): - read_bytes_from (Union[Unset, None, int]): - read_bytes_length (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[LoadFilePreviewResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -file_key=file_key, -file_size_in_bytes=file_size_in_bytes, -file_mime_type=file_mime_type, -csv_separator=csv_separator, -csv_has_header=csv_has_header, -read_bytes_from=read_bytes_from, -read_bytes_length=read_bytes_length, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - file_size_in_bytes: Union[Unset, None, int] = UNSET, - file_mime_type: Union[Unset, None, str] = UNSET, - csv_separator: Union[Unset, None, str] = UNSET, - csv_has_header: Union[Unset, None, bool] = UNSET, - read_bytes_from: Union[Unset, None, int] = UNSET, - read_bytes_length: Union[Unset, None, int] = UNSET, - -) -> Optional[LoadFilePreviewResponse200]: - """ Load a preview of the file - - Args: - workspace (str): - file_key (str): - file_size_in_bytes (Union[Unset, None, int]): - file_mime_type (Union[Unset, None, str]): - csv_separator (Union[Unset, None, str]): - csv_has_header (Union[Unset, None, bool]): - read_bytes_from (Union[Unset, None, int]): - read_bytes_length (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - LoadFilePreviewResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -file_key=file_key, -file_size_in_bytes=file_size_in_bytes, -file_mime_type=file_mime_type, -csv_separator=csv_separator, -csv_has_header=csv_has_header, -read_bytes_from=read_bytes_from, -read_bytes_length=read_bytes_length, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - file_size_in_bytes: Union[Unset, None, int] = UNSET, - file_mime_type: Union[Unset, None, str] = UNSET, - csv_separator: Union[Unset, None, str] = UNSET, - csv_has_header: Union[Unset, None, bool] = UNSET, - read_bytes_from: Union[Unset, None, int] = UNSET, - read_bytes_length: Union[Unset, None, int] = UNSET, - -) -> Response[LoadFilePreviewResponse200]: - """ Load a preview of the file - - Args: - workspace (str): - file_key (str): - file_size_in_bytes (Union[Unset, None, int]): - file_mime_type (Union[Unset, None, str]): - csv_separator (Union[Unset, None, str]): - csv_has_header (Union[Unset, None, bool]): - read_bytes_from (Union[Unset, None, int]): - read_bytes_length (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[LoadFilePreviewResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -file_key=file_key, -file_size_in_bytes=file_size_in_bytes, -file_mime_type=file_mime_type, -csv_separator=csv_separator, -csv_has_header=csv_has_header, -read_bytes_from=read_bytes_from, -read_bytes_length=read_bytes_length, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - file_key: str, - file_size_in_bytes: Union[Unset, None, int] = UNSET, - file_mime_type: Union[Unset, None, str] = UNSET, - csv_separator: Union[Unset, None, str] = UNSET, - csv_has_header: Union[Unset, None, bool] = UNSET, - read_bytes_from: Union[Unset, None, int] = UNSET, - read_bytes_length: Union[Unset, None, int] = UNSET, - -) -> Optional[LoadFilePreviewResponse200]: - """ Load a preview of the file - - Args: - workspace (str): - file_key (str): - file_size_in_bytes (Union[Unset, None, int]): - file_mime_type (Union[Unset, None, str]): - csv_separator (Union[Unset, None, str]): - csv_has_header (Union[Unset, None, bool]): - read_bytes_from (Union[Unset, None, int]): - read_bytes_length (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - LoadFilePreviewResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -file_key=file_key, -file_size_in_bytes=file_size_in_bytes, -file_mime_type=file_mime_type, -csv_separator=csv_separator, -csv_has_header=csv_has_header, -read_bytes_from=read_bytes_from, -read_bytes_length=read_bytes_length, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/move_s3_file.py b/python-client/windmill-api/windmill_api/api/helpers/move_s3_file.py deleted file mode 100644 index 4e0842a285..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/move_s3_file.py +++ /dev/null @@ -1,139 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - *, - src_file_key: str, - dest_file_key: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["src_file_key"] = src_file_key - - - params["dest_file_key"] = dest_file_key - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/job_helpers/move_s3_file".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - src_file_key: str, - dest_file_key: str, - -) -> Response[Any]: - """ Move a S3 file from one path to the other within the same bucket - - Args: - workspace (str): - src_file_key (str): - dest_file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -src_file_key=src_file_key, -dest_file_key=dest_file_key, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - src_file_key: str, - dest_file_key: str, - -) -> Response[Any]: - """ Move a S3 file from one path to the other within the same bucket - - Args: - workspace (str): - src_file_key (str): - dest_file_key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -src_file_key=src_file_key, -dest_file_key=dest_file_key, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/helpers/multipart_file_upload.py b/python-client/windmill-api/windmill_api/api/helpers/multipart_file_upload.py deleted file mode 100644 index 5e57482c22..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/multipart_file_upload.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.multipart_file_upload_response_200 import MultipartFileUploadResponse200 -from typing import Dict -from ...models.multipart_file_upload_json_body import MultipartFileUploadJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: MultipartFileUploadJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/job_helpers/multipart_upload_s3_file".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[MultipartFileUploadResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = MultipartFileUploadResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[MultipartFileUploadResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: MultipartFileUploadJsonBody, - -) -> Response[MultipartFileUploadResponse200]: - """ Upload file to S3 bucket using multipart upload - - Args: - workspace (str): - json_body (MultipartFileUploadJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[MultipartFileUploadResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: MultipartFileUploadJsonBody, - -) -> Optional[MultipartFileUploadResponse200]: - """ Upload file to S3 bucket using multipart upload - - Args: - workspace (str): - json_body (MultipartFileUploadJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - MultipartFileUploadResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: MultipartFileUploadJsonBody, - -) -> Response[MultipartFileUploadResponse200]: - """ Upload file to S3 bucket using multipart upload - - Args: - workspace (str): - json_body (MultipartFileUploadJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[MultipartFileUploadResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: MultipartFileUploadJsonBody, - -) -> Optional[MultipartFileUploadResponse200]: - """ Upload file to S3 bucket using multipart upload - - Args: - workspace (str): - json_body (MultipartFileUploadJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - MultipartFileUploadResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/polars_connection_settings.py b/python-client/windmill-api/windmill_api/api/helpers/polars_connection_settings.py deleted file mode 100644 index 4724fc7994..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/polars_connection_settings.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.polars_connection_settings_json_body import PolarsConnectionSettingsJsonBody -from ...models.polars_connection_settings_response_200 import PolarsConnectionSettingsResponse200 - - - -def _get_kwargs( - workspace: str, - *, - json_body: PolarsConnectionSettingsJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/job_helpers/polars_connection_settings".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[PolarsConnectionSettingsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = PolarsConnectionSettingsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[PolarsConnectionSettingsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsJsonBody, - -) -> Response[PolarsConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[PolarsConnectionSettingsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsJsonBody, - -) -> Optional[PolarsConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - PolarsConnectionSettingsResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsJsonBody, - -) -> Response[PolarsConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[PolarsConnectionSettingsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsJsonBody, - -) -> Optional[PolarsConnectionSettingsResponse200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - PolarsConnectionSettingsResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/polars_connection_settings_v2.py b/python-client/windmill-api/windmill_api/api/helpers/polars_connection_settings_v2.py deleted file mode 100644 index 208f6ea420..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/polars_connection_settings_v2.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.polars_connection_settings_v2_json_body import PolarsConnectionSettingsV2JsonBody -from ...models.polars_connection_settings_v2_response_200 import PolarsConnectionSettingsV2Response200 - - - -def _get_kwargs( - workspace: str, - *, - json_body: PolarsConnectionSettingsV2JsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/job_helpers/v2/polars_connection_settings".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[PolarsConnectionSettingsV2Response200]: - if response.status_code == HTTPStatus.OK: - response_200 = PolarsConnectionSettingsV2Response200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[PolarsConnectionSettingsV2Response200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsV2JsonBody, - -) -> Response[PolarsConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[PolarsConnectionSettingsV2Response200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsV2JsonBody, - -) -> Optional[PolarsConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - PolarsConnectionSettingsV2Response200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsV2JsonBody, - -) -> Response[PolarsConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[PolarsConnectionSettingsV2Response200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: PolarsConnectionSettingsV2JsonBody, - -) -> Optional[PolarsConnectionSettingsV2Response200]: - """ Converts an S3 resource to the set of arguments necessary to connect Polars to an S3 bucket - - Args: - workspace (str): - json_body (PolarsConnectionSettingsV2JsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - PolarsConnectionSettingsV2Response200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/helpers/s_3_resource_info.py b/python-client/windmill-api/windmill_api/api/helpers/s_3_resource_info.py deleted file mode 100644 index e73e81c206..0000000000 --- a/python-client/windmill-api/windmill_api/api/helpers/s_3_resource_info.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.s3_resource_info_response_200 import S3ResourceInfoResponse200 -from typing import Dict -from ...models.s3_resource_info_json_body import S3ResourceInfoJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: S3ResourceInfoJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/job_helpers/v2/s3_resource_info".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[S3ResourceInfoResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = S3ResourceInfoResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[S3ResourceInfoResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: S3ResourceInfoJsonBody, - -) -> Response[S3ResourceInfoResponse200]: - """ Returns the s3 resource associated to the provided path, or the workspace default S3 resource - - Args: - workspace (str): - json_body (S3ResourceInfoJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[S3ResourceInfoResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: S3ResourceInfoJsonBody, - -) -> Optional[S3ResourceInfoResponse200]: - """ Returns the s3 resource associated to the provided path, or the workspace default S3 resource - - Args: - workspace (str): - json_body (S3ResourceInfoJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - S3ResourceInfoResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: S3ResourceInfoJsonBody, - -) -> Response[S3ResourceInfoResponse200]: - """ Returns the s3 resource associated to the provided path, or the workspace default S3 resource - - Args: - workspace (str): - json_body (S3ResourceInfoJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[S3ResourceInfoResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: S3ResourceInfoJsonBody, - -) -> Optional[S3ResourceInfoResponse200]: - """ Returns the s3 resource associated to the provided path, or the workspace default S3 resource - - Args: - workspace (str): - json_body (S3ResourceInfoJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - S3ResourceInfoResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/input_/__init__.py b/python-client/windmill-api/windmill_api/api/input_/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/input_/create_input.py b/python-client/windmill-api/windmill_api/api/input_/create_input.py deleted file mode 100644 index e97bf600bf..0000000000 --- a/python-client/windmill-api/windmill_api/api/input_/create_input.py +++ /dev/null @@ -1,158 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.create_input_runnable_type import CreateInputRunnableType -from ...models.create_input_json_body import CreateInputJsonBody -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateInputJsonBody, - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, CreateInputRunnableType] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["runnable_id"] = runnable_id - - - json_runnable_type: Union[Unset, None, str] = UNSET - if not isinstance(runnable_type, Unset): - json_runnable_type = runnable_type.value if runnable_type else None - - params["runnable_type"] = json_runnable_type - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/inputs/create".format(workspace=workspace,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateInputJsonBody, - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, CreateInputRunnableType] = UNSET, - -) -> Response[Any]: - """ Create an Input for future use in a script or flow - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, CreateInputRunnableType]): - json_body (CreateInputJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -runnable_id=runnable_id, -runnable_type=runnable_type, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateInputJsonBody, - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, CreateInputRunnableType] = UNSET, - -) -> Response[Any]: - """ Create an Input for future use in a script or flow - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, CreateInputRunnableType]): - json_body (CreateInputJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -runnable_id=runnable_id, -runnable_type=runnable_type, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/input_/delete_input.py b/python-client/windmill-api/windmill_api/api/input_/delete_input.py deleted file mode 100644 index 4fe0059733..0000000000 --- a/python-client/windmill-api/windmill_api/api/input_/delete_input.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - input_: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/inputs/delete/{input}".format(workspace=workspace,input=input_,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - input_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ Delete a Saved Input - - Args: - workspace (str): - input_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -input_=input_, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - input_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ Delete a Saved Input - - Args: - workspace (str): - input_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -input_=input_, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/input_/get_input_history.py b/python-client/windmill-api/windmill_api/api/input_/get_input_history.py deleted file mode 100644 index f035e08c2c..0000000000 --- a/python-client/windmill-api/windmill_api/api/input_/get_input_history.py +++ /dev/null @@ -1,254 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.get_input_history_response_200_item import GetInputHistoryResponse200Item -from typing import Optional -from ...types import UNSET, Unset -from ...models.get_input_history_runnable_type import GetInputHistoryRunnableType - - - -def _get_kwargs( - workspace: str, - *, - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["runnable_id"] = runnable_id - - - json_runnable_type: Union[Unset, None, str] = UNSET - if not isinstance(runnable_type, Unset): - json_runnable_type = runnable_type.value if runnable_type else None - - params["runnable_type"] = json_runnable_type - - - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/inputs/history".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['GetInputHistoryResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = GetInputHistoryResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['GetInputHistoryResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['GetInputHistoryResponse200Item']]: - """ List Inputs used in previously completed jobs - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, GetInputHistoryRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetInputHistoryResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['GetInputHistoryResponse200Item']]: - """ List Inputs used in previously completed jobs - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, GetInputHistoryRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetInputHistoryResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['GetInputHistoryResponse200Item']]: - """ List Inputs used in previously completed jobs - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, GetInputHistoryRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetInputHistoryResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, GetInputHistoryRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['GetInputHistoryResponse200Item']]: - """ List Inputs used in previously completed jobs - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, GetInputHistoryRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetInputHistoryResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/input_/list_inputs.py b/python-client/windmill-api/windmill_api/api/input_/list_inputs.py deleted file mode 100644 index 48e2325976..0000000000 --- a/python-client/windmill-api/windmill_api/api/input_/list_inputs.py +++ /dev/null @@ -1,254 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_inputs_runnable_type import ListInputsRunnableType -from typing import Optional -from ...types import UNSET, Unset -from ...models.list_inputs_response_200_item import ListInputsResponse200Item - - - -def _get_kwargs( - workspace: str, - *, - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, ListInputsRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["runnable_id"] = runnable_id - - - json_runnable_type: Union[Unset, None, str] = UNSET - if not isinstance(runnable_type, Unset): - json_runnable_type = runnable_type.value if runnable_type else None - - params["runnable_type"] = json_runnable_type - - - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/inputs/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListInputsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListInputsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListInputsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, ListInputsRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListInputsResponse200Item']]: - """ List saved Inputs for a Runnable - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, ListInputsRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListInputsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, ListInputsRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListInputsResponse200Item']]: - """ List saved Inputs for a Runnable - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, ListInputsRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListInputsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, ListInputsRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListInputsResponse200Item']]: - """ List saved Inputs for a Runnable - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, ListInputsRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListInputsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - runnable_id: Union[Unset, None, str] = UNSET, - runnable_type: Union[Unset, None, ListInputsRunnableType] = UNSET, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListInputsResponse200Item']]: - """ List saved Inputs for a Runnable - - Args: - workspace (str): - runnable_id (Union[Unset, None, str]): - runnable_type (Union[Unset, None, ListInputsRunnableType]): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListInputsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -runnable_id=runnable_id, -runnable_type=runnable_type, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/input_/update_input.py b/python-client/windmill-api/windmill_api/api/input_/update_input.py deleted file mode 100644 index ed737e06b3..0000000000 --- a/python-client/windmill-api/windmill_api/api/input_/update_input.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_input_json_body import UpdateInputJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: UpdateInputJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/inputs/update".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateInputJsonBody, - -) -> Response[Any]: - """ Update an Input - - Args: - workspace (str): - json_body (UpdateInputJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateInputJsonBody, - -) -> Response[Any]: - """ Update an Input - - Args: - workspace (str): - json_body (UpdateInputJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/integration/__init__.py b/python-client/windmill-api/windmill_api/api/integration/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/integration/list_hub_integrations.py b/python-client/windmill-api/windmill_api/api/integration/list_hub_integrations.py deleted file mode 100644 index 772c0332ce..0000000000 --- a/python-client/windmill-api/windmill_api/api/integration/list_hub_integrations.py +++ /dev/null @@ -1,188 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from ...models.list_hub_integrations_response_200_item import ListHubIntegrationsResponse200Item -from typing import cast -from typing import cast, List -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - *, - kind: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["kind"] = kind - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/integrations/hub/list", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListHubIntegrationsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListHubIntegrationsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListHubIntegrationsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - kind: Union[Unset, None, str] = UNSET, - -) -> Response[List['ListHubIntegrationsResponse200Item']]: - """ list hub integrations - - Args: - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListHubIntegrationsResponse200Item']] - """ - - - kwargs = _get_kwargs( - kind=kind, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - kind: Union[Unset, None, str] = UNSET, - -) -> Optional[List['ListHubIntegrationsResponse200Item']]: - """ list hub integrations - - Args: - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListHubIntegrationsResponse200Item'] - """ - - - return sync_detailed( - client=client, -kind=kind, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - kind: Union[Unset, None, str] = UNSET, - -) -> Response[List['ListHubIntegrationsResponse200Item']]: - """ list hub integrations - - Args: - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListHubIntegrationsResponse200Item']] - """ - - - kwargs = _get_kwargs( - kind=kind, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - kind: Union[Unset, None, str] = UNSET, - -) -> Optional[List['ListHubIntegrationsResponse200Item']]: - """ list hub integrations - - Args: - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListHubIntegrationsResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, -kind=kind, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/__init__.py b/python-client/windmill-api/windmill_api/api/job/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/job/cancel_all.py b/python-client/windmill-api/windmill_api/api/job/cancel_all.py deleted file mode 100644 index 5c60b905dc..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/cancel_all.py +++ /dev/null @@ -1,167 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/queue/cancel_all".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(List[str], response.json()) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ cancel all jobs - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ cancel all jobs - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ cancel all jobs - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ cancel all jobs - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/cancel_persistent_queued_jobs.py b/python-client/windmill-api/windmill_api/api/job/cancel_persistent_queued_jobs.py deleted file mode 100644 index 2fae7f29dd..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/cancel_persistent_queued_jobs.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.cancel_persistent_queued_jobs_json_body import CancelPersistentQueuedJobsJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: CancelPersistentQueuedJobsJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs_u/queue/cancel_persistent/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CancelPersistentQueuedJobsJsonBody, - -) -> Response[Any]: - """ cancel all queued jobs for persistent script - - Args: - workspace (str): - path (str): - json_body (CancelPersistentQueuedJobsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CancelPersistentQueuedJobsJsonBody, - -) -> Response[Any]: - """ cancel all queued jobs for persistent script - - Args: - workspace (str): - path (str): - json_body (CancelPersistentQueuedJobsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/cancel_queued_job.py b/python-client/windmill-api/windmill_api/api/job/cancel_queued_job.py deleted file mode 100644 index 1f3377e713..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/cancel_queued_job.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.cancel_queued_job_json_body import CancelQueuedJobJsonBody - - - -def _get_kwargs( - workspace: str, - id: str, - *, - json_body: CancelQueuedJobJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs_u/queue/cancel/{id}".format(workspace=workspace,id=id,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CancelQueuedJobJsonBody, - -) -> Response[Any]: - """ cancel queued job - - Args: - workspace (str): - id (str): - json_body (CancelQueuedJobJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CancelQueuedJobJsonBody, - -) -> Response[Any]: - """ cancel queued job - - Args: - workspace (str): - id (str): - json_body (CancelQueuedJobJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/cancel_suspended_job_get.py b/python-client/windmill-api/windmill_api/api/job/cancel_suspended_job_get.py deleted file mode 100644 index b6fe7ee089..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/cancel_suspended_job_get.py +++ /dev/null @@ -1,151 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - approver: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["approver"] = approver - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/cancel/{id}/{resume_id}/{signature}".format(workspace=workspace,id=id,resume_id=resume_id,signature=signature,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ cancel a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -approver=approver, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ cancel a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -approver=approver, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/cancel_suspended_job_post.py b/python-client/windmill-api/windmill_api/api/job/cancel_suspended_job_post.py deleted file mode 100644 index 388fe2fdb4..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/cancel_suspended_job_post.py +++ /dev/null @@ -1,164 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.cancel_suspended_job_post_json_body import CancelSuspendedJobPostJsonBody -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - json_body: CancelSuspendedJobPostJsonBody, - approver: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["approver"] = approver - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs_u/cancel/{id}/{resume_id}/{signature}".format(workspace=workspace,id=id,resume_id=resume_id,signature=signature,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CancelSuspendedJobPostJsonBody, - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ cancel a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - json_body (CancelSuspendedJobPostJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -json_body=json_body, -approver=approver, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CancelSuspendedJobPostJsonBody, - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ cancel a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - json_body (CancelSuspendedJobPostJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -json_body=json_body, -approver=approver, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/create_job_signature.py b/python-client/windmill-api/windmill_api/api/job/create_job_signature.py deleted file mode 100644 index bc529c2c63..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/create_job_signature.py +++ /dev/null @@ -1,144 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - resume_id: int, - *, - approver: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["approver"] = approver - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/job_signature/{id}/{resume_id}".format(workspace=workspace,id=id,resume_id=resume_id,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - resume_id: int, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ create an HMac signature given a job id and a resume id - - Args: - workspace (str): - id (str): - resume_id (int): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -approver=approver, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - resume_id: int, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ create an HMac signature given a job id and a resume id - - Args: - workspace (str): - id (str): - resume_id (int): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -approver=approver, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/delete_completed_job.py b/python-client/windmill-api/windmill_api/api/job/delete_completed_job.py deleted file mode 100644 index 4981ac49c4..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/delete_completed_job.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.delete_completed_job_response_200 import DeleteCompletedJobResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - id: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/completed/delete/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[DeleteCompletedJobResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = DeleteCompletedJobResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[DeleteCompletedJobResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[DeleteCompletedJobResponse200]: - """ delete completed job (erase content but keep run id) - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DeleteCompletedJobResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[DeleteCompletedJobResponse200]: - """ delete completed job (erase content but keep run id) - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DeleteCompletedJobResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[DeleteCompletedJobResponse200]: - """ delete completed job (erase content but keep run id) - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DeleteCompletedJobResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[DeleteCompletedJobResponse200]: - """ delete completed job (erase content but keep run id) - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DeleteCompletedJobResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/force_cancel_queued_job.py b/python-client/windmill-api/windmill_api/api/job/force_cancel_queued_job.py deleted file mode 100644 index 2c039f1357..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/force_cancel_queued_job.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.force_cancel_queued_job_json_body import ForceCancelQueuedJobJsonBody - - - -def _get_kwargs( - workspace: str, - id: str, - *, - json_body: ForceCancelQueuedJobJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs_u/queue/force_cancel/{id}".format(workspace=workspace,id=id,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ForceCancelQueuedJobJsonBody, - -) -> Response[Any]: - """ force cancel queued job - - Args: - workspace (str): - id (str): - json_body (ForceCancelQueuedJobJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ForceCancelQueuedJobJsonBody, - -) -> Response[Any]: - """ force cancel queued job - - Args: - workspace (str): - id (str): - json_body (ForceCancelQueuedJobJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/get_completed_count.py b/python-client/windmill-api/windmill_api/api/job/get_completed_count.py deleted file mode 100644 index 33c4a6a8cb..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_completed_count.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_completed_count_response_200 import GetCompletedCountResponse200 - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/completed/count".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetCompletedCountResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetCompletedCountResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetCompletedCountResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetCompletedCountResponse200]: - """ get completed count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetCompletedCountResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetCompletedCountResponse200]: - """ get completed count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetCompletedCountResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetCompletedCountResponse200]: - """ get completed count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetCompletedCountResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetCompletedCountResponse200]: - """ get completed count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetCompletedCountResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_completed_job.py b/python-client/windmill-api/windmill_api/api/job/get_completed_job.py deleted file mode 100644 index 21484d9397..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_completed_job.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_completed_job_response_200 import GetCompletedJobResponse200 - - - -def _get_kwargs( - workspace: str, - id: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/completed/get/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetCompletedJobResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetCompletedJobResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetCompletedJobResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetCompletedJobResponse200]: - """ get completed job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetCompletedJobResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetCompletedJobResponse200]: - """ get completed job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetCompletedJobResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetCompletedJobResponse200]: - """ get completed job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetCompletedJobResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetCompletedJobResponse200]: - """ get completed job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetCompletedJobResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_completed_job_result.py b/python-client/windmill-api/windmill_api/api/job/get_completed_job_result.py deleted file mode 100644 index 052a05575e..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_completed_job_result.py +++ /dev/null @@ -1,121 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - id: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/completed/get_result/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get completed job result - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get completed job result - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/get_completed_job_result_maybe.py b/python-client/windmill-api/windmill_api/api/job/get_completed_job_result_maybe.py deleted file mode 100644 index 5795609718..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_completed_job_result_maybe.py +++ /dev/null @@ -1,208 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.get_completed_job_result_maybe_response_200 import GetCompletedJobResultMaybeResponse200 -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - *, - get_started: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["get_started"] = get_started - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/completed/get_result_maybe/{id}".format(workspace=workspace,id=id,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetCompletedJobResultMaybeResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetCompletedJobResultMaybeResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetCompletedJobResultMaybeResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - get_started: Union[Unset, None, bool] = UNSET, - -) -> Response[GetCompletedJobResultMaybeResponse200]: - """ get completed job result if job is completed - - Args: - workspace (str): - id (str): - get_started (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetCompletedJobResultMaybeResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -get_started=get_started, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - get_started: Union[Unset, None, bool] = UNSET, - -) -> Optional[GetCompletedJobResultMaybeResponse200]: - """ get completed job result if job is completed - - Args: - workspace (str): - id (str): - get_started (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetCompletedJobResultMaybeResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, -get_started=get_started, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - get_started: Union[Unset, None, bool] = UNSET, - -) -> Response[GetCompletedJobResultMaybeResponse200]: - """ get completed job result if job is completed - - Args: - workspace (str): - id (str): - get_started (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetCompletedJobResultMaybeResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -get_started=get_started, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - get_started: Union[Unset, None, bool] = UNSET, - -) -> Optional[GetCompletedJobResultMaybeResponse200]: - """ get completed job result if job is completed - - Args: - workspace (str): - id (str): - get_started (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetCompletedJobResultMaybeResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, -get_started=get_started, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_db_clock.py b/python-client/windmill-api/windmill_api/api/job/get_db_clock.py deleted file mode 100644 index b44e9f832e..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_db_clock.py +++ /dev/null @@ -1,144 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/jobs/db_clock", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[int]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(int, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[int]: - """ get db clock - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[int] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[int]: - """ get db clock - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - int - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[int]: - """ get db clock - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[int] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[int]: - """ get db clock - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - int - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_job.py b/python-client/windmill-api/windmill_api/api/job/get_job.py deleted file mode 100644 index 344a493e14..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_job.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_job_response_200 import GetJobResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - id: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/get/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetJobResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetJobResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetJobResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetJobResponse200]: - """ get job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetJobResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetJobResponse200]: - """ get job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetJobResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetJobResponse200]: - """ get job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetJobResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetJobResponse200]: - """ get job - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetJobResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_job_logs.py b/python-client/windmill-api/windmill_api/api/job/get_job_logs.py deleted file mode 100644 index bf4cdeec0d..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_job_logs.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - id: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/get_logs/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get job logs - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get job logs - - Args: - workspace (str): - id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/get_job_updates.py b/python-client/windmill-api/windmill_api/api/job/get_job_updates.py deleted file mode 100644 index 4b5b1f6e8b..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_job_updates.py +++ /dev/null @@ -1,224 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.get_job_updates_response_200 import GetJobUpdatesResponse200 -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - *, - running: Union[Unset, None, bool] = UNSET, - log_offset: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["running"] = running - - - params["log_offset"] = log_offset - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/getupdate/{id}".format(workspace=workspace,id=id,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetJobUpdatesResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetJobUpdatesResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetJobUpdatesResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - running: Union[Unset, None, bool] = UNSET, - log_offset: Union[Unset, None, int] = UNSET, - -) -> Response[GetJobUpdatesResponse200]: - """ get job updates - - Args: - workspace (str): - id (str): - running (Union[Unset, None, bool]): - log_offset (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetJobUpdatesResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -running=running, -log_offset=log_offset, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - running: Union[Unset, None, bool] = UNSET, - log_offset: Union[Unset, None, int] = UNSET, - -) -> Optional[GetJobUpdatesResponse200]: - """ get job updates - - Args: - workspace (str): - id (str): - running (Union[Unset, None, bool]): - log_offset (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetJobUpdatesResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, -running=running, -log_offset=log_offset, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - running: Union[Unset, None, bool] = UNSET, - log_offset: Union[Unset, None, int] = UNSET, - -) -> Response[GetJobUpdatesResponse200]: - """ get job updates - - Args: - workspace (str): - id (str): - running (Union[Unset, None, bool]): - log_offset (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetJobUpdatesResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -running=running, -log_offset=log_offset, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - running: Union[Unset, None, bool] = UNSET, - log_offset: Union[Unset, None, int] = UNSET, - -) -> Optional[GetJobUpdatesResponse200]: - """ get job updates - - Args: - workspace (str): - id (str): - running (Union[Unset, None, bool]): - log_offset (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetJobUpdatesResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, -running=running, -log_offset=log_offset, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_queue_count.py b/python-client/windmill-api/windmill_api/api/job/get_queue_count.py deleted file mode 100644 index 2ef856550c..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_queue_count.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_queue_count_response_200 import GetQueueCountResponse200 - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/queue/count".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetQueueCountResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetQueueCountResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetQueueCountResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetQueueCountResponse200]: - """ get queue count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetQueueCountResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetQueueCountResponse200]: - """ get queue count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetQueueCountResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetQueueCountResponse200]: - """ get queue count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetQueueCountResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetQueueCountResponse200]: - """ get queue count - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetQueueCountResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_resume_urls.py b/python-client/windmill-api/windmill_api/api/job/get_resume_urls.py deleted file mode 100644 index afc1525c78..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_resume_urls.py +++ /dev/null @@ -1,221 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.get_resume_urls_response_200 import GetResumeUrlsResponse200 -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - resume_id: int, - *, - approver: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["approver"] = approver - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/resume_urls/{id}/{resume_id}".format(workspace=workspace,id=id,resume_id=resume_id,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetResumeUrlsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetResumeUrlsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetResumeUrlsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - resume_id: int, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[GetResumeUrlsResponse200]: - """ get resume urls given a job_id, resume_id and a nonce to resume a flow - - Args: - workspace (str): - id (str): - resume_id (int): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetResumeUrlsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -approver=approver, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - resume_id: int, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Optional[GetResumeUrlsResponse200]: - """ get resume urls given a job_id, resume_id and a nonce to resume a flow - - Args: - workspace (str): - id (str): - resume_id (int): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetResumeUrlsResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -resume_id=resume_id, -client=client, -approver=approver, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - resume_id: int, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[GetResumeUrlsResponse200]: - """ get resume urls given a job_id, resume_id and a nonce to resume a flow - - Args: - workspace (str): - id (str): - resume_id (int): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetResumeUrlsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -approver=approver, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - resume_id: int, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Optional[GetResumeUrlsResponse200]: - """ get resume urls given a job_id, resume_id and a nonce to resume a flow - - Args: - workspace (str): - id (str): - resume_id (int): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetResumeUrlsResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -resume_id=resume_id, -client=client, -approver=approver, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/get_suspended_job_flow.py b/python-client/windmill-api/windmill_api/api/job/get_suspended_job_flow.py deleted file mode 100644 index 652548dacc..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/get_suspended_job_flow.py +++ /dev/null @@ -1,234 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from ...models.get_suspended_job_flow_response_200 import GetSuspendedJobFlowResponse200 -from typing import cast -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - approver: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["approver"] = approver - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/get_flow/{id}/{resume_id}/{signature}".format(workspace=workspace,id=id,resume_id=resume_id,signature=signature,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetSuspendedJobFlowResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetSuspendedJobFlowResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetSuspendedJobFlowResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[GetSuspendedJobFlowResponse200]: - """ get parent flow job of suspended job - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetSuspendedJobFlowResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -approver=approver, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Optional[GetSuspendedJobFlowResponse200]: - """ get parent flow job of suspended job - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetSuspendedJobFlowResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -client=client, -approver=approver, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Response[GetSuspendedJobFlowResponse200]: - """ get parent flow job of suspended job - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetSuspendedJobFlowResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -approver=approver, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - approver: Union[Unset, None, str] = UNSET, - -) -> Optional[GetSuspendedJobFlowResponse200]: - """ get parent flow job of suspended job - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetSuspendedJobFlowResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -client=client, -approver=approver, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/list_completed_jobs.py b/python-client/windmill-api/windmill_api/api/job/list_completed_jobs.py deleted file mode 100644 index 87d4491a97..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/list_completed_jobs.py +++ /dev/null @@ -1,451 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ...models.list_completed_jobs_response_200_item import ListCompletedJobsResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["order_desc"] = order_desc - - - params["created_by"] = created_by - - - params["parent_job"] = parent_job - - - params["script_path_exact"] = script_path_exact - - - params["script_path_start"] = script_path_start - - - params["schedule_path"] = schedule_path - - - params["script_hash"] = script_hash - - - json_started_before: Union[Unset, None, str] = UNSET - if not isinstance(started_before, Unset): - json_started_before = started_before.isoformat() if started_before else None - - params["started_before"] = json_started_before - - - json_started_after: Union[Unset, None, str] = UNSET - if not isinstance(started_after, Unset): - json_started_after = started_after.isoformat() if started_after else None - - params["started_after"] = json_started_after - - - params["success"] = success - - - params["job_kinds"] = job_kinds - - - params["args"] = args - - - params["result"] = result - - - params["tag"] = tag - - - params["is_skipped"] = is_skipped - - - params["is_flow_step"] = is_flow_step - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/completed/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListCompletedJobsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListCompletedJobsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListCompletedJobsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListCompletedJobsResponse200Item']]: - """ list all completed jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListCompletedJobsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -job_kinds=job_kinds, -args=args, -result=result, -tag=tag, -is_skipped=is_skipped, -is_flow_step=is_flow_step, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListCompletedJobsResponse200Item']]: - """ list all completed jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListCompletedJobsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -job_kinds=job_kinds, -args=args, -result=result, -tag=tag, -is_skipped=is_skipped, -is_flow_step=is_flow_step, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListCompletedJobsResponse200Item']]: - """ list all completed jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListCompletedJobsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -job_kinds=job_kinds, -args=args, -result=result, -tag=tag, -is_skipped=is_skipped, -is_flow_step=is_flow_step, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListCompletedJobsResponse200Item']]: - """ list all completed jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListCompletedJobsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -job_kinds=job_kinds, -args=args, -result=result, -tag=tag, -is_skipped=is_skipped, -is_flow_step=is_flow_step, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/list_jobs.py b/python-client/windmill-api/windmill_api/api/job/list_jobs.py deleted file mode 100644 index 2dd01e75dd..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/list_jobs.py +++ /dev/null @@ -1,507 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_jobs_response_200_item import ListJobsResponse200Item -import datetime -from dateutil.parser import isoparse -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET, - running: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - success: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["created_by"] = created_by - - - params["parent_job"] = parent_job - - - params["script_path_exact"] = script_path_exact - - - params["script_path_start"] = script_path_start - - - params["schedule_path"] = schedule_path - - - params["script_hash"] = script_hash - - - json_started_before: Union[Unset, None, str] = UNSET - if not isinstance(started_before, Unset): - json_started_before = started_before.isoformat() if started_before else None - - params["started_before"] = json_started_before - - - json_started_after: Union[Unset, None, str] = UNSET - if not isinstance(started_after, Unset): - json_started_after = started_after.isoformat() if started_after else None - - params["started_after"] = json_started_after - - - json_created_or_started_before: Union[Unset, None, str] = UNSET - if not isinstance(created_or_started_before, Unset): - json_created_or_started_before = created_or_started_before.isoformat() if created_or_started_before else None - - params["created_or_started_before"] = json_created_or_started_before - - - params["running"] = running - - - params["scheduled_for_before_now"] = scheduled_for_before_now - - - json_created_or_started_after: Union[Unset, None, str] = UNSET - if not isinstance(created_or_started_after, Unset): - json_created_or_started_after = created_or_started_after.isoformat() if created_or_started_after else None - - params["created_or_started_after"] = json_created_or_started_after - - - params["job_kinds"] = job_kinds - - - params["args"] = args - - - params["tag"] = tag - - - params["result"] = result - - - params["is_skipped"] = is_skipped - - - params["is_flow_step"] = is_flow_step - - - params["success"] = success - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListJobsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListJobsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListJobsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET, - running: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - success: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListJobsResponse200Item']]: - """ list all jobs - - Args: - workspace (str): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - created_or_started_before (Union[Unset, None, datetime.datetime]): - running (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - created_or_started_after (Union[Unset, None, datetime.datetime]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - result (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - success (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListJobsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -created_or_started_before=created_or_started_before, -running=running, -scheduled_for_before_now=scheduled_for_before_now, -created_or_started_after=created_or_started_after, -job_kinds=job_kinds, -args=args, -tag=tag, -result=result, -is_skipped=is_skipped, -is_flow_step=is_flow_step, -success=success, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET, - running: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - success: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListJobsResponse200Item']]: - """ list all jobs - - Args: - workspace (str): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - created_or_started_before (Union[Unset, None, datetime.datetime]): - running (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - created_or_started_after (Union[Unset, None, datetime.datetime]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - result (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - success (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListJobsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -created_or_started_before=created_or_started_before, -running=running, -scheduled_for_before_now=scheduled_for_before_now, -created_or_started_after=created_or_started_after, -job_kinds=job_kinds, -args=args, -tag=tag, -result=result, -is_skipped=is_skipped, -is_flow_step=is_flow_step, -success=success, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET, - running: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - success: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListJobsResponse200Item']]: - """ list all jobs - - Args: - workspace (str): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - created_or_started_before (Union[Unset, None, datetime.datetime]): - running (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - created_or_started_after (Union[Unset, None, datetime.datetime]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - result (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - success (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListJobsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -created_or_started_before=created_or_started_before, -running=running, -scheduled_for_before_now=scheduled_for_before_now, -created_or_started_after=created_or_started_after, -job_kinds=job_kinds, -args=args, -tag=tag, -result=result, -is_skipped=is_skipped, -is_flow_step=is_flow_step, -success=success, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - created_or_started_before: Union[Unset, None, datetime.datetime] = UNSET, - running: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - created_or_started_after: Union[Unset, None, datetime.datetime] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - args: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - is_skipped: Union[Unset, None, bool] = UNSET, - is_flow_step: Union[Unset, None, bool] = UNSET, - success: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListJobsResponse200Item']]: - """ list all jobs - - Args: - workspace (str): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - created_or_started_before (Union[Unset, None, datetime.datetime]): - running (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - created_or_started_after (Union[Unset, None, datetime.datetime]): - job_kinds (Union[Unset, None, str]): - args (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - result (Union[Unset, None, str]): - is_skipped (Union[Unset, None, bool]): - is_flow_step (Union[Unset, None, bool]): - success (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListJobsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -created_or_started_before=created_or_started_before, -running=running, -scheduled_for_before_now=scheduled_for_before_now, -created_or_started_after=created_or_started_after, -job_kinds=job_kinds, -args=args, -tag=tag, -result=result, -is_skipped=is_skipped, -is_flow_step=is_flow_step, -success=success, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/list_queue.py b/python-client/windmill-api/windmill_api/api/job/list_queue.py deleted file mode 100644 index 2c2c1d5fc4..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/list_queue.py +++ /dev/null @@ -1,467 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from typing import Optional -from ...models.list_queue_response_200_item import ListQueueResponse200Item -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - suspended: Union[Unset, None, bool] = UNSET, - running: Union[Unset, None, bool] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["order_desc"] = order_desc - - - params["created_by"] = created_by - - - params["parent_job"] = parent_job - - - params["script_path_exact"] = script_path_exact - - - params["script_path_start"] = script_path_start - - - params["schedule_path"] = schedule_path - - - params["script_hash"] = script_hash - - - json_started_before: Union[Unset, None, str] = UNSET - if not isinstance(started_before, Unset): - json_started_before = started_before.isoformat() if started_before else None - - params["started_before"] = json_started_before - - - json_started_after: Union[Unset, None, str] = UNSET - if not isinstance(started_after, Unset): - json_started_after = started_after.isoformat() if started_after else None - - params["started_after"] = json_started_after - - - params["success"] = success - - - params["scheduled_for_before_now"] = scheduled_for_before_now - - - params["job_kinds"] = job_kinds - - - params["suspended"] = suspended - - - params["running"] = running - - - params["args"] = args - - - params["result"] = result - - - params["tag"] = tag - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/queue/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListQueueResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListQueueResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListQueueResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - suspended: Union[Unset, None, bool] = UNSET, - running: Union[Unset, None, bool] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - -) -> Response[List['ListQueueResponse200Item']]: - """ list all queued jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - suspended (Union[Unset, None, bool]): - running (Union[Unset, None, bool]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListQueueResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -scheduled_for_before_now=scheduled_for_before_now, -job_kinds=job_kinds, -suspended=suspended, -running=running, -args=args, -result=result, -tag=tag, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - suspended: Union[Unset, None, bool] = UNSET, - running: Union[Unset, None, bool] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - -) -> Optional[List['ListQueueResponse200Item']]: - """ list all queued jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - suspended (Union[Unset, None, bool]): - running (Union[Unset, None, bool]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListQueueResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -scheduled_for_before_now=scheduled_for_before_now, -job_kinds=job_kinds, -suspended=suspended, -running=running, -args=args, -result=result, -tag=tag, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - suspended: Union[Unset, None, bool] = UNSET, - running: Union[Unset, None, bool] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - -) -> Response[List['ListQueueResponse200Item']]: - """ list all queued jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - suspended (Union[Unset, None, bool]): - running (Union[Unset, None, bool]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListQueueResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -scheduled_for_before_now=scheduled_for_before_now, -job_kinds=job_kinds, -suspended=suspended, -running=running, -args=args, -result=result, -tag=tag, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - script_path_exact: Union[Unset, None, str] = UNSET, - script_path_start: Union[Unset, None, str] = UNSET, - schedule_path: Union[Unset, None, str] = UNSET, - script_hash: Union[Unset, None, str] = UNSET, - started_before: Union[Unset, None, datetime.datetime] = UNSET, - started_after: Union[Unset, None, datetime.datetime] = UNSET, - success: Union[Unset, None, bool] = UNSET, - scheduled_for_before_now: Union[Unset, None, bool] = UNSET, - job_kinds: Union[Unset, None, str] = UNSET, - suspended: Union[Unset, None, bool] = UNSET, - running: Union[Unset, None, bool] = UNSET, - args: Union[Unset, None, str] = UNSET, - result: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - -) -> Optional[List['ListQueueResponse200Item']]: - """ list all queued jobs - - Args: - workspace (str): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - parent_job (Union[Unset, None, str]): - script_path_exact (Union[Unset, None, str]): - script_path_start (Union[Unset, None, str]): - schedule_path (Union[Unset, None, str]): - script_hash (Union[Unset, None, str]): - started_before (Union[Unset, None, datetime.datetime]): - started_after (Union[Unset, None, datetime.datetime]): - success (Union[Unset, None, bool]): - scheduled_for_before_now (Union[Unset, None, bool]): - job_kinds (Union[Unset, None, str]): - suspended (Union[Unset, None, bool]): - running (Union[Unset, None, bool]): - args (Union[Unset, None, str]): - result (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListQueueResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -order_desc=order_desc, -created_by=created_by, -parent_job=parent_job, -script_path_exact=script_path_exact, -script_path_start=script_path_start, -schedule_path=schedule_path, -script_hash=script_hash, -started_before=started_before, -started_after=started_after, -success=success, -scheduled_for_before_now=scheduled_for_before_now, -job_kinds=job_kinds, -suspended=suspended, -running=running, -args=args, -result=result, -tag=tag, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/openai_sync_flow_by_path.py b/python-client/windmill-api/windmill_api/api/job/openai_sync_flow_by_path.py deleted file mode 100644 index 3f077d0cd7..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/openai_sync_flow_by_path.py +++ /dev/null @@ -1,172 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from ...models.openai_sync_flow_by_path_json_body import OpenaiSyncFlowByPathJsonBody -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: OpenaiSyncFlowByPathJsonBody, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["include_header"] = include_header - - - params["queue_limit"] = queue_limit - - - params["job_id"] = job_id - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/openai_sync/f/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: OpenaiSyncFlowByPathJsonBody, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run flow by path and wait until completion in openai format - - Args: - workspace (str): - path (str): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - json_body (OpenaiSyncFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -include_header=include_header, -queue_limit=queue_limit, -job_id=job_id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: OpenaiSyncFlowByPathJsonBody, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run flow by path and wait until completion in openai format - - Args: - workspace (str): - path (str): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - json_body (OpenaiSyncFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -include_header=include_header, -queue_limit=queue_limit, -job_id=job_id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/openai_sync_script_by_path.py b/python-client/windmill-api/windmill_api/api/job/openai_sync_script_by_path.py deleted file mode 100644 index 61ca9729fb..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/openai_sync_script_by_path.py +++ /dev/null @@ -1,182 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.openai_sync_script_by_path_json_body import OpenaiSyncScriptByPathJsonBody -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: OpenaiSyncScriptByPathJsonBody, - parent_job: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["parent_job"] = parent_job - - - params["job_id"] = job_id - - - params["include_header"] = include_header - - - params["queue_limit"] = queue_limit - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/openai_sync/p/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: OpenaiSyncScriptByPathJsonBody, - parent_job: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script by path in openai format - - Args: - workspace (str): - path (str): - parent_job (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - json_body (OpenaiSyncScriptByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -parent_job=parent_job, -job_id=job_id, -include_header=include_header, -queue_limit=queue_limit, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: OpenaiSyncScriptByPathJsonBody, - parent_job: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script by path in openai format - - Args: - workspace (str): - path (str): - parent_job (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - json_body (OpenaiSyncScriptByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -parent_job=parent_job, -job_id=job_id, -include_header=include_header, -queue_limit=queue_limit, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/restart_flow_at_step.py b/python-client/windmill-api/windmill_api/api/job/restart_flow_at_step.py deleted file mode 100644 index 0829d5b5e8..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/restart_flow_at_step.py +++ /dev/null @@ -1,230 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.restart_flow_at_step_json_body import RestartFlowAtStepJsonBody -import datetime -from dateutil.parser import isoparse -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - step_id: str, - branch_or_iteration_n: int, - *, - json_body: RestartFlowAtStepJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - json_scheduled_for: Union[Unset, None, str] = UNSET - if not isinstance(scheduled_for, Unset): - json_scheduled_for = scheduled_for.isoformat() if scheduled_for else None - - params["scheduled_for"] = json_scheduled_for - - - params["scheduled_in_secs"] = scheduled_in_secs - - - params["parent_job"] = parent_job - - - params["tag"] = tag - - - params["job_id"] = job_id - - - params["include_header"] = include_header - - - params["invisible_to_owner"] = invisible_to_owner - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/restart/f/{id}/from/{step_id}/{branch_or_iteration_n}".format(workspace=workspace,id=id,step_id=step_id,branch_or_iteration_n=branch_or_iteration_n,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - step_id: str, - branch_or_iteration_n: int, - *, - client: Union[AuthenticatedClient, Client], - json_body: RestartFlowAtStepJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ restart a completed flow at a given step - - Args: - workspace (str): - id (str): - step_id (str): - branch_or_iteration_n (int): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RestartFlowAtStepJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -step_id=step_id, -branch_or_iteration_n=branch_or_iteration_n, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -invisible_to_owner=invisible_to_owner, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - step_id: str, - branch_or_iteration_n: int, - *, - client: Union[AuthenticatedClient, Client], - json_body: RestartFlowAtStepJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ restart a completed flow at a given step - - Args: - workspace (str): - id (str): - step_id (str): - branch_or_iteration_n (int): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RestartFlowAtStepJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -step_id=step_id, -branch_or_iteration_n=branch_or_iteration_n, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -invisible_to_owner=invisible_to_owner, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/result_by_id.py b/python-client/windmill-api/windmill_api/api/job/result_by_id.py deleted file mode 100644 index b783f55810..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/result_by_id.py +++ /dev/null @@ -1,128 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - flow_job_id: str, - node_id: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/result_by_id/{flow_job_id}/{node_id}".format(workspace=workspace,flow_job_id=flow_job_id,node_id=node_id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - flow_job_id: str, - node_id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get job result by id - - Args: - workspace (str): - flow_job_id (str): - node_id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -flow_job_id=flow_job_id, -node_id=node_id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - flow_job_id: str, - node_id: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get job result by id - - Args: - workspace (str): - flow_job_id (str): - node_id (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -flow_job_id=flow_job_id, -node_id=node_id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/resume_suspended_flow_as_owner.py b/python-client/windmill-api/windmill_api/api/job/resume_suspended_flow_as_owner.py deleted file mode 100644 index f07cca308e..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/resume_suspended_flow_as_owner.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.resume_suspended_flow_as_owner_json_body import ResumeSuspendedFlowAsOwnerJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - id: str, - *, - json_body: ResumeSuspendedFlowAsOwnerJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/flow/resume/{id}".format(workspace=workspace,id=id,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ResumeSuspendedFlowAsOwnerJsonBody, - -) -> Response[Any]: - """ resume a job for a suspended flow as an owner - - Args: - workspace (str): - id (str): - json_body (ResumeSuspendedFlowAsOwnerJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ResumeSuspendedFlowAsOwnerJsonBody, - -) -> Response[Any]: - """ resume a job for a suspended flow as an owner - - Args: - workspace (str): - id (str): - json_body (ResumeSuspendedFlowAsOwnerJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/resume_suspended_job_get.py b/python-client/windmill-api/windmill_api/api/job/resume_suspended_job_get.py deleted file mode 100644 index 7d28bcfa35..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/resume_suspended_job_get.py +++ /dev/null @@ -1,161 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - payload: Union[Unset, None, str] = UNSET, - approver: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["payload"] = payload - - - params["approver"] = approver - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs_u/resume/{id}/{resume_id}/{signature}".format(workspace=workspace,id=id,resume_id=resume_id,signature=signature,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - payload: Union[Unset, None, str] = UNSET, - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ resume a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - payload (Union[Unset, None, str]): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -payload=payload, -approver=approver, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - payload: Union[Unset, None, str] = UNSET, - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ resume a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - payload (Union[Unset, None, str]): - approver (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -payload=payload, -approver=approver, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/resume_suspended_job_post.py b/python-client/windmill-api/windmill_api/api/job/resume_suspended_job_post.py deleted file mode 100644 index 836751443e..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/resume_suspended_job_post.py +++ /dev/null @@ -1,164 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.resume_suspended_job_post_json_body import ResumeSuspendedJobPostJsonBody -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - json_body: ResumeSuspendedJobPostJsonBody, - approver: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["approver"] = approver - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs_u/resume/{id}/{resume_id}/{signature}".format(workspace=workspace,id=id,resume_id=resume_id,signature=signature,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ResumeSuspendedJobPostJsonBody, - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ resume a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - json_body (ResumeSuspendedJobPostJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -json_body=json_body, -approver=approver, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: str, - resume_id: int, - signature: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ResumeSuspendedJobPostJsonBody, - approver: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ resume a job for a suspended flow - - Args: - workspace (str): - id (str): - resume_id (int): - signature (str): - approver (Union[Unset, None, str]): - json_body (ResumeSuspendedJobPostJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -resume_id=resume_id, -signature=signature, -json_body=json_body, -approver=approver, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_flow_by_path.py b/python-client/windmill-api/windmill_api/api/job/run_flow_by_path.py deleted file mode 100644 index 1437d9a3aa..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_flow_by_path.py +++ /dev/null @@ -1,216 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from ...models.run_flow_by_path_json_body import RunFlowByPathJsonBody -from typing import Dict -import datetime -from dateutil.parser import isoparse -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: RunFlowByPathJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - json_scheduled_for: Union[Unset, None, str] = UNSET - if not isinstance(scheduled_for, Unset): - json_scheduled_for = scheduled_for.isoformat() if scheduled_for else None - - params["scheduled_for"] = json_scheduled_for - - - params["scheduled_in_secs"] = scheduled_in_secs - - - params["parent_job"] = parent_job - - - params["tag"] = tag - - - params["job_id"] = job_id - - - params["include_header"] = include_header - - - params["invisible_to_owner"] = invisible_to_owner - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run/f/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunFlowByPathJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ run flow by path - - Args: - workspace (str): - path (str): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RunFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -invisible_to_owner=invisible_to_owner, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunFlowByPathJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ run flow by path - - Args: - workspace (str): - path (str): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RunFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -invisible_to_owner=invisible_to_owner, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_flow_preview.py b/python-client/windmill-api/windmill_api/api/job/run_flow_preview.py deleted file mode 100644 index 21eda34bc6..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_flow_preview.py +++ /dev/null @@ -1,163 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from ...models.run_flow_preview_json_body import RunFlowPreviewJsonBody -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - json_body: RunFlowPreviewJsonBody, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["include_header"] = include_header - - - params["invisible_to_owner"] = invisible_to_owner - - - params["job_id"] = job_id - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run/preview_flow".format(workspace=workspace,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunFlowPreviewJsonBody, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run flow preview - - Args: - workspace (str): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - job_id (Union[Unset, None, str]): - json_body (RunFlowPreviewJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -include_header=include_header, -invisible_to_owner=invisible_to_owner, -job_id=job_id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunFlowPreviewJsonBody, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run flow preview - - Args: - workspace (str): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - job_id (Union[Unset, None, str]): - json_body (RunFlowPreviewJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -include_header=include_header, -invisible_to_owner=invisible_to_owner, -job_id=job_id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_raw_script_dependencies.py b/python-client/windmill-api/windmill_api/api/job/run_raw_script_dependencies.py deleted file mode 100644 index fc2feb1839..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_raw_script_dependencies.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.run_raw_script_dependencies_json_body import RunRawScriptDependenciesJsonBody -from ...models.run_raw_script_dependencies_response_201 import RunRawScriptDependenciesResponse201 - - - -def _get_kwargs( - workspace: str, - *, - json_body: RunRawScriptDependenciesJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run/dependencies".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[RunRawScriptDependenciesResponse201]: - if response.status_code == HTTPStatus.CREATED: - response_201 = RunRawScriptDependenciesResponse201.from_dict(response.json()) - - - - return response_201 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[RunRawScriptDependenciesResponse201]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunRawScriptDependenciesJsonBody, - -) -> Response[RunRawScriptDependenciesResponse201]: - """ run a one-off dependencies job - - Args: - workspace (str): - json_body (RunRawScriptDependenciesJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[RunRawScriptDependenciesResponse201] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunRawScriptDependenciesJsonBody, - -) -> Optional[RunRawScriptDependenciesResponse201]: - """ run a one-off dependencies job - - Args: - workspace (str): - json_body (RunRawScriptDependenciesJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - RunRawScriptDependenciesResponse201 - """ - - - return sync_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunRawScriptDependenciesJsonBody, - -) -> Response[RunRawScriptDependenciesResponse201]: - """ run a one-off dependencies job - - Args: - workspace (str): - json_body (RunRawScriptDependenciesJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[RunRawScriptDependenciesResponse201] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunRawScriptDependenciesJsonBody, - -) -> Optional[RunRawScriptDependenciesResponse201]: - """ run a one-off dependencies job - - Args: - workspace (str): - json_body (RunRawScriptDependenciesJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - RunRawScriptDependenciesResponse201 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/job/run_script_by_hash.py b/python-client/windmill-api/windmill_api/api/job/run_script_by_hash.py deleted file mode 100644 index 4f355ad6d3..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_script_by_hash.py +++ /dev/null @@ -1,216 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from typing import Optional -from ...types import UNSET, Unset -from ...models.run_script_by_hash_json_body import RunScriptByHashJsonBody - - - -def _get_kwargs( - workspace: str, - hash_: str, - *, - json_body: RunScriptByHashJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - json_scheduled_for: Union[Unset, None, str] = UNSET - if not isinstance(scheduled_for, Unset): - json_scheduled_for = scheduled_for.isoformat() if scheduled_for else None - - params["scheduled_for"] = json_scheduled_for - - - params["scheduled_in_secs"] = scheduled_in_secs - - - params["parent_job"] = parent_job - - - params["tag"] = tag - - - params["job_id"] = job_id - - - params["include_header"] = include_header - - - params["invisible_to_owner"] = invisible_to_owner - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run/h/{hash}".format(workspace=workspace,hash=hash_,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunScriptByHashJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ run script by hash - - Args: - workspace (str): - hash_ (str): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RunScriptByHashJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -invisible_to_owner=invisible_to_owner, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunScriptByHashJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ run script by hash - - Args: - workspace (str): - hash_ (str): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RunScriptByHashJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -invisible_to_owner=invisible_to_owner, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_script_by_path.py b/python-client/windmill-api/windmill_api/api/job/run_script_by_path.py deleted file mode 100644 index 3fa9dec284..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_script_by_path.py +++ /dev/null @@ -1,206 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.run_script_by_path_json_body import RunScriptByPathJsonBody -import datetime -from dateutil.parser import isoparse -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: RunScriptByPathJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - json_scheduled_for: Union[Unset, None, str] = UNSET - if not isinstance(scheduled_for, Unset): - json_scheduled_for = scheduled_for.isoformat() if scheduled_for else None - - params["scheduled_for"] = json_scheduled_for - - - params["scheduled_in_secs"] = scheduled_in_secs - - - params["parent_job"] = parent_job - - - params["tag"] = tag - - - params["job_id"] = job_id - - - params["invisible_to_owner"] = invisible_to_owner - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run/p/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunScriptByPathJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ run script by path - - Args: - workspace (str): - path (str): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RunScriptByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -invisible_to_owner=invisible_to_owner, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunScriptByPathJsonBody, - scheduled_for: Union[Unset, None, datetime.datetime] = UNSET, - scheduled_in_secs: Union[Unset, None, int] = UNSET, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ run script by path - - Args: - workspace (str): - path (str): - scheduled_for (Union[Unset, None, datetime.datetime]): - scheduled_in_secs (Union[Unset, None, int]): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - json_body (RunScriptByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -scheduled_for=scheduled_for, -scheduled_in_secs=scheduled_in_secs, -parent_job=parent_job, -tag=tag, -job_id=job_id, -invisible_to_owner=invisible_to_owner, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_script_preview.py b/python-client/windmill-api/windmill_api/api/job/run_script_preview.py deleted file mode 100644 index 34c73a12f3..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_script_preview.py +++ /dev/null @@ -1,163 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.run_script_preview_json_body import RunScriptPreviewJsonBody -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - json_body: RunScriptPreviewJsonBody, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["include_header"] = include_header - - - params["invisible_to_owner"] = invisible_to_owner - - - params["job_id"] = job_id - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run/preview".format(workspace=workspace,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunScriptPreviewJsonBody, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script preview - - Args: - workspace (str): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - job_id (Union[Unset, None, str]): - json_body (RunScriptPreviewJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -include_header=include_header, -invisible_to_owner=invisible_to_owner, -job_id=job_id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunScriptPreviewJsonBody, - include_header: Union[Unset, None, str] = UNSET, - invisible_to_owner: Union[Unset, None, bool] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script preview - - Args: - workspace (str): - include_header (Union[Unset, None, str]): - invisible_to_owner (Union[Unset, None, bool]): - job_id (Union[Unset, None, str]): - json_body (RunScriptPreviewJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -include_header=include_header, -invisible_to_owner=invisible_to_owner, -job_id=job_id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_wait_result_flow_by_path.py b/python-client/windmill-api/windmill_api/api/job/run_wait_result_flow_by_path.py deleted file mode 100644 index adfa308248..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_wait_result_flow_by_path.py +++ /dev/null @@ -1,172 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from ...models.run_wait_result_flow_by_path_json_body import RunWaitResultFlowByPathJsonBody -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: RunWaitResultFlowByPathJsonBody, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["include_header"] = include_header - - - params["queue_limit"] = queue_limit - - - params["job_id"] = job_id - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run_wait_result/f/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunWaitResultFlowByPathJsonBody, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run flow by path and wait until completion - - Args: - workspace (str): - path (str): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - json_body (RunWaitResultFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -include_header=include_header, -queue_limit=queue_limit, -job_id=job_id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunWaitResultFlowByPathJsonBody, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run flow by path and wait until completion - - Args: - workspace (str): - path (str): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - json_body (RunWaitResultFlowByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -include_header=include_header, -queue_limit=queue_limit, -job_id=job_id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_wait_result_script_by_path.py b/python-client/windmill-api/windmill_api/api/job/run_wait_result_script_by_path.py deleted file mode 100644 index 5a11a5dcce..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_wait_result_script_by_path.py +++ /dev/null @@ -1,192 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from ...models.run_wait_result_script_by_path_json_body import RunWaitResultScriptByPathJsonBody -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: RunWaitResultScriptByPathJsonBody, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["parent_job"] = parent_job - - - params["tag"] = tag - - - params["job_id"] = job_id - - - params["include_header"] = include_header - - - params["queue_limit"] = queue_limit - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/jobs/run_wait_result/p/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunWaitResultScriptByPathJsonBody, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script by path - - Args: - workspace (str): - path (str): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - json_body (RunWaitResultScriptByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -queue_limit=queue_limit, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunWaitResultScriptByPathJsonBody, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script by path - - Args: - workspace (str): - path (str): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - json_body (RunWaitResultScriptByPathJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -queue_limit=queue_limit, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/job/run_wait_result_script_by_path_get.py b/python-client/windmill-api/windmill_api/api/job/run_wait_result_script_by_path_get.py deleted file mode 100644 index 9f6bb2d1fc..0000000000 --- a/python-client/windmill-api/windmill_api/api/job/run_wait_result_script_by_path_get.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - payload: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["parent_job"] = parent_job - - - params["tag"] = tag - - - params["job_id"] = job_id - - - params["include_header"] = include_header - - - params["queue_limit"] = queue_limit - - - params["payload"] = payload - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/jobs/run_wait_result/p/{path}".format(workspace=workspace,path=path,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - payload: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script by path with get - - Args: - workspace (str): - path (str): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - payload (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -queue_limit=queue_limit, -payload=payload, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - parent_job: Union[Unset, None, str] = UNSET, - tag: Union[Unset, None, str] = UNSET, - job_id: Union[Unset, None, str] = UNSET, - include_header: Union[Unset, None, str] = UNSET, - queue_limit: Union[Unset, None, str] = UNSET, - payload: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ run script by path with get - - Args: - workspace (str): - path (str): - parent_job (Union[Unset, None, str]): - tag (Union[Unset, None, str]): - job_id (Union[Unset, None, str]): - include_header (Union[Unset, None, str]): - queue_limit (Union[Unset, None, str]): - payload (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -parent_job=parent_job, -tag=tag, -job_id=job_id, -include_header=include_header, -queue_limit=queue_limit, -payload=payload, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/metrics/__init__.py b/python-client/windmill-api/windmill_api/api/metrics/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/metrics/get_job_metrics.py b/python-client/windmill-api/windmill_api/api/metrics/get_job_metrics.py deleted file mode 100644 index 3e38a1c1d1..0000000000 --- a/python-client/windmill-api/windmill_api/api/metrics/get_job_metrics.py +++ /dev/null @@ -1,202 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_job_metrics_json_body import GetJobMetricsJsonBody -from ...models.get_job_metrics_response_200 import GetJobMetricsResponse200 - - - -def _get_kwargs( - workspace: str, - id: str, - *, - json_body: GetJobMetricsJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/job_metrics/get/{id}".format(workspace=workspace,id=id,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetJobMetricsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetJobMetricsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetJobMetricsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: GetJobMetricsJsonBody, - -) -> Response[GetJobMetricsResponse200]: - """ get job metrics - - Args: - workspace (str): - id (str): - json_body (GetJobMetricsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetJobMetricsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: GetJobMetricsJsonBody, - -) -> Optional[GetJobMetricsResponse200]: - """ get job metrics - - Args: - workspace (str): - id (str): - json_body (GetJobMetricsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetJobMetricsResponse200 - """ - - - return sync_detailed( - workspace=workspace, -id=id, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: GetJobMetricsJsonBody, - -) -> Response[GetJobMetricsResponse200]: - """ get job metrics - - Args: - workspace (str): - id (str): - json_body (GetJobMetricsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetJobMetricsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - id: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: GetJobMetricsJsonBody, - -) -> Optional[GetJobMetricsResponse200]: - """ get job metrics - - Args: - workspace (str): - id (str): - json_body (GetJobMetricsJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetJobMetricsResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -id=id, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/oauth/__init__.py b/python-client/windmill-api/windmill_api/api/oauth/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/oauth/connect_callback.py b/python-client/windmill-api/windmill_api/api/oauth/connect_callback.py deleted file mode 100644 index 728e2c6496..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/connect_callback.py +++ /dev/null @@ -1,189 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.connect_callback_response_200 import ConnectCallbackResponse200 -from typing import Dict -from ...models.connect_callback_json_body import ConnectCallbackJsonBody - - - -def _get_kwargs( - client_name: str, - *, - json_body: ConnectCallbackJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/oauth/connect_callback/{client_name}".format(client_name=client_name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[ConnectCallbackResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = ConnectCallbackResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[ConnectCallbackResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - client_name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ConnectCallbackJsonBody, - -) -> Response[ConnectCallbackResponse200]: - """ connect callback - - Args: - client_name (str): - json_body (ConnectCallbackJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ConnectCallbackResponse200] - """ - - - kwargs = _get_kwargs( - client_name=client_name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - client_name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ConnectCallbackJsonBody, - -) -> Optional[ConnectCallbackResponse200]: - """ connect callback - - Args: - client_name (str): - json_body (ConnectCallbackJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ConnectCallbackResponse200 - """ - - - return sync_detailed( - client_name=client_name, -client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - client_name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ConnectCallbackJsonBody, - -) -> Response[ConnectCallbackResponse200]: - """ connect callback - - Args: - client_name (str): - json_body (ConnectCallbackJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ConnectCallbackResponse200] - """ - - - kwargs = _get_kwargs( - client_name=client_name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - client_name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ConnectCallbackJsonBody, - -) -> Optional[ConnectCallbackResponse200]: - """ connect callback - - Args: - client_name (str): - json_body (ConnectCallbackJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ConnectCallbackResponse200 - """ - - - return (await asyncio_detailed( - client_name=client_name, -client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/oauth/connect_slack_callback.py b/python-client/windmill-api/windmill_api/api/oauth/connect_slack_callback.py deleted file mode 100644 index 75d8d8336a..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/connect_slack_callback.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.connect_slack_callback_json_body import ConnectSlackCallbackJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: ConnectSlackCallbackJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/oauth/connect_slack_callback".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ConnectSlackCallbackJsonBody, - -) -> Response[Any]: - """ connect slack callback - - Args: - workspace (str): - json_body (ConnectSlackCallbackJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ConnectSlackCallbackJsonBody, - -) -> Response[Any]: - """ connect slack callback - - Args: - workspace (str): - json_body (ConnectSlackCallbackJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/oauth/create_account.py b/python-client/windmill-api/windmill_api/api/oauth/create_account.py deleted file mode 100644 index bcd10dc935..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/create_account.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.create_account_json_body import CreateAccountJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateAccountJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/oauth/create_account".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateAccountJsonBody, - -) -> Response[Any]: - """ create OAuth account - - Args: - workspace (str): - json_body (CreateAccountJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateAccountJsonBody, - -) -> Response[Any]: - """ create OAuth account - - Args: - workspace (str): - json_body (CreateAccountJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/oauth/disconnect_account.py b/python-client/windmill-api/windmill_api/api/oauth/disconnect_account.py deleted file mode 100644 index 6f8bb98e27..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/disconnect_account.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - id: int, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/oauth/disconnect/{id}".format(workspace=workspace,id=id,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ disconnect account - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ disconnect account - - Args: - workspace (str): - id (int): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/oauth/disconnect_slack.py b/python-client/windmill-api/windmill_api/api/oauth/disconnect_slack.py deleted file mode 100644 index d62e54ac97..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/disconnect_slack.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/oauth/disconnect_slack".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ disconnect slack - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ disconnect slack - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/oauth/list_o_auth_connects.py b/python-client/windmill-api/windmill_api/api/oauth/list_o_auth_connects.py deleted file mode 100644 index 3387095ba0..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/list_o_auth_connects.py +++ /dev/null @@ -1,103 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/oauth/list_connects", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ list oauth connects - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ list oauth connects - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/oauth/list_o_auth_logins.py b/python-client/windmill-api/windmill_api/api/oauth/list_o_auth_logins.py deleted file mode 100644 index 23342c997e..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/list_o_auth_logins.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.list_o_auth_logins_response_200 import ListOAuthLoginsResponse200 - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/oauth/list_logins", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[ListOAuthLoginsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = ListOAuthLoginsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[ListOAuthLoginsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListOAuthLoginsResponse200]: - """ list oauth logins - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListOAuthLoginsResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListOAuthLoginsResponse200]: - """ list oauth logins - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListOAuthLoginsResponse200 - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListOAuthLoginsResponse200]: - """ list oauth logins - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListOAuthLoginsResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListOAuthLoginsResponse200]: - """ list oauth logins - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListOAuthLoginsResponse200 - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/oauth/refresh_token.py b/python-client/windmill-api/windmill_api/api/oauth/refresh_token.py deleted file mode 100644 index eb171fe7c5..0000000000 --- a/python-client/windmill-api/windmill_api/api/oauth/refresh_token.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.refresh_token_json_body import RefreshTokenJsonBody - - - -def _get_kwargs( - workspace: str, - id: int, - *, - json_body: RefreshTokenJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/oauth/refresh_token/{id}".format(workspace=workspace,id=id,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - json_body: RefreshTokenJsonBody, - -) -> Response[Any]: - """ refresh token - - Args: - workspace (str): - id (int): - json_body (RefreshTokenJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - id: int, - *, - client: Union[AuthenticatedClient, Client], - json_body: RefreshTokenJsonBody, - -) -> Response[Any]: - """ refresh token - - Args: - workspace (str): - id (int): - json_body (RefreshTokenJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -id=id, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/oidc/__init__.py b/python-client/windmill-api/windmill_api/api/oidc/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/oidc/get_oidc_token.py b/python-client/windmill-api/windmill_api/api/oidc/get_oidc_token.py deleted file mode 100644 index 07c5f2e616..0000000000 --- a/python-client/windmill-api/windmill_api/api/oidc/get_oidc_token.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - audience: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/oidc/token/{audience}".format(workspace=workspace,audience=audience,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - audience: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get OIDC token (ee only) - - Args: - workspace (str): - audience (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -audience=audience, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - audience: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get OIDC token (ee only) - - Args: - workspace (str): - audience (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -audience=audience, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/raw_app/__init__.py b/python-client/windmill-api/windmill_api/api/raw_app/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/raw_app/create_raw_app.py b/python-client/windmill-api/windmill_api/api/raw_app/create_raw_app.py deleted file mode 100644 index 5ef6943e57..0000000000 --- a/python-client/windmill-api/windmill_api/api/raw_app/create_raw_app.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.create_raw_app_json_body import CreateRawAppJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateRawAppJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/raw_apps/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateRawAppJsonBody, - -) -> Response[Any]: - """ create raw app - - Args: - workspace (str): - json_body (CreateRawAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateRawAppJsonBody, - -) -> Response[Any]: - """ create raw app - - Args: - workspace (str): - json_body (CreateRawAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/raw_app/delete_raw_app.py b/python-client/windmill-api/windmill_api/api/raw_app/delete_raw_app.py deleted file mode 100644 index bb8cd01993..0000000000 --- a/python-client/windmill-api/windmill_api/api/raw_app/delete_raw_app.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/raw_apps/delete/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete raw app - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete raw app - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/raw_app/exists_raw_app.py b/python-client/windmill-api/windmill_api/api/raw_app/exists_raw_app.py deleted file mode 100644 index 6def0c8b20..0000000000 --- a/python-client/windmill-api/windmill_api/api/raw_app/exists_raw_app.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/raw_apps/exists/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does an app exisst at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/raw_app/get_raw_app_data.py b/python-client/windmill-api/windmill_api/api/raw_app/get_raw_app_data.py deleted file mode 100644 index dda6238b9e..0000000000 --- a/python-client/windmill-api/windmill_api/api/raw_app/get_raw_app_data.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - version: float, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/apps/get_data/{version}/{path}".format(workspace=workspace,version=version,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - version: float, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get app by path - - Args: - workspace (str): - version (float): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -version=version, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - version: float, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get app by path - - Args: - workspace (str): - version (float): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -version=version, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/raw_app/list_raw_apps.py b/python-client/windmill-api/windmill_api/api/raw_app/list_raw_apps.py deleted file mode 100644 index a3edfd25a0..0000000000 --- a/python-client/windmill-api/windmill_api/api/raw_app/list_raw_apps.py +++ /dev/null @@ -1,297 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_raw_apps_response_200_item import ListRawAppsResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - params["order_desc"] = order_desc - - - params["created_by"] = created_by - - - params["path_start"] = path_start - - - params["path_exact"] = path_exact - - - params["starred_only"] = starred_only - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/raw_apps/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListRawAppsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListRawAppsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListRawAppsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListRawAppsResponse200Item']]: - """ list all raw apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListRawAppsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListRawAppsResponse200Item']]: - """ list all raw apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListRawAppsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListRawAppsResponse200Item']]: - """ list all raw apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListRawAppsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListRawAppsResponse200Item']]: - """ list all raw apps - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListRawAppsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -starred_only=starred_only, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/raw_app/update_raw_app.py b/python-client/windmill-api/windmill_api/api/raw_app/update_raw_app.py deleted file mode 100644 index 3c9cd275f1..0000000000 --- a/python-client/windmill-api/windmill_api/api/raw_app/update_raw_app.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_raw_app_json_body import UpdateRawAppJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateRawAppJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/raw_apps/update/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateRawAppJsonBody, - -) -> Response[Any]: - """ update app - - Args: - workspace (str): - path (str): - json_body (UpdateRawAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateRawAppJsonBody, - -) -> Response[Any]: - """ update app - - Args: - workspace (str): - path (str): - json_body (UpdateRawAppJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/__init__.py b/python-client/windmill-api/windmill_api/api/resource/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/resource/create_resource.py b/python-client/windmill-api/windmill_api/api/resource/create_resource.py deleted file mode 100644 index 45a2e83036..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/create_resource.py +++ /dev/null @@ -1,143 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.create_resource_json_body import CreateResourceJsonBody -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateResourceJsonBody, - update_if_exists: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["update_if_exists"] = update_if_exists - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/resources/create".format(workspace=workspace,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateResourceJsonBody, - update_if_exists: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ create resource - - Args: - workspace (str): - update_if_exists (Union[Unset, None, bool]): - json_body (CreateResourceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -update_if_exists=update_if_exists, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateResourceJsonBody, - update_if_exists: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ create resource - - Args: - workspace (str): - update_if_exists (Union[Unset, None, bool]): - json_body (CreateResourceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -update_if_exists=update_if_exists, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/create_resource_type.py b/python-client/windmill-api/windmill_api/api/resource/create_resource_type.py deleted file mode 100644 index f37b17d17c..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/create_resource_type.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.create_resource_type_json_body import CreateResourceTypeJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateResourceTypeJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/resources/type/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateResourceTypeJsonBody, - -) -> Response[Any]: - """ create resource_type - - Args: - workspace (str): - json_body (CreateResourceTypeJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateResourceTypeJsonBody, - -) -> Response[Any]: - """ create resource_type - - Args: - workspace (str): - json_body (CreateResourceTypeJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/delete_resource.py b/python-client/windmill-api/windmill_api/api/resource/delete_resource.py deleted file mode 100644 index 3a786cedc7..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/delete_resource.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/resources/delete/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/delete_resource_type.py b/python-client/windmill-api/windmill_api/api/resource/delete_resource_type.py deleted file mode 100644 index d365938383..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/delete_resource_type.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/resources/type/delete/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete resource_type - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete resource_type - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/exists_resource.py b/python-client/windmill-api/windmill_api/api/resource/exists_resource.py deleted file mode 100644 index ada3784e28..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/exists_resource.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/exists/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does resource exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does resource exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does resource exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does resource exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/exists_resource_type.py b/python-client/windmill-api/windmill_api/api/resource/exists_resource_type.py deleted file mode 100644 index 7291e31845..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/exists_resource_type.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/type/exists/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does resource_type exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does resource_type exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does resource_type exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does resource_type exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/get_resource.py b/python-client/windmill-api/windmill_api/api/resource/get_resource.py deleted file mode 100644 index 6c2543ae51..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/get_resource.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_resource_response_200 import GetResourceResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/get/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetResourceResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetResourceResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetResourceResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetResourceResponse200]: - """ get resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetResourceResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetResourceResponse200]: - """ get resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetResourceResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetResourceResponse200]: - """ get resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetResourceResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetResourceResponse200]: - """ get resource - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetResourceResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/get_resource_type.py b/python-client/windmill-api/windmill_api/api/resource/get_resource_type.py deleted file mode 100644 index 2f18fbcd42..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/get_resource_type.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_resource_type_response_200 import GetResourceTypeResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/type/get/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetResourceTypeResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetResourceTypeResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetResourceTypeResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetResourceTypeResponse200]: - """ get resource_type - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetResourceTypeResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetResourceTypeResponse200]: - """ get resource_type - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetResourceTypeResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetResourceTypeResponse200]: - """ get resource_type - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetResourceTypeResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetResourceTypeResponse200]: - """ get resource_type - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetResourceTypeResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/get_resource_value.py b/python-client/windmill-api/windmill_api/api/resource/get_resource_value.py deleted file mode 100644 index 803b81d641..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/get_resource_value.py +++ /dev/null @@ -1,121 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/get_value/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get resource value - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get resource value - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/get_resource_value_interpolated.py b/python-client/windmill-api/windmill_api/api/resource/get_resource_value_interpolated.py deleted file mode 100644 index c2f0bc62ba..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/get_resource_value_interpolated.py +++ /dev/null @@ -1,139 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - job_id: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["job_id"] = job_id - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/get_value_interpolated/{path}".format(workspace=workspace,path=path,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ get resource interpolated (variables and resources are fully unrolled) - - Args: - workspace (str): - path (str): - job_id (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -job_id=job_id, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - job_id: Union[Unset, None, str] = UNSET, - -) -> Response[Any]: - """ get resource interpolated (variables and resources are fully unrolled) - - Args: - workspace (str): - path (str): - job_id (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -job_id=job_id, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/list_resource.py b/python-client/windmill-api/windmill_api/api/resource/list_resource.py deleted file mode 100644 index 54c64179cb..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/list_resource.py +++ /dev/null @@ -1,249 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_resource_response_200_item import ListResourceResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - resource_type: Union[Unset, None, str] = UNSET, - resource_type_exclude: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - params["resource_type"] = resource_type - - - params["resource_type_exclude"] = resource_type_exclude - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListResourceResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListResourceResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListResourceResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - resource_type: Union[Unset, None, str] = UNSET, - resource_type_exclude: Union[Unset, None, str] = UNSET, - -) -> Response[List['ListResourceResponse200Item']]: - """ list resources - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - resource_type (Union[Unset, None, str]): - resource_type_exclude (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListResourceResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -resource_type=resource_type, -resource_type_exclude=resource_type_exclude, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - resource_type: Union[Unset, None, str] = UNSET, - resource_type_exclude: Union[Unset, None, str] = UNSET, - -) -> Optional[List['ListResourceResponse200Item']]: - """ list resources - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - resource_type (Union[Unset, None, str]): - resource_type_exclude (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListResourceResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -resource_type=resource_type, -resource_type_exclude=resource_type_exclude, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - resource_type: Union[Unset, None, str] = UNSET, - resource_type_exclude: Union[Unset, None, str] = UNSET, - -) -> Response[List['ListResourceResponse200Item']]: - """ list resources - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - resource_type (Union[Unset, None, str]): - resource_type_exclude (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListResourceResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -resource_type=resource_type, -resource_type_exclude=resource_type_exclude, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - resource_type: Union[Unset, None, str] = UNSET, - resource_type_exclude: Union[Unset, None, str] = UNSET, - -) -> Optional[List['ListResourceResponse200Item']]: - """ list resources - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - resource_type (Union[Unset, None, str]): - resource_type_exclude (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListResourceResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -resource_type=resource_type, -resource_type_exclude=resource_type_exclude, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/list_resource_names.py b/python-client/windmill-api/windmill_api/api/resource/list_resource_names.py deleted file mode 100644 index cf74d12b4e..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/list_resource_names.py +++ /dev/null @@ -1,190 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.list_resource_names_response_200_item import ListResourceNamesResponse200Item -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - name: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/list_names/{name}".format(workspace=workspace,name=name,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListResourceNamesResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListResourceNamesResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListResourceNamesResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListResourceNamesResponse200Item']]: - """ list resource names - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListResourceNamesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListResourceNamesResponse200Item']]: - """ list resource names - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListResourceNamesResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -name=name, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListResourceNamesResponse200Item']]: - """ list resource names - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListResourceNamesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -name=name, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - name: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListResourceNamesResponse200Item']]: - """ list resource names - - Args: - workspace (str): - name (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListResourceNamesResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -name=name, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/list_resource_type.py b/python-client/windmill-api/windmill_api/api/resource/list_resource_type.py deleted file mode 100644 index 74326983e4..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/list_resource_type.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.list_resource_type_response_200_item import ListResourceTypeResponse200Item -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/type/list".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListResourceTypeResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListResourceTypeResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListResourceTypeResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListResourceTypeResponse200Item']]: - """ list resource_types - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListResourceTypeResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListResourceTypeResponse200Item']]: - """ list resource_types - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListResourceTypeResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListResourceTypeResponse200Item']]: - """ list resource_types - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListResourceTypeResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListResourceTypeResponse200Item']]: - """ list resource_types - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListResourceTypeResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/list_resource_type_names.py b/python-client/windmill-api/windmill_api/api/resource/list_resource_type_names.py deleted file mode 100644 index e6124d8a0f..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/list_resource_type_names.py +++ /dev/null @@ -1,167 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/type/listnames".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(List[str], response.json()) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ list resource_types names - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ list resource_types names - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ list resource_types names - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ list resource_types names - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/list_search_resource.py b/python-client/windmill-api/windmill_api/api/resource/list_search_resource.py deleted file mode 100644 index 0c76ab9bf9..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/list_search_resource.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.list_search_resource_response_200_item import ListSearchResourceResponse200Item -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/resources/list_search".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListSearchResourceResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListSearchResourceResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListSearchResourceResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchResourceResponse200Item']]: - """ list resources for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchResourceResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchResourceResponse200Item']]: - """ list resources for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchResourceResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchResourceResponse200Item']]: - """ list resources for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchResourceResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchResourceResponse200Item']]: - """ list resources for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchResourceResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/query_resource_types.py b/python-client/windmill-api/windmill_api/api/resource/query_resource_types.py deleted file mode 100644 index 4e5a7c0296..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/query_resource_types.py +++ /dev/null @@ -1,217 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset -from ...models.query_resource_types_response_200_item import QueryResourceTypesResponse200Item - - - -def _get_kwargs( - workspace: str, - *, - text: str, - limit: Union[Unset, None, float] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["text"] = text - - - params["limit"] = limit - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/embeddings/query_resource_types".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['QueryResourceTypesResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = QueryResourceTypesResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['QueryResourceTypesResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - text: str, - limit: Union[Unset, None, float] = UNSET, - -) -> Response[List['QueryResourceTypesResponse200Item']]: - """ query resource types by similarity - - Args: - workspace (str): - text (str): - limit (Union[Unset, None, float]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['QueryResourceTypesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -text=text, -limit=limit, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - text: str, - limit: Union[Unset, None, float] = UNSET, - -) -> Optional[List['QueryResourceTypesResponse200Item']]: - """ query resource types by similarity - - Args: - workspace (str): - text (str): - limit (Union[Unset, None, float]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['QueryResourceTypesResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -text=text, -limit=limit, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - text: str, - limit: Union[Unset, None, float] = UNSET, - -) -> Response[List['QueryResourceTypesResponse200Item']]: - """ query resource types by similarity - - Args: - workspace (str): - text (str): - limit (Union[Unset, None, float]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['QueryResourceTypesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -text=text, -limit=limit, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - text: str, - limit: Union[Unset, None, float] = UNSET, - -) -> Optional[List['QueryResourceTypesResponse200Item']]: - """ query resource types by similarity - - Args: - workspace (str): - text (str): - limit (Union[Unset, None, float]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['QueryResourceTypesResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -text=text, -limit=limit, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/resource/update_resource.py b/python-client/windmill-api/windmill_api/api/resource/update_resource.py deleted file mode 100644 index 13e4948c6e..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/update_resource.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_resource_json_body import UpdateResourceJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateResourceJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/resources/update/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateResourceJsonBody, - -) -> Response[Any]: - """ update resource - - Args: - workspace (str): - path (str): - json_body (UpdateResourceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateResourceJsonBody, - -) -> Response[Any]: - """ update resource - - Args: - workspace (str): - path (str): - json_body (UpdateResourceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/update_resource_type.py b/python-client/windmill-api/windmill_api/api/resource/update_resource_type.py deleted file mode 100644 index 9e14a8dae9..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/update_resource_type.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_resource_type_json_body import UpdateResourceTypeJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateResourceTypeJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/resources/type/update/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateResourceTypeJsonBody, - -) -> Response[Any]: - """ update resource_type - - Args: - workspace (str): - path (str): - json_body (UpdateResourceTypeJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateResourceTypeJsonBody, - -) -> Response[Any]: - """ update resource_type - - Args: - workspace (str): - path (str): - json_body (UpdateResourceTypeJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/resource/update_resource_value.py b/python-client/windmill-api/windmill_api/api/resource/update_resource_value.py deleted file mode 100644 index 64c87c22fc..0000000000 --- a/python-client/windmill-api/windmill_api/api/resource/update_resource_value.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_resource_value_json_body import UpdateResourceValueJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateResourceValueJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/resources/update_value/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateResourceValueJsonBody, - -) -> Response[Any]: - """ update resource value - - Args: - workspace (str): - path (str): - json_body (UpdateResourceValueJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateResourceValueJsonBody, - -) -> Response[Any]: - """ update resource value - - Args: - workspace (str): - path (str): - json_body (UpdateResourceValueJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/schedule/__init__.py b/python-client/windmill-api/windmill_api/api/schedule/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/schedule/create_schedule.py b/python-client/windmill-api/windmill_api/api/schedule/create_schedule.py deleted file mode 100644 index 4756ebe043..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/create_schedule.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.create_schedule_json_body import CreateScheduleJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateScheduleJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/schedules/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateScheduleJsonBody, - -) -> Response[Any]: - """ create schedule - - Args: - workspace (str): - json_body (CreateScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateScheduleJsonBody, - -) -> Response[Any]: - """ create schedule - - Args: - workspace (str): - json_body (CreateScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/schedule/delete_schedule.py b/python-client/windmill-api/windmill_api/api/schedule/delete_schedule.py deleted file mode 100644 index 0304e33779..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/delete_schedule.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/schedules/delete/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete schedule - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete schedule - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/schedule/exists_schedule.py b/python-client/windmill-api/windmill_api/api/schedule/exists_schedule.py deleted file mode 100644 index 9c9b107a92..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/exists_schedule.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/schedules/exists/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does schedule exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does schedule exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does schedule exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does schedule exists - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/schedule/get_schedule.py b/python-client/windmill-api/windmill_api/api/schedule/get_schedule.py deleted file mode 100644 index ebb8f9987e..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/get_schedule.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_schedule_response_200 import GetScheduleResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/schedules/get/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetScheduleResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetScheduleResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetScheduleResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScheduleResponse200]: - """ get schedule - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScheduleResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScheduleResponse200]: - """ get schedule - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScheduleResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScheduleResponse200]: - """ get schedule - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScheduleResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScheduleResponse200]: - """ get schedule - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScheduleResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/schedule/list_schedules.py b/python-client/windmill-api/windmill_api/api/schedule/list_schedules.py deleted file mode 100644 index 4239fbd3c2..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/list_schedules.py +++ /dev/null @@ -1,249 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_schedules_response_200_item import ListSchedulesResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - path: Union[Unset, None, str] = UNSET, - is_flow: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - params["path"] = path - - - params["is_flow"] = is_flow - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/schedules/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListSchedulesResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListSchedulesResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListSchedulesResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - path: Union[Unset, None, str] = UNSET, - is_flow: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListSchedulesResponse200Item']]: - """ list schedules - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - path (Union[Unset, None, str]): - is_flow (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSchedulesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -path=path, -is_flow=is_flow, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - path: Union[Unset, None, str] = UNSET, - is_flow: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListSchedulesResponse200Item']]: - """ list schedules - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - path (Union[Unset, None, str]): - is_flow (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSchedulesResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -path=path, -is_flow=is_flow, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - path: Union[Unset, None, str] = UNSET, - is_flow: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListSchedulesResponse200Item']]: - """ list schedules - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - path (Union[Unset, None, str]): - is_flow (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSchedulesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -path=path, -is_flow=is_flow, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - path: Union[Unset, None, str] = UNSET, - is_flow: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListSchedulesResponse200Item']]: - """ list schedules - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - path (Union[Unset, None, str]): - is_flow (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSchedulesResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -path=path, -is_flow=is_flow, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/schedule/list_schedules_with_jobs.py b/python-client/windmill-api/windmill_api/api/schedule/list_schedules_with_jobs.py deleted file mode 100644 index 88b8bf4b4c..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/list_schedules_with_jobs.py +++ /dev/null @@ -1,217 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_schedules_with_jobs_response_200_item import ListSchedulesWithJobsResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/schedules/list_with_jobs".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListSchedulesWithJobsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListSchedulesWithJobsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListSchedulesWithJobsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListSchedulesWithJobsResponse200Item']]: - """ list schedules with last 20 jobs - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSchedulesWithJobsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListSchedulesWithJobsResponse200Item']]: - """ list schedules with last 20 jobs - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSchedulesWithJobsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListSchedulesWithJobsResponse200Item']]: - """ list schedules with last 20 jobs - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSchedulesWithJobsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListSchedulesWithJobsResponse200Item']]: - """ list schedules with last 20 jobs - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSchedulesWithJobsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/schedule/preview_schedule.py b/python-client/windmill-api/windmill_api/api/schedule/preview_schedule.py deleted file mode 100644 index 00259b8e69..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/preview_schedule.py +++ /dev/null @@ -1,183 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import cast, List -from ...models.preview_schedule_json_body import PreviewScheduleJsonBody -from typing import Dict -import datetime -from dateutil.parser import isoparse - - - -def _get_kwargs( - *, - json_body: PreviewScheduleJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/schedules/preview", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[datetime.datetime]]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = isoparse(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[datetime.datetime]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: PreviewScheduleJsonBody, - -) -> Response[List[datetime.datetime]]: - """ preview schedule - - Args: - json_body (PreviewScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[datetime.datetime]] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - json_body: PreviewScheduleJsonBody, - -) -> Optional[List[datetime.datetime]]: - """ preview schedule - - Args: - json_body (PreviewScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[datetime.datetime] - """ - - - return sync_detailed( - client=client, -json_body=json_body, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: PreviewScheduleJsonBody, - -) -> Response[List[datetime.datetime]]: - """ preview schedule - - Args: - json_body (PreviewScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[datetime.datetime]] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - json_body: PreviewScheduleJsonBody, - -) -> Optional[List[datetime.datetime]]: - """ preview schedule - - Args: - json_body (PreviewScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[datetime.datetime] - """ - - - return (await asyncio_detailed( - client=client, -json_body=json_body, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/schedule/set_default_error_or_recovery_handler.py b/python-client/windmill-api/windmill_api/api/schedule/set_default_error_or_recovery_handler.py deleted file mode 100644 index c3f6b31d5e..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/set_default_error_or_recovery_handler.py +++ /dev/null @@ -1,128 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.set_default_error_or_recovery_handler_json_body import SetDefaultErrorOrRecoveryHandlerJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: SetDefaultErrorOrRecoveryHandlerJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/schedules/setdefaulthandler".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.CREATED: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: SetDefaultErrorOrRecoveryHandlerJsonBody, - -) -> Response[Any]: - """ Set default error or recoevery handler - - Args: - workspace (str): - json_body (SetDefaultErrorOrRecoveryHandlerJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: SetDefaultErrorOrRecoveryHandlerJsonBody, - -) -> Response[Any]: - """ Set default error or recoevery handler - - Args: - workspace (str): - json_body (SetDefaultErrorOrRecoveryHandlerJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/schedule/set_schedule_enabled.py b/python-client/windmill-api/windmill_api/api/schedule/set_schedule_enabled.py deleted file mode 100644 index 41ba2fabe1..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/set_schedule_enabled.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.set_schedule_enabled_json_body import SetScheduleEnabledJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: SetScheduleEnabledJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/schedules/setenabled/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: SetScheduleEnabledJsonBody, - -) -> Response[Any]: - """ set enabled schedule - - Args: - workspace (str): - path (str): - json_body (SetScheduleEnabledJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: SetScheduleEnabledJsonBody, - -) -> Response[Any]: - """ set enabled schedule - - Args: - workspace (str): - path (str): - json_body (SetScheduleEnabledJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/schedule/update_schedule.py b/python-client/windmill-api/windmill_api/api/schedule/update_schedule.py deleted file mode 100644 index 23493d780a..0000000000 --- a/python-client/windmill-api/windmill_api/api/schedule/update_schedule.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_schedule_json_body import UpdateScheduleJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateScheduleJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/schedules/update/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateScheduleJsonBody, - -) -> Response[Any]: - """ update schedule - - Args: - workspace (str): - path (str): - json_body (UpdateScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateScheduleJsonBody, - -) -> Response[Any]: - """ update schedule - - Args: - workspace (str): - path (str): - json_body (UpdateScheduleJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/__init__.py b/python-client/windmill-api/windmill_api/api/script/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/script/archive_script_by_hash.py b/python-client/windmill-api/windmill_api/api/script/archive_script_by_hash.py deleted file mode 100644 index 459ae0901e..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/archive_script_by_hash.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.archive_script_by_hash_response_200 import ArchiveScriptByHashResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - hash_: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/scripts/archive/h/{hash}".format(workspace=workspace,hash=hash_,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[ArchiveScriptByHashResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = ArchiveScriptByHashResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[ArchiveScriptByHashResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ArchiveScriptByHashResponse200]: - """ archive script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ArchiveScriptByHashResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ArchiveScriptByHashResponse200]: - """ archive script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ArchiveScriptByHashResponse200 - """ - - - return sync_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ArchiveScriptByHashResponse200]: - """ archive script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ArchiveScriptByHashResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ArchiveScriptByHashResponse200]: - """ archive script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ArchiveScriptByHashResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/archive_script_by_path.py b/python-client/windmill-api/windmill_api/api/script/archive_script_by_path.py deleted file mode 100644 index c986fd4835..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/archive_script_by_path.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/scripts/archive/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ archive script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ archive script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/create_script.py b/python-client/windmill-api/windmill_api/api/script/create_script.py deleted file mode 100644 index a2abd46bd3..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/create_script.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.create_script_json_body import CreateScriptJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateScriptJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/scripts/create".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateScriptJsonBody, - -) -> Response[Any]: - """ create script - - Args: - workspace (str): - json_body (CreateScriptJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateScriptJsonBody, - -) -> Response[Any]: - """ create script - - Args: - workspace (str): - json_body (CreateScriptJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/delete_script_by_hash.py b/python-client/windmill-api/windmill_api/api/script/delete_script_by_hash.py deleted file mode 100644 index 3eb80334b8..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/delete_script_by_hash.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.delete_script_by_hash_response_200 import DeleteScriptByHashResponse200 - - - -def _get_kwargs( - workspace: str, - hash_: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/scripts/delete/h/{hash}".format(workspace=workspace,hash=hash_,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[DeleteScriptByHashResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = DeleteScriptByHashResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[DeleteScriptByHashResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[DeleteScriptByHashResponse200]: - """ delete script by hash (erase content but keep hash, require admin) - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DeleteScriptByHashResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[DeleteScriptByHashResponse200]: - """ delete script by hash (erase content but keep hash, require admin) - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DeleteScriptByHashResponse200 - """ - - - return sync_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[DeleteScriptByHashResponse200]: - """ delete script by hash (erase content but keep hash, require admin) - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[DeleteScriptByHashResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[DeleteScriptByHashResponse200]: - """ delete script by hash (erase content but keep hash, require admin) - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - DeleteScriptByHashResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/delete_script_by_path.py b/python-client/windmill-api/windmill_api/api/script/delete_script_by_path.py deleted file mode 100644 index fd207617d6..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/delete_script_by_path.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/scripts/delete/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[str]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(str, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[str]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[str]: - """ delete all scripts at a given path (require admin) - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[str] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[str]: - """ delete all scripts at a given path (require admin) - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - str - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[str]: - """ delete all scripts at a given path (require admin) - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[str] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[str]: - """ delete all scripts at a given path (require admin) - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - str - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/exists_script_by_path.py b/python-client/windmill-api/windmill_api/api/script/exists_script_by_path.py deleted file mode 100644 index 6477506f04..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/exists_script_by_path.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/exists/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ exists script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ exists script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ exists script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ exists script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/get_hub_script_by_path.py b/python-client/windmill-api/windmill_api/api/script/get_hub_script_by_path.py deleted file mode 100644 index 68d2d2690d..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_hub_script_by_path.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_hub_script_by_path_response_200 import GetHubScriptByPathResponse200 -from typing import Dict - - - -def _get_kwargs( - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/scripts/hub/get_full/{path}".format(path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetHubScriptByPathResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetHubScriptByPathResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetHubScriptByPathResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetHubScriptByPathResponse200]: - """ get full hub script by path - - Args: - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetHubScriptByPathResponse200] - """ - - - kwargs = _get_kwargs( - path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetHubScriptByPathResponse200]: - """ get full hub script by path - - Args: - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetHubScriptByPathResponse200 - """ - - - return sync_detailed( - path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetHubScriptByPathResponse200]: - """ get full hub script by path - - Args: - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetHubScriptByPathResponse200] - """ - - - kwargs = _get_kwargs( - path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetHubScriptByPathResponse200]: - """ get full hub script by path - - Args: - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetHubScriptByPathResponse200 - """ - - - return (await asyncio_detailed( - path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/get_hub_script_content_by_path.py b/python-client/windmill-api/windmill_api/api/script/get_hub_script_content_by_path.py deleted file mode 100644 index 585c4270b6..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_hub_script_content_by_path.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/scripts/hub/get/{path}".format(path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get hub script content by path - - Args: - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get hub script content by path - - Args: - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/get_script_by_hash.py b/python-client/windmill-api/windmill_api/api/script/get_script_by_hash.py deleted file mode 100644 index 9bd9520814..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_script_by_hash.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_script_by_hash_response_200 import GetScriptByHashResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - hash_: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/get/h/{hash}".format(workspace=workspace,hash=hash_,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetScriptByHashResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetScriptByHashResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetScriptByHashResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptByHashResponse200]: - """ get script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptByHashResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptByHashResponse200]: - """ get script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptByHashResponse200 - """ - - - return sync_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptByHashResponse200]: - """ get script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptByHashResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptByHashResponse200]: - """ get script by hash - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptByHashResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/get_script_by_path.py b/python-client/windmill-api/windmill_api/api/script/get_script_by_path.py deleted file mode 100644 index 4276cc1347..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_script_by_path.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_script_by_path_response_200 import GetScriptByPathResponse200 - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/get/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetScriptByPathResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetScriptByPathResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetScriptByPathResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptByPathResponse200]: - """ get script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptByPathResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptByPathResponse200]: - """ get script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptByPathResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptByPathResponse200]: - """ get script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptByPathResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptByPathResponse200]: - """ get script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptByPathResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/get_script_by_path_with_draft.py b/python-client/windmill-api/windmill_api/api/script/get_script_by_path_with_draft.py deleted file mode 100644 index 891a0d31f6..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_script_by_path_with_draft.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_script_by_path_with_draft_response_200 import GetScriptByPathWithDraftResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/get/draft/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetScriptByPathWithDraftResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetScriptByPathWithDraftResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetScriptByPathWithDraftResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptByPathWithDraftResponse200]: - """ get script by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptByPathWithDraftResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptByPathWithDraftResponse200]: - """ get script by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptByPathWithDraftResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptByPathWithDraftResponse200]: - """ get script by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptByPathWithDraftResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptByPathWithDraftResponse200]: - """ get script by path with draft - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptByPathWithDraftResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/get_script_deployment_status.py b/python-client/windmill-api/windmill_api/api/script/get_script_deployment_status.py deleted file mode 100644 index 7865fe8a1a..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_script_deployment_status.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_script_deployment_status_response_200 import GetScriptDeploymentStatusResponse200 - - - -def _get_kwargs( - workspace: str, - hash_: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/deployment_status/h/{hash}".format(workspace=workspace,hash=hash_,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetScriptDeploymentStatusResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetScriptDeploymentStatusResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetScriptDeploymentStatusResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptDeploymentStatusResponse200]: - """ get script deployment status - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptDeploymentStatusResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptDeploymentStatusResponse200]: - """ get script deployment status - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptDeploymentStatusResponse200 - """ - - - return sync_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetScriptDeploymentStatusResponse200]: - """ get script deployment status - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetScriptDeploymentStatusResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - hash_: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetScriptDeploymentStatusResponse200]: - """ get script deployment status - - Args: - workspace (str): - hash_ (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetScriptDeploymentStatusResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -hash_=hash_, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/get_script_history_by_path.py b/python-client/windmill-api/windmill_api/api/script/get_script_history_by_path.py deleted file mode 100644 index fdbc75f373..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_script_history_by_path.py +++ /dev/null @@ -1,190 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.get_script_history_by_path_response_200_item import GetScriptHistoryByPathResponse200Item -from typing import cast -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/history/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['GetScriptHistoryByPathResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = GetScriptHistoryByPathResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['GetScriptHistoryByPathResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['GetScriptHistoryByPathResponse200Item']]: - """ get history of a script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetScriptHistoryByPathResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['GetScriptHistoryByPathResponse200Item']]: - """ get history of a script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetScriptHistoryByPathResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['GetScriptHistoryByPathResponse200Item']]: - """ get history of a script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['GetScriptHistoryByPathResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['GetScriptHistoryByPathResponse200Item']]: - """ get history of a script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['GetScriptHistoryByPathResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/get_top_hub_scripts.py b/python-client/windmill-api/windmill_api/api/script/get_top_hub_scripts.py deleted file mode 100644 index 6cf88e1eb8..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/get_top_hub_scripts.py +++ /dev/null @@ -1,214 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from ...models.get_top_hub_scripts_response_200 import GetTopHubScriptsResponse200 -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - *, - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - kind: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["limit"] = limit - - - params["app"] = app - - - params["kind"] = kind - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/scripts/hub/top", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetTopHubScriptsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetTopHubScriptsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetTopHubScriptsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - kind: Union[Unset, None, str] = UNSET, - -) -> Response[GetTopHubScriptsResponse200]: - """ get top hub scripts - - Args: - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetTopHubScriptsResponse200] - """ - - - kwargs = _get_kwargs( - limit=limit, -app=app, -kind=kind, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - kind: Union[Unset, None, str] = UNSET, - -) -> Optional[GetTopHubScriptsResponse200]: - """ get top hub scripts - - Args: - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetTopHubScriptsResponse200 - """ - - - return sync_detailed( - client=client, -limit=limit, -app=app, -kind=kind, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - kind: Union[Unset, None, str] = UNSET, - -) -> Response[GetTopHubScriptsResponse200]: - """ get top hub scripts - - Args: - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetTopHubScriptsResponse200] - """ - - - kwargs = _get_kwargs( - limit=limit, -app=app, -kind=kind, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - kind: Union[Unset, None, str] = UNSET, - -) -> Optional[GetTopHubScriptsResponse200]: - """ get top hub scripts - - Args: - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - kind (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetTopHubScriptsResponse200 - """ - - - return (await asyncio_detailed( - client=client, -limit=limit, -app=app, -kind=kind, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/list_script_paths.py b/python-client/windmill-api/windmill_api/api/script/list_script_paths.py deleted file mode 100644 index 68c36be155..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/list_script_paths.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/list_paths".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ list all scripts paths - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ list all scripts paths - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/list_scripts.py b/python-client/windmill-api/windmill_api/api/script/list_scripts.py deleted file mode 100644 index 0546c80134..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/list_scripts.py +++ /dev/null @@ -1,393 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from ...models.list_scripts_response_200_item import ListScriptsResponse200Item -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - first_parent_hash: Union[Unset, None, str] = UNSET, - last_parent_hash: Union[Unset, None, str] = UNSET, - parent_hash: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - is_template: Union[Unset, None, bool] = UNSET, - kinds: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - params["order_desc"] = order_desc - - - params["created_by"] = created_by - - - params["path_start"] = path_start - - - params["path_exact"] = path_exact - - - params["first_parent_hash"] = first_parent_hash - - - params["last_parent_hash"] = last_parent_hash - - - params["parent_hash"] = parent_hash - - - params["show_archived"] = show_archived - - - params["is_template"] = is_template - - - params["kinds"] = kinds - - - params["starred_only"] = starred_only - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/list".format(workspace=workspace,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListScriptsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListScriptsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListScriptsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - first_parent_hash: Union[Unset, None, str] = UNSET, - last_parent_hash: Union[Unset, None, str] = UNSET, - parent_hash: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - is_template: Union[Unset, None, bool] = UNSET, - kinds: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListScriptsResponse200Item']]: - """ list all scripts - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - first_parent_hash (Union[Unset, None, str]): - last_parent_hash (Union[Unset, None, str]): - parent_hash (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - is_template (Union[Unset, None, bool]): - kinds (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListScriptsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -first_parent_hash=first_parent_hash, -last_parent_hash=last_parent_hash, -parent_hash=parent_hash, -show_archived=show_archived, -is_template=is_template, -kinds=kinds, -starred_only=starred_only, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - first_parent_hash: Union[Unset, None, str] = UNSET, - last_parent_hash: Union[Unset, None, str] = UNSET, - parent_hash: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - is_template: Union[Unset, None, bool] = UNSET, - kinds: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListScriptsResponse200Item']]: - """ list all scripts - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - first_parent_hash (Union[Unset, None, str]): - last_parent_hash (Union[Unset, None, str]): - parent_hash (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - is_template (Union[Unset, None, bool]): - kinds (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListScriptsResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -first_parent_hash=first_parent_hash, -last_parent_hash=last_parent_hash, -parent_hash=parent_hash, -show_archived=show_archived, -is_template=is_template, -kinds=kinds, -starred_only=starred_only, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - first_parent_hash: Union[Unset, None, str] = UNSET, - last_parent_hash: Union[Unset, None, str] = UNSET, - parent_hash: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - is_template: Union[Unset, None, bool] = UNSET, - kinds: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListScriptsResponse200Item']]: - """ list all scripts - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - first_parent_hash (Union[Unset, None, str]): - last_parent_hash (Union[Unset, None, str]): - parent_hash (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - is_template (Union[Unset, None, bool]): - kinds (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListScriptsResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -first_parent_hash=first_parent_hash, -last_parent_hash=last_parent_hash, -parent_hash=parent_hash, -show_archived=show_archived, -is_template=is_template, -kinds=kinds, -starred_only=starred_only, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - order_desc: Union[Unset, None, bool] = UNSET, - created_by: Union[Unset, None, str] = UNSET, - path_start: Union[Unset, None, str] = UNSET, - path_exact: Union[Unset, None, str] = UNSET, - first_parent_hash: Union[Unset, None, str] = UNSET, - last_parent_hash: Union[Unset, None, str] = UNSET, - parent_hash: Union[Unset, None, str] = UNSET, - show_archived: Union[Unset, None, bool] = UNSET, - is_template: Union[Unset, None, bool] = UNSET, - kinds: Union[Unset, None, str] = UNSET, - starred_only: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListScriptsResponse200Item']]: - """ list all scripts - - Args: - workspace (str): - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - order_desc (Union[Unset, None, bool]): - created_by (Union[Unset, None, str]): - path_start (Union[Unset, None, str]): - path_exact (Union[Unset, None, str]): - first_parent_hash (Union[Unset, None, str]): - last_parent_hash (Union[Unset, None, str]): - parent_hash (Union[Unset, None, str]): - show_archived (Union[Unset, None, bool]): - is_template (Union[Unset, None, bool]): - kinds (Union[Unset, None, str]): - starred_only (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListScriptsResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, -page=page, -per_page=per_page, -order_desc=order_desc, -created_by=created_by, -path_start=path_start, -path_exact=path_exact, -first_parent_hash=first_parent_hash, -last_parent_hash=last_parent_hash, -parent_hash=parent_hash, -show_archived=show_archived, -is_template=is_template, -kinds=kinds, -starred_only=starred_only, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/list_search_script.py b/python-client/windmill-api/windmill_api/api/script/list_search_script.py deleted file mode 100644 index ce73e63312..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/list_search_script.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_search_script_response_200_item import ListSearchScriptResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/list_search".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListSearchScriptResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListSearchScriptResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListSearchScriptResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchScriptResponse200Item']]: - """ list scripts for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchScriptResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchScriptResponse200Item']]: - """ list scripts for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchScriptResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListSearchScriptResponse200Item']]: - """ list scripts for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListSearchScriptResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListSearchScriptResponse200Item']]: - """ list scripts for search - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListSearchScriptResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/query_hub_scripts.py b/python-client/windmill-api/windmill_api/api/script/query_hub_scripts.py deleted file mode 100644 index c7d9294fca..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/query_hub_scripts.py +++ /dev/null @@ -1,236 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.query_hub_scripts_response_200_item import QueryHubScriptsResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - *, - text: str, - kind: Union[Unset, None, str] = UNSET, - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["text"] = text - - - params["kind"] = kind - - - params["limit"] = limit - - - params["app"] = app - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/embeddings/query_hub_scripts", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['QueryHubScriptsResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = QueryHubScriptsResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['QueryHubScriptsResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - text: str, - kind: Union[Unset, None, str] = UNSET, - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - -) -> Response[List['QueryHubScriptsResponse200Item']]: - """ query hub scripts by similarity - - Args: - text (str): - kind (Union[Unset, None, str]): - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['QueryHubScriptsResponse200Item']] - """ - - - kwargs = _get_kwargs( - text=text, -kind=kind, -limit=limit, -app=app, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - text: str, - kind: Union[Unset, None, str] = UNSET, - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - -) -> Optional[List['QueryHubScriptsResponse200Item']]: - """ query hub scripts by similarity - - Args: - text (str): - kind (Union[Unset, None, str]): - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['QueryHubScriptsResponse200Item'] - """ - - - return sync_detailed( - client=client, -text=text, -kind=kind, -limit=limit, -app=app, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - text: str, - kind: Union[Unset, None, str] = UNSET, - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - -) -> Response[List['QueryHubScriptsResponse200Item']]: - """ query hub scripts by similarity - - Args: - text (str): - kind (Union[Unset, None, str]): - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['QueryHubScriptsResponse200Item']] - """ - - - kwargs = _get_kwargs( - text=text, -kind=kind, -limit=limit, -app=app, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - text: str, - kind: Union[Unset, None, str] = UNSET, - limit: Union[Unset, None, float] = UNSET, - app: Union[Unset, None, str] = UNSET, - -) -> Optional[List['QueryHubScriptsResponse200Item']]: - """ query hub scripts by similarity - - Args: - text (str): - kind (Union[Unset, None, str]): - limit (Union[Unset, None, float]): - app (Union[Unset, None, str]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['QueryHubScriptsResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, -text=text, -kind=kind, -limit=limit, -app=app, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/script/raw_script_by_hash.py b/python-client/windmill-api/windmill_api/api/script/raw_script_by_hash.py deleted file mode 100644 index b1b66964fb..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/raw_script_by_hash.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/raw/h/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ raw script by hash - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ raw script by hash - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/raw_script_by_path.py b/python-client/windmill-api/windmill_api/api/script/raw_script_by_path.py deleted file mode 100644 index 0f39f7ad55..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/raw_script_by_path.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/scripts/raw/p/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ raw script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ raw script by path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/raw_script_by_path_tokened.py b/python-client/windmill-api/windmill_api/api/script/raw_script_by_path_tokened.py deleted file mode 100644 index 77d4858bec..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/raw_script_by_path_tokened.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - token: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/scripts_u/tokened_raw/{workspace}/{token}/{path}".format(workspace=workspace,token=token,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - token: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ raw script by path with a token (mostly used by lsp to be used with import maps to resolve scripts) - - Args: - workspace (str): - token (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -token=token, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - token: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ raw script by path with a token (mostly used by lsp to be used with import maps to resolve scripts) - - Args: - workspace (str): - token (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -token=token, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/toggle_workspace_error_handler_for_script.py b/python-client/windmill-api/windmill_api/api/script/toggle_workspace_error_handler_for_script.py deleted file mode 100644 index 48d1d16a0e..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/toggle_workspace_error_handler_for_script.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.toggle_workspace_error_handler_for_script_json_body import ToggleWorkspaceErrorHandlerForScriptJsonBody - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: ToggleWorkspaceErrorHandlerForScriptJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/scripts/toggle_workspace_error_handler/p/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ToggleWorkspaceErrorHandlerForScriptJsonBody, - -) -> Response[Any]: - """ Toggle ON and OFF the workspace error handler for a given script - - Args: - workspace (str): - path (str): - json_body (ToggleWorkspaceErrorHandlerForScriptJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: ToggleWorkspaceErrorHandlerForScriptJsonBody, - -) -> Response[Any]: - """ Toggle ON and OFF the workspace error handler for a given script - - Args: - workspace (str): - path (str): - json_body (ToggleWorkspaceErrorHandlerForScriptJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/script/update_script_history.py b/python-client/windmill-api/windmill_api/api/script/update_script_history.py deleted file mode 100644 index ceab930376..0000000000 --- a/python-client/windmill-api/windmill_api/api/script/update_script_history.py +++ /dev/null @@ -1,140 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.update_script_history_json_body import UpdateScriptHistoryJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - hash_: str, - path: str, - *, - json_body: UpdateScriptHistoryJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/scripts/history_update/h/{hash}/p/{path}".format(workspace=workspace,hash=hash_,path=path,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - hash_: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateScriptHistoryJsonBody, - -) -> Response[Any]: - """ update history of a script - - Args: - workspace (str): - hash_ (str): - path (str): - json_body (UpdateScriptHistoryJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, -path=path, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - hash_: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateScriptHistoryJsonBody, - -) -> Response[Any]: - """ update history of a script - - Args: - workspace (str): - hash_ (str): - path (str): - json_body (UpdateScriptHistoryJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -hash_=hash_, -path=path, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/setting/__init__.py b/python-client/windmill-api/windmill_api/api/setting/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/setting/get_global.py b/python-client/windmill-api/windmill_api/api/setting/get_global.py deleted file mode 100644 index 41653c10e3..0000000000 --- a/python-client/windmill-api/windmill_api/api/setting/get_global.py +++ /dev/null @@ -1,114 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - key: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/settings/global/{key}".format(key=key,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - key: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get global settings - - Args: - key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - key=key, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - key: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get global settings - - Args: - key (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - key=key, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/setting/get_local.py b/python-client/windmill-api/windmill_api/api/setting/get_local.py deleted file mode 100644 index c24d08ef56..0000000000 --- a/python-client/windmill-api/windmill_api/api/setting/get_local.py +++ /dev/null @@ -1,103 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/settings/local", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get local settings - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get local settings - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/setting/send_stats.py b/python-client/windmill-api/windmill_api/api/setting/send_stats.py deleted file mode 100644 index f1e53bc1d6..0000000000 --- a/python-client/windmill-api/windmill_api/api/setting/send_stats.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/settings/send_stats", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ send stats - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ send stats - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/setting/set_global.py b/python-client/windmill-api/windmill_api/api/setting/set_global.py deleted file mode 100644 index 7c9c94db16..0000000000 --- a/python-client/windmill-api/windmill_api/api/setting/set_global.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.set_global_json_body import SetGlobalJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - key: str, - *, - json_body: SetGlobalJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/settings/global/{key}".format(key=key,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - key: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: SetGlobalJsonBody, - -) -> Response[Any]: - """ post global settings - - Args: - key (str): - json_body (SetGlobalJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - key=key, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - key: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: SetGlobalJsonBody, - -) -> Response[Any]: - """ post global settings - - Args: - key (str): - json_body (SetGlobalJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - key=key, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/setting/test_license_key.py b/python-client/windmill-api/windmill_api/api/setting/test_license_key.py deleted file mode 100644 index fd5b194df4..0000000000 --- a/python-client/windmill-api/windmill_api/api/setting/test_license_key.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.test_license_key_json_body import TestLicenseKeyJsonBody - - - -def _get_kwargs( - *, - json_body: TestLicenseKeyJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/settings/test_license_key", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: TestLicenseKeyJsonBody, - -) -> Response[Any]: - """ test license key - - Args: - json_body (TestLicenseKeyJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: TestLicenseKeyJsonBody, - -) -> Response[Any]: - """ test license key - - Args: - json_body (TestLicenseKeyJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/setting/test_smtp.py b/python-client/windmill-api/windmill_api/api/setting/test_smtp.py deleted file mode 100644 index ba9ef1dc18..0000000000 --- a/python-client/windmill-api/windmill_api/api/setting/test_smtp.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.test_smtp_json_body import TestSmtpJsonBody - - - -def _get_kwargs( - *, - json_body: TestSmtpJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/settings/test_smtp", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: TestSmtpJsonBody, - -) -> Response[Any]: - """ test smtp - - Args: - json_body (TestSmtpJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: TestSmtpJsonBody, - -) -> Response[Any]: - """ test smtp - - Args: - json_body (TestSmtpJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/settings/__init__.py b/python-client/windmill-api/windmill_api/api/settings/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/settings/backend_uptodate.py b/python-client/windmill-api/windmill_api/api/settings/backend_uptodate.py deleted file mode 100644 index 7738ded99e..0000000000 --- a/python-client/windmill-api/windmill_api/api/settings/backend_uptodate.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/uptodate", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ is backend up to date - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ is backend up to date - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/settings/backend_version.py b/python-client/windmill-api/windmill_api/api/settings/backend_version.py deleted file mode 100644 index 5e42fa34e0..0000000000 --- a/python-client/windmill-api/windmill_api/api/settings/backend_version.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/version", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get backend version - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get backend version - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/settings/get_license_id.py b/python-client/windmill-api/windmill_api/api/settings/get_license_id.py deleted file mode 100644 index 1300c6ac29..0000000000 --- a/python-client/windmill-api/windmill_api/api/settings/get_license_id.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/ee_license", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get license id - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get license id - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/settings/get_open_api_yaml.py b/python-client/windmill-api/windmill_api/api/settings/get_open_api_yaml.py deleted file mode 100644 index f8471f6aba..0000000000 --- a/python-client/windmill-api/windmill_api/api/settings/get_open_api_yaml.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/openapi.yaml", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get openapi yaml spec - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get openapi yaml spec - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/__init__.py b/python-client/windmill-api/windmill_api/api/user/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/user/accept_invite.py b/python-client/windmill-api/windmill_api/api/user/accept_invite.py deleted file mode 100644 index faf152223b..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/accept_invite.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.accept_invite_json_body import AcceptInviteJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - *, - json_body: AcceptInviteJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/accept_invite", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: AcceptInviteJsonBody, - -) -> Response[Any]: - """ accept invite to workspace - - Args: - json_body (AcceptInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: AcceptInviteJsonBody, - -) -> Response[Any]: - """ accept invite to workspace - - Args: - json_body (AcceptInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/create_token.py b/python-client/windmill-api/windmill_api/api/user/create_token.py deleted file mode 100644 index 2577a75094..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/create_token.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.create_token_json_body import CreateTokenJsonBody - - - -def _get_kwargs( - *, - json_body: CreateTokenJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/tokens/create", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateTokenJsonBody, - -) -> Response[Any]: - """ create token - - Args: - json_body (CreateTokenJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateTokenJsonBody, - -) -> Response[Any]: - """ create token - - Args: - json_body (CreateTokenJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/create_token_impersonate.py b/python-client/windmill-api/windmill_api/api/user/create_token_impersonate.py deleted file mode 100644 index 85f470ff21..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/create_token_impersonate.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.create_token_impersonate_json_body import CreateTokenImpersonateJsonBody -from typing import Dict - - - -def _get_kwargs( - *, - json_body: CreateTokenImpersonateJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/tokens/impersonate", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateTokenImpersonateJsonBody, - -) -> Response[Any]: - """ create token to impersonate a user (require superadmin) - - Args: - json_body (CreateTokenImpersonateJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateTokenImpersonateJsonBody, - -) -> Response[Any]: - """ create token to impersonate a user (require superadmin) - - Args: - json_body (CreateTokenImpersonateJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/create_user.py b/python-client/windmill-api/windmill_api/api/user/create_user.py deleted file mode 100644 index 65acc4768a..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/create_user.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.create_user_json_body import CreateUserJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateUserJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/users/add".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateUserJsonBody, - -) -> Response[Any]: - """ create user (require admin privilege) - - Args: - workspace (str): - json_body (CreateUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateUserJsonBody, - -) -> Response[Any]: - """ create user (require admin privilege) - - Args: - workspace (str): - json_body (CreateUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/create_user_globally.py b/python-client/windmill-api/windmill_api/api/user/create_user_globally.py deleted file mode 100644 index 5a825d32a3..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/create_user_globally.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.create_user_globally_json_body import CreateUserGloballyJsonBody -from typing import Dict - - - -def _get_kwargs( - *, - json_body: CreateUserGloballyJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/create", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateUserGloballyJsonBody, - -) -> Response[Any]: - """ create user - - Args: - json_body (CreateUserGloballyJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateUserGloballyJsonBody, - -) -> Response[Any]: - """ create user - - Args: - json_body (CreateUserGloballyJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/decline_invite.py b/python-client/windmill-api/windmill_api/api/user/decline_invite.py deleted file mode 100644 index 749e68ce33..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/decline_invite.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.decline_invite_json_body import DeclineInviteJsonBody -from typing import Dict - - - -def _get_kwargs( - *, - json_body: DeclineInviteJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/decline_invite", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: DeclineInviteJsonBody, - -) -> Response[Any]: - """ decline invite to workspace - - Args: - json_body (DeclineInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: DeclineInviteJsonBody, - -) -> Response[Any]: - """ decline invite to workspace - - Args: - json_body (DeclineInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/delete_token.py b/python-client/windmill-api/windmill_api/api/user/delete_token.py deleted file mode 100644 index b86e96580a..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/delete_token.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - token_prefix: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/users/tokens/delete/{token_prefix}".format(token_prefix=token_prefix,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - token_prefix: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete token - - Args: - token_prefix (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - token_prefix=token_prefix, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - token_prefix: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete token - - Args: - token_prefix (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - token_prefix=token_prefix, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/delete_user.py b/python-client/windmill-api/windmill_api/api/user/delete_user.py deleted file mode 100644 index a588449fbf..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/delete_user.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - username: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/users/delete/{username}".format(workspace=workspace,username=username,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete user (require admin privilege) - - Args: - workspace (str): - username (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -username=username, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete user (require admin privilege) - - Args: - workspace (str): - username (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -username=username, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/exists_email.py b/python-client/windmill-api/windmill_api/api/user/exists_email.py deleted file mode 100644 index 0d6112484e..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/exists_email.py +++ /dev/null @@ -1,165 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - email: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/exists/{email}".format(email=email,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - email: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ exists email - - Args: - email (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - email=email, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - email: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ exists email - - Args: - email (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - email=email, -client=client, - - ).parsed - -async def asyncio_detailed( - email: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ exists email - - Args: - email (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - email=email, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - email: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ exists email - - Args: - email (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - email=email, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/get_current_email.py b/python-client/windmill-api/windmill_api/api/user/get_current_email.py deleted file mode 100644 index 75f50fd525..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/get_current_email.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/email", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get current user email (if logged in) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get current user email (if logged in) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/get_runnable.py b/python-client/windmill-api/windmill_api/api/user/get_runnable.py deleted file mode 100644 index a6a92a48c2..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/get_runnable.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_runnable_response_200 import GetRunnableResponse200 -from typing import Dict - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/all_runnables", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetRunnableResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetRunnableResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetRunnableResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetRunnableResponse200]: - """ get all runnables in every workspace - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetRunnableResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetRunnableResponse200]: - """ get all runnables in every workspace - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetRunnableResponse200 - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetRunnableResponse200]: - """ get all runnables in every workspace - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetRunnableResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetRunnableResponse200]: - """ get all runnables in every workspace - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetRunnableResponse200 - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/get_tutorial_progress.py b/python-client/windmill-api/windmill_api/api/user/get_tutorial_progress.py deleted file mode 100644 index 630920a6e6..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/get_tutorial_progress.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_tutorial_progress_response_200 import GetTutorialProgressResponse200 - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/tutorial_progress", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetTutorialProgressResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetTutorialProgressResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetTutorialProgressResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetTutorialProgressResponse200]: - """ get tutorial progress - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetTutorialProgressResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetTutorialProgressResponse200]: - """ get tutorial progress - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetTutorialProgressResponse200 - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetTutorialProgressResponse200]: - """ get tutorial progress - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetTutorialProgressResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetTutorialProgressResponse200]: - """ get tutorial progress - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetTutorialProgressResponse200 - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/get_usage.py b/python-client/windmill-api/windmill_api/api/user/get_usage.py deleted file mode 100644 index a61616acb5..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/get_usage.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/usage", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get current usage outside of premium workspaces - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get current usage outside of premium workspaces - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/global_user_delete.py b/python-client/windmill-api/windmill_api/api/user/global_user_delete.py deleted file mode 100644 index 99048d0217..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/global_user_delete.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - email: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/users/delete/{email}".format(email=email,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - email: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ global delete user (require super admin) - - Args: - email (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - email=email, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - email: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ global delete user (require super admin) - - Args: - email (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - email=email, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/global_user_update.py b/python-client/windmill-api/windmill_api/api/user/global_user_update.py deleted file mode 100644 index 272d6b0beb..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/global_user_update.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.global_user_update_json_body import GlobalUserUpdateJsonBody - - - -def _get_kwargs( - email: str, - *, - json_body: GlobalUserUpdateJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/update/{email}".format(email=email,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - email: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: GlobalUserUpdateJsonBody, - -) -> Response[Any]: - """ global update user (require super admin) - - Args: - email (str): - json_body (GlobalUserUpdateJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - email=email, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - email: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: GlobalUserUpdateJsonBody, - -) -> Response[Any]: - """ global update user (require super admin) - - Args: - email (str): - json_body (GlobalUserUpdateJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - email=email, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/global_whoami.py b/python-client/windmill-api/windmill_api/api/user/global_whoami.py deleted file mode 100644 index a3b03f0de7..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/global_whoami.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.global_whoami_response_200 import GlobalWhoamiResponse200 -from typing import Dict - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/whoami", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GlobalWhoamiResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GlobalWhoamiResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GlobalWhoamiResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GlobalWhoamiResponse200]: - """ get current global whoami (if logged in) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GlobalWhoamiResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GlobalWhoamiResponse200]: - """ get current global whoami (if logged in) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GlobalWhoamiResponse200 - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GlobalWhoamiResponse200]: - """ get current global whoami (if logged in) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GlobalWhoamiResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GlobalWhoamiResponse200]: - """ get current global whoami (if logged in) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GlobalWhoamiResponse200 - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/is_owner_of_path.py b/python-client/windmill-api/windmill_api/api/user/is_owner_of_path.py deleted file mode 100644 index 9d43d544fd..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/is_owner_of_path.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/users/is_owner/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ is owner of path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ is owner of path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ is owner of path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ is owner of path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/leave_instance.py b/python-client/windmill-api/windmill_api/api/user/leave_instance.py deleted file mode 100644 index 8dcae3e6c3..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/leave_instance.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/users/leave_instance", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ leave instance - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ leave instance - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/list_tokens.py b/python-client/windmill-api/windmill_api/api/user/list_tokens.py deleted file mode 100644 index 2dc7a60733..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/list_tokens.py +++ /dev/null @@ -1,188 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset -from ...models.list_tokens_response_200_item import ListTokensResponse200Item - - - -def _get_kwargs( - *, - exclude_ephemeral: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["exclude_ephemeral"] = exclude_ephemeral - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/users/tokens/list", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListTokensResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListTokensResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListTokensResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - exclude_ephemeral: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListTokensResponse200Item']]: - """ list token - - Args: - exclude_ephemeral (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListTokensResponse200Item']] - """ - - - kwargs = _get_kwargs( - exclude_ephemeral=exclude_ephemeral, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - exclude_ephemeral: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListTokensResponse200Item']]: - """ list token - - Args: - exclude_ephemeral (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListTokensResponse200Item'] - """ - - - return sync_detailed( - client=client, -exclude_ephemeral=exclude_ephemeral, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - exclude_ephemeral: Union[Unset, None, bool] = UNSET, - -) -> Response[List['ListTokensResponse200Item']]: - """ list token - - Args: - exclude_ephemeral (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListTokensResponse200Item']] - """ - - - kwargs = _get_kwargs( - exclude_ephemeral=exclude_ephemeral, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - exclude_ephemeral: Union[Unset, None, bool] = UNSET, - -) -> Optional[List['ListTokensResponse200Item']]: - """ list token - - Args: - exclude_ephemeral (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListTokensResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, -exclude_ephemeral=exclude_ephemeral, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/list_usernames.py b/python-client/windmill-api/windmill_api/api/user/list_usernames.py deleted file mode 100644 index c6392bd520..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/list_usernames.py +++ /dev/null @@ -1,167 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/users/list_usernames".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(List[str], response.json()) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ list usernames - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ list usernames - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ list usernames - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ list usernames - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/list_users.py b/python-client/windmill-api/windmill_api/api/user/list_users.py deleted file mode 100644 index 06547cb036..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/list_users.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_users_response_200_item import ListUsersResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/users/list".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListUsersResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListUsersResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListUsersResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListUsersResponse200Item']]: - """ list users - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListUsersResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListUsersResponse200Item']]: - """ list users - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListUsersResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListUsersResponse200Item']]: - """ list users - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListUsersResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListUsersResponse200Item']]: - """ list users - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListUsersResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/list_users_as_super_admin.py b/python-client/windmill-api/windmill_api/api/user/list_users_as_super_admin.py deleted file mode 100644 index 1d436a89b4..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/list_users_as_super_admin.py +++ /dev/null @@ -1,204 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_users_as_super_admin_response_200_item import ListUsersAsSuperAdminResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/users/list_as_super_admin", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListUsersAsSuperAdminResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListUsersAsSuperAdminResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListUsersAsSuperAdminResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListUsersAsSuperAdminResponse200Item']]: - """ list all users as super admin (require to be super amdin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListUsersAsSuperAdminResponse200Item']] - """ - - - kwargs = _get_kwargs( - page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListUsersAsSuperAdminResponse200Item']]: - """ list all users as super admin (require to be super amdin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListUsersAsSuperAdminResponse200Item'] - """ - - - return sync_detailed( - client=client, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListUsersAsSuperAdminResponse200Item']]: - """ list all users as super admin (require to be super amdin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListUsersAsSuperAdminResponse200Item']] - """ - - - kwargs = _get_kwargs( - page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListUsersAsSuperAdminResponse200Item']]: - """ list all users as super admin (require to be super amdin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListUsersAsSuperAdminResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/list_workspace_invites.py b/python-client/windmill-api/windmill_api/api/user/list_workspace_invites.py deleted file mode 100644 index 6f7050c1cf..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/list_workspace_invites.py +++ /dev/null @@ -1,156 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_workspace_invites_response_200_item import ListWorkspaceInvitesResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/list_invites", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListWorkspaceInvitesResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListWorkspaceInvitesResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListWorkspaceInvitesResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListWorkspaceInvitesResponse200Item']]: - """ list all workspace invites - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkspaceInvitesResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListWorkspaceInvitesResponse200Item']]: - """ list all workspace invites - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkspaceInvitesResponse200Item'] - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListWorkspaceInvitesResponse200Item']]: - """ list all workspace invites - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkspaceInvitesResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListWorkspaceInvitesResponse200Item']]: - """ list all workspace invites - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkspaceInvitesResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/login.py b/python-client/windmill-api/windmill_api/api/user/login.py deleted file mode 100644 index 3a28889019..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/login.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.login_json_body import LoginJsonBody -from typing import Dict - - - -def _get_kwargs( - *, - json_body: LoginJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/auth/login", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: LoginJsonBody, - -) -> Response[Any]: - """ login with password - - Args: - json_body (LoginJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: LoginJsonBody, - -) -> Response[Any]: - """ login with password - - Args: - json_body (LoginJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/login_with_oauth.py b/python-client/windmill-api/windmill_api/api/user/login_with_oauth.py deleted file mode 100644 index f69bc74fd5..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/login_with_oauth.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.login_with_oauth_json_body import LoginWithOauthJsonBody - - - -def _get_kwargs( - client_name: str, - *, - json_body: LoginWithOauthJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/oauth/login_callback/{client_name}".format(client_name=client_name,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - client_name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: LoginWithOauthJsonBody, - -) -> Response[Any]: - """ login with oauth authorization flow - - Args: - client_name (str): - json_body (LoginWithOauthJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - client_name=client_name, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - client_name: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: LoginWithOauthJsonBody, - -) -> Response[Any]: - """ login with oauth authorization flow - - Args: - client_name (str): - json_body (LoginWithOauthJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - client_name=client_name, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/logout.py b/python-client/windmill-api/windmill_api/api/user/logout.py deleted file mode 100644 index 1b384cf817..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/logout.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/auth/logout", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ logout - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ logout - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/refresh_user_token.py b/python-client/windmill-api/windmill_api/api/user/refresh_user_token.py deleted file mode 100644 index eb741dd33b..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/refresh_user_token.py +++ /dev/null @@ -1,101 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/users/refresh_token", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ refresh the current token - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ refresh the current token - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/set_password.py b/python-client/windmill-api/windmill_api/api/user/set_password.py deleted file mode 100644 index fb6d78d0f2..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/set_password.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.set_password_json_body import SetPasswordJsonBody - - - -def _get_kwargs( - *, - json_body: SetPasswordJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/setpassword", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: SetPasswordJsonBody, - -) -> Response[Any]: - """ set password - - Args: - json_body (SetPasswordJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: SetPasswordJsonBody, - -) -> Response[Any]: - """ set password - - Args: - json_body (SetPasswordJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/update_tutorial_progress.py b/python-client/windmill-api/windmill_api/api/user/update_tutorial_progress.py deleted file mode 100644 index 5d4e5391cb..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/update_tutorial_progress.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.update_tutorial_progress_json_body import UpdateTutorialProgressJsonBody - - - -def _get_kwargs( - *, - json_body: UpdateTutorialProgressJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/users/tutorial_progress", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateTutorialProgressJsonBody, - -) -> Response[Any]: - """ update tutorial progress - - Args: - json_body (UpdateTutorialProgressJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateTutorialProgressJsonBody, - -) -> Response[Any]: - """ update tutorial progress - - Args: - json_body (UpdateTutorialProgressJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/update_user.py b/python-client/windmill-api/windmill_api/api/user/update_user.py deleted file mode 100644 index 04249201df..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/update_user.py +++ /dev/null @@ -1,133 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.update_user_json_body import UpdateUserJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - username: str, - *, - json_body: UpdateUserJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/users/update/{username}".format(workspace=workspace,username=username,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateUserJsonBody, - -) -> Response[Any]: - """ update user (require admin privilege) - - Args: - workspace (str): - username (str): - json_body (UpdateUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -username=username, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateUserJsonBody, - -) -> Response[Any]: - """ update user (require admin privilege) - - Args: - workspace (str): - username (str): - json_body (UpdateUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -username=username, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/user/whoami.py b/python-client/windmill-api/windmill_api/api/user/whoami.py deleted file mode 100644 index 21edc8415e..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/whoami.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.whoami_response_200 import WhoamiResponse200 - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/users/whoami".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[WhoamiResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = WhoamiResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[WhoamiResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[WhoamiResponse200]: - """ whoami - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[WhoamiResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[WhoamiResponse200]: - """ whoami - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - WhoamiResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[WhoamiResponse200]: - """ whoami - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[WhoamiResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[WhoamiResponse200]: - """ whoami - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - WhoamiResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/user/whois.py b/python-client/windmill-api/windmill_api/api/user/whois.py deleted file mode 100644 index 50d542e047..0000000000 --- a/python-client/windmill-api/windmill_api/api/user/whois.py +++ /dev/null @@ -1,184 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.whois_response_200 import WhoisResponse200 - - - -def _get_kwargs( - workspace: str, - username: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/users/whois/{username}".format(workspace=workspace,username=username,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[WhoisResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = WhoisResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[WhoisResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[WhoisResponse200]: - """ whois - - Args: - workspace (str): - username (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[WhoisResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -username=username, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[WhoisResponse200]: - """ whois - - Args: - workspace (str): - username (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - WhoisResponse200 - """ - - - return sync_detailed( - workspace=workspace, -username=username, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[WhoisResponse200]: - """ whois - - Args: - workspace (str): - username (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[WhoisResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -username=username, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - username: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[WhoisResponse200]: - """ whois - - Args: - workspace (str): - username (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - WhoisResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -username=username, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/variable/__init__.py b/python-client/windmill-api/windmill_api/api/variable/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/variable/create_variable.py b/python-client/windmill-api/windmill_api/api/variable/create_variable.py deleted file mode 100644 index 69fbe12d81..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/create_variable.py +++ /dev/null @@ -1,143 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset -from ...models.create_variable_json_body import CreateVariableJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: CreateVariableJsonBody, - already_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["already_encrypted"] = already_encrypted - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/variables/create".format(workspace=workspace,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateVariableJsonBody, - already_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ create variable - - Args: - workspace (str): - already_encrypted (Union[Unset, None, bool]): - json_body (CreateVariableJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -already_encrypted=already_encrypted, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateVariableJsonBody, - already_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ create variable - - Args: - workspace (str): - already_encrypted (Union[Unset, None, bool]): - json_body (CreateVariableJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, -already_encrypted=already_encrypted, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/variable/delete_variable.py b/python-client/windmill-api/windmill_api/api/variable/delete_variable.py deleted file mode 100644 index 4391ffa3ff..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/delete_variable.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/w/{workspace}/variables/delete/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete variable - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete variable - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/variable/encrypt_value.py b/python-client/windmill-api/windmill_api/api/variable/encrypt_value.py deleted file mode 100644 index 0c1c602076..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/encrypt_value.py +++ /dev/null @@ -1,122 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - *, - json_body: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body - - - - - return { - "method": "post", - "url": "/w/{workspace}/variables/encrypt".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: str, - -) -> Response[Any]: - """ encrypt value - - Args: - workspace (str): - json_body (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: str, - -) -> Response[Any]: - """ encrypt value - - Args: - workspace (str): - json_body (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/variable/exists_variable.py b/python-client/windmill-api/windmill_api/api/variable/exists_variable.py deleted file mode 100644 index 84e5557164..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/exists_variable.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/variables/exists/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does variable exists at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does variable exists at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ does variable exists at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ does variable exists at path - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/variable/get_variable.py b/python-client/windmill-api/windmill_api/api/variable/get_variable.py deleted file mode 100644 index 3a578c9d6e..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/get_variable.py +++ /dev/null @@ -1,224 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.get_variable_response_200 import GetVariableResponse200 -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - decrypt_secret: Union[Unset, None, bool] = UNSET, - include_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["decrypt_secret"] = decrypt_secret - - - params["include_encrypted"] = include_encrypted - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/variables/get/{path}".format(workspace=workspace,path=path,), - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetVariableResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetVariableResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetVariableResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - decrypt_secret: Union[Unset, None, bool] = UNSET, - include_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Response[GetVariableResponse200]: - """ get variable - - Args: - workspace (str): - path (str): - decrypt_secret (Union[Unset, None, bool]): - include_encrypted (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetVariableResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -decrypt_secret=decrypt_secret, -include_encrypted=include_encrypted, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - decrypt_secret: Union[Unset, None, bool] = UNSET, - include_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Optional[GetVariableResponse200]: - """ get variable - - Args: - workspace (str): - path (str): - decrypt_secret (Union[Unset, None, bool]): - include_encrypted (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetVariableResponse200 - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, -decrypt_secret=decrypt_secret, -include_encrypted=include_encrypted, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - decrypt_secret: Union[Unset, None, bool] = UNSET, - include_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Response[GetVariableResponse200]: - """ get variable - - Args: - workspace (str): - path (str): - decrypt_secret (Union[Unset, None, bool]): - include_encrypted (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetVariableResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -decrypt_secret=decrypt_secret, -include_encrypted=include_encrypted, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - decrypt_secret: Union[Unset, None, bool] = UNSET, - include_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Optional[GetVariableResponse200]: - """ get variable - - Args: - workspace (str): - path (str): - decrypt_secret (Union[Unset, None, bool]): - include_encrypted (Union[Unset, None, bool]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetVariableResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, -decrypt_secret=decrypt_secret, -include_encrypted=include_encrypted, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/variable/get_variable_value.py b/python-client/windmill-api/windmill_api/api/variable/get_variable_value.py deleted file mode 100644 index acc8ae9e87..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/get_variable_value.py +++ /dev/null @@ -1,178 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - path: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/variables/get_value/{path}".format(workspace=workspace,path=path,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[str]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(str, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[str]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[str]: - """ get variable value - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[str] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[str]: - """ get variable value - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - str - """ - - - return sync_detailed( - workspace=workspace, -path=path, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[str]: - """ get variable value - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[str] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[str]: - """ get variable value - - Args: - workspace (str): - path (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - str - """ - - - return (await asyncio_detailed( - workspace=workspace, -path=path, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/variable/list_contextual_variables.py b/python-client/windmill-api/windmill_api/api/variable/list_contextual_variables.py deleted file mode 100644 index a79c5a09b5..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/list_contextual_variables.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_contextual_variables_response_200_item import ListContextualVariablesResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/variables/list_contextual".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListContextualVariablesResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListContextualVariablesResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListContextualVariablesResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListContextualVariablesResponse200Item']]: - """ list contextual variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListContextualVariablesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListContextualVariablesResponse200Item']]: - """ list contextual variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListContextualVariablesResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListContextualVariablesResponse200Item']]: - """ list contextual variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListContextualVariablesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListContextualVariablesResponse200Item']]: - """ list contextual variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListContextualVariablesResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/variable/list_variable.py b/python-client/windmill-api/windmill_api/api/variable/list_variable.py deleted file mode 100644 index 4fa5a58694..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/list_variable.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_variable_response_200_item import ListVariableResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/variables/list".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListVariableResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListVariableResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListVariableResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListVariableResponse200Item']]: - """ list variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListVariableResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListVariableResponse200Item']]: - """ list variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListVariableResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListVariableResponse200Item']]: - """ list variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListVariableResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListVariableResponse200Item']]: - """ list variables - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListVariableResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/variable/update_variable.py b/python-client/windmill-api/windmill_api/api/variable/update_variable.py deleted file mode 100644 index d6550347ea..0000000000 --- a/python-client/windmill-api/windmill_api/api/variable/update_variable.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import Dict -from ...models.update_variable_json_body import UpdateVariableJsonBody -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - workspace: str, - path: str, - *, - json_body: UpdateVariableJsonBody, - already_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["already_encrypted"] = already_encrypted - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/variables/update/{path}".format(workspace=workspace,path=path,), - "json": json_json_body, - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateVariableJsonBody, - already_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ update variable - - Args: - workspace (str): - path (str): - already_encrypted (Union[Unset, None, bool]): - json_body (UpdateVariableJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -already_encrypted=already_encrypted, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - path: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: UpdateVariableJsonBody, - already_encrypted: Union[Unset, None, bool] = UNSET, - -) -> Response[Any]: - """ update variable - - Args: - workspace (str): - path (str): - already_encrypted (Union[Unset, None, bool]): - json_body (UpdateVariableJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -path=path, -json_body=json_body, -already_encrypted=already_encrypted, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/worker/__init__.py b/python-client/windmill-api/windmill_api/api/worker/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/worker/exists_worker_with_tag.py b/python-client/windmill-api/windmill_api/api/worker/exists_worker_with_tag.py deleted file mode 100644 index f9f68a10ec..0000000000 --- a/python-client/windmill-api/windmill_api/api/worker/exists_worker_with_tag.py +++ /dev/null @@ -1,173 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - *, - tag: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["tag"] = tag - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/workers/exists_worker_with_tag", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - tag: str, - -) -> Response[bool]: - """ exists worker with tag - - Args: - tag (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - tag=tag, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - tag: str, - -) -> Optional[bool]: - """ exists worker with tag - - Args: - tag (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - client=client, -tag=tag, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - tag: str, - -) -> Response[bool]: - """ exists worker with tag - - Args: - tag (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - tag=tag, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - tag: str, - -) -> Optional[bool]: - """ exists worker with tag - - Args: - tag (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - client=client, -tag=tag, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/worker/get_custom_tags.py b/python-client/windmill-api/windmill_api/api/worker/get_custom_tags.py deleted file mode 100644 index 14cec9974b..0000000000 --- a/python-client/windmill-api/windmill_api/api/worker/get_custom_tags.py +++ /dev/null @@ -1,146 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast, List - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/workers/custom_tags", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List[str]]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(List[str], response.json()) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List[str]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ get all instance custom tags (tags are used to dispatch jobs to different worker groups) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ get all instance custom tags (tags are used to dispatch jobs to different worker groups) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List[str]]: - """ get all instance custom tags (tags are used to dispatch jobs to different worker groups) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List[str]] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List[str]]: - """ get all instance custom tags (tags are used to dispatch jobs to different worker groups) - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List[str] - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/worker/list_workers.py b/python-client/windmill-api/windmill_api/api/worker/list_workers.py deleted file mode 100644 index f168aab74f..0000000000 --- a/python-client/windmill-api/windmill_api/api/worker/list_workers.py +++ /dev/null @@ -1,204 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from typing import Optional -from ...types import UNSET, Unset -from ...models.list_workers_response_200_item import ListWorkersResponse200Item - - - -def _get_kwargs( - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/workers/list", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListWorkersResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListWorkersResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListWorkersResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListWorkersResponse200Item']]: - """ list workers - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkersResponse200Item']] - """ - - - kwargs = _get_kwargs( - page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListWorkersResponse200Item']]: - """ list workers - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkersResponse200Item'] - """ - - - return sync_detailed( - client=client, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListWorkersResponse200Item']]: - """ list workers - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkersResponse200Item']] - """ - - - kwargs = _get_kwargs( - page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListWorkersResponse200Item']]: - """ list workers - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkersResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/__init__.py b/python-client/windmill-api/windmill_api/api/workspace/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-client/windmill-api/windmill_api/api/workspace/add_user.py b/python-client/windmill-api/windmill_api/api/workspace/add_user.py deleted file mode 100644 index ac6eedea76..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/add_user.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.add_user_json_body import AddUserJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: AddUserJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/add_user".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddUserJsonBody, - -) -> Response[Any]: - """ add user to workspace - - Args: - workspace (str): - json_body (AddUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: AddUserJsonBody, - -) -> Response[Any]: - """ add user to workspace - - Args: - workspace (str): - json_body (AddUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/archive_workspace.py b/python-client/windmill-api/windmill_api/api/workspace/archive_workspace.py deleted file mode 100644 index 6335e398f1..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/archive_workspace.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/archive".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ archive workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ archive workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/create_workspace.py b/python-client/windmill-api/windmill_api/api/workspace/create_workspace.py deleted file mode 100644 index 9cbce438cb..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/create_workspace.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.create_workspace_json_body import CreateWorkspaceJsonBody - - - -def _get_kwargs( - *, - json_body: CreateWorkspaceJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/workspaces/create", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateWorkspaceJsonBody, - -) -> Response[Any]: - """ create workspace - - Args: - json_body (CreateWorkspaceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: CreateWorkspaceJsonBody, - -) -> Response[Any]: - """ create workspace - - Args: - json_body (CreateWorkspaceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/delete_invite.py b/python-client/windmill-api/windmill_api/api/workspace/delete_invite.py deleted file mode 100644 index 2d98364aa8..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/delete_invite.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.delete_invite_json_body import DeleteInviteJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: DeleteInviteJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/delete_invite".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DeleteInviteJsonBody, - -) -> Response[Any]: - """ delete user invite - - Args: - workspace (str): - json_body (DeleteInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: DeleteInviteJsonBody, - -) -> Response[Any]: - """ delete user invite - - Args: - workspace (str): - json_body (DeleteInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/delete_workspace.py b/python-client/windmill-api/windmill_api/api/workspace/delete_workspace.py deleted file mode 100644 index 7fd5613b47..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/delete_workspace.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "delete", - "url": "/workspaces/delete/{workspace}".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete workspace (require super admin) - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ delete workspace (require super admin) - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_auto_invite.py b/python-client/windmill-api/windmill_api/api/workspace/edit_auto_invite.py deleted file mode 100644 index 95b95ca17a..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_auto_invite.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.edit_auto_invite_json_body import EditAutoInviteJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditAutoInviteJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_auto_invite".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditAutoInviteJsonBody, - -) -> Response[Any]: - """ edit auto invite - - Args: - workspace (str): - json_body (EditAutoInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditAutoInviteJsonBody, - -) -> Response[Any]: - """ edit auto invite - - Args: - workspace (str): - json_body (EditAutoInviteJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_copilot_config.py b/python-client/windmill-api/windmill_api/api/workspace/edit_copilot_config.py deleted file mode 100644 index 7239347e1c..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_copilot_config.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.edit_copilot_config_json_body import EditCopilotConfigJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditCopilotConfigJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_copilot_config".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditCopilotConfigJsonBody, - -) -> Response[Any]: - """ edit copilot config - - Args: - workspace (str): - json_body (EditCopilotConfigJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditCopilotConfigJsonBody, - -) -> Response[Any]: - """ edit copilot config - - Args: - workspace (str): - json_body (EditCopilotConfigJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_deploy_to.py b/python-client/windmill-api/windmill_api/api/workspace/edit_deploy_to.py deleted file mode 100644 index 021ff3bd9f..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_deploy_to.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.edit_deploy_to_json_body import EditDeployToJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditDeployToJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_deploy_to".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditDeployToJsonBody, - -) -> Response[Any]: - """ edit deploy to - - Args: - workspace (str): - json_body (EditDeployToJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditDeployToJsonBody, - -) -> Response[Any]: - """ edit deploy to - - Args: - workspace (str): - json_body (EditDeployToJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_error_handler.py b/python-client/windmill-api/windmill_api/api/workspace/edit_error_handler.py deleted file mode 100644 index 5f2c3f6b0f..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_error_handler.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.edit_error_handler_json_body import EditErrorHandlerJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditErrorHandlerJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_error_handler".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditErrorHandlerJsonBody, - -) -> Response[Any]: - """ edit error handler - - Args: - workspace (str): - json_body (EditErrorHandlerJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditErrorHandlerJsonBody, - -) -> Response[Any]: - """ edit error handler - - Args: - workspace (str): - json_body (EditErrorHandlerJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_large_file_storage_config.py b/python-client/windmill-api/windmill_api/api/workspace/edit_large_file_storage_config.py deleted file mode 100644 index 8579f3d3f7..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_large_file_storage_config.py +++ /dev/null @@ -1,128 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.edit_large_file_storage_config_json_body import EditLargeFileStorageConfigJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditLargeFileStorageConfigJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_large_file_storage_config".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditLargeFileStorageConfigJsonBody, - -) -> Response[Any]: - """ edit large file storage settings - - Args: - workspace (str): - json_body (EditLargeFileStorageConfigJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditLargeFileStorageConfigJsonBody, - -) -> Response[Any]: - """ edit large file storage settings - - Args: - workspace (str): - json_body (EditLargeFileStorageConfigJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_slack_command.py b/python-client/windmill-api/windmill_api/api/workspace/edit_slack_command.py deleted file mode 100644 index 72d5049b43..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_slack_command.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.edit_slack_command_json_body import EditSlackCommandJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditSlackCommandJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_slack_command".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditSlackCommandJsonBody, - -) -> Response[Any]: - """ edit slack command - - Args: - workspace (str): - json_body (EditSlackCommandJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditSlackCommandJsonBody, - -) -> Response[Any]: - """ edit slack command - - Args: - workspace (str): - json_body (EditSlackCommandJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_webhook.py b/python-client/windmill-api/windmill_api/api/workspace/edit_webhook.py deleted file mode 100644 index be9edfd7da..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_webhook.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.edit_webhook_json_body import EditWebhookJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditWebhookJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_webhook".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditWebhookJsonBody, - -) -> Response[Any]: - """ edit webhook - - Args: - workspace (str): - json_body (EditWebhookJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditWebhookJsonBody, - -) -> Response[Any]: - """ edit webhook - - Args: - workspace (str): - json_body (EditWebhookJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/edit_workspace_git_sync_config.py b/python-client/windmill-api/windmill_api/api/workspace/edit_workspace_git_sync_config.py deleted file mode 100644 index e650b93e13..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/edit_workspace_git_sync_config.py +++ /dev/null @@ -1,128 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.edit_workspace_git_sync_config_json_body import EditWorkspaceGitSyncConfigJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: EditWorkspaceGitSyncConfigJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/edit_git_sync_config".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if response.status_code == HTTPStatus.OK: - return None - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditWorkspaceGitSyncConfigJsonBody, - -) -> Response[Any]: - """ edit workspace git sync settings - - Args: - workspace (str): - json_body (EditWorkspaceGitSyncConfigJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: EditWorkspaceGitSyncConfigJsonBody, - -) -> Response[Any]: - """ edit workspace git sync settings - - Args: - workspace (str): - json_body (EditWorkspaceGitSyncConfigJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/exists_username.py b/python-client/windmill-api/windmill_api/api/workspace/exists_username.py deleted file mode 100644 index 2e007a044d..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/exists_username.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.exists_username_json_body import ExistsUsernameJsonBody -from typing import cast -from typing import Dict - - - -def _get_kwargs( - *, - json_body: ExistsUsernameJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/workspaces/exists_username", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: ExistsUsernameJsonBody, - -) -> Response[Any]: - """ exists username - - Args: - json_body (ExistsUsernameJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: ExistsUsernameJsonBody, - -) -> Response[Any]: - """ exists username - - Args: - json_body (ExistsUsernameJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/exists_workspace.py b/python-client/windmill-api/windmill_api/api/workspace/exists_workspace.py deleted file mode 100644 index d31abf2c36..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/exists_workspace.py +++ /dev/null @@ -1,119 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.exists_workspace_json_body import ExistsWorkspaceJsonBody - - - -def _get_kwargs( - *, - json_body: ExistsWorkspaceJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/workspaces/exists", - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: ExistsWorkspaceJsonBody, - -) -> Response[Any]: - """ exists workspace - - Args: - json_body (ExistsWorkspaceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - json_body: ExistsWorkspaceJsonBody, - -) -> Response[Any]: - """ exists workspace - - Args: - json_body (ExistsWorkspaceJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/get_copilot_info.py b/python-client/windmill-api/windmill_api/api/workspace/get_copilot_info.py deleted file mode 100644 index 9b47116542..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/get_copilot_info.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/workspaces/get_copilot_info".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get copilot info - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ get copilot info - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/get_deploy_to.py b/python-client/windmill-api/windmill_api/api/workspace/get_deploy_to.py deleted file mode 100644 index 70675801fe..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/get_deploy_to.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_deploy_to_response_200 import GetDeployToResponse200 - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/workspaces/get_deploy_to".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetDeployToResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetDeployToResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetDeployToResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetDeployToResponse200]: - """ get deploy to - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetDeployToResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetDeployToResponse200]: - """ get deploy to - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetDeployToResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetDeployToResponse200]: - """ get deploy to - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetDeployToResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetDeployToResponse200]: - """ get deploy to - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetDeployToResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/get_is_premium.py b/python-client/windmill-api/windmill_api/api/workspace/get_is_premium.py deleted file mode 100644 index 0c2771a895..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/get_is_premium.py +++ /dev/null @@ -1,165 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/workspaces/is_premium".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ get if workspace is premium - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ get if workspace is premium - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ get if workspace is premium - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ get if workspace is premium - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/get_large_file_storage_config.py b/python-client/windmill-api/windmill_api/api/workspace/get_large_file_storage_config.py deleted file mode 100644 index 5e0f584d7c..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/get_large_file_storage_config.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.get_large_file_storage_config_response_200 import GetLargeFileStorageConfigResponse200 -from typing import Dict - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/workspaces/get_large_file_storage_config".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetLargeFileStorageConfigResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetLargeFileStorageConfigResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetLargeFileStorageConfigResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetLargeFileStorageConfigResponse200]: - """ get large file storage config - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetLargeFileStorageConfigResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetLargeFileStorageConfigResponse200]: - """ get large file storage config - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetLargeFileStorageConfigResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetLargeFileStorageConfigResponse200]: - """ get large file storage config - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetLargeFileStorageConfigResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetLargeFileStorageConfigResponse200]: - """ get large file storage config - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetLargeFileStorageConfigResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/get_premium_info.py b/python-client/windmill-api/windmill_api/api/workspace/get_premium_info.py deleted file mode 100644 index c28cfe7051..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/get_premium_info.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.get_premium_info_response_200 import GetPremiumInfoResponse200 - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/workspaces/premium_info".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetPremiumInfoResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetPremiumInfoResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetPremiumInfoResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetPremiumInfoResponse200]: - """ get premium info - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetPremiumInfoResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetPremiumInfoResponse200]: - """ get premium info - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetPremiumInfoResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetPremiumInfoResponse200]: - """ get premium info - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetPremiumInfoResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetPremiumInfoResponse200]: - """ get premium info - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetPremiumInfoResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/get_settings.py b/python-client/windmill-api/windmill_api/api/workspace/get_settings.py deleted file mode 100644 index 95940618a8..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/get_settings.py +++ /dev/null @@ -1,171 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from ...models.get_settings_response_200 import GetSettingsResponse200 -from typing import cast -from typing import Dict - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/workspaces/get_settings".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[GetSettingsResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = GetSettingsResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[GetSettingsResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetSettingsResponse200]: - """ get settings - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetSettingsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetSettingsResponse200]: - """ get settings - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetSettingsResponse200 - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[GetSettingsResponse200]: - """ get settings - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[GetSettingsResponse200] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[GetSettingsResponse200]: - """ get settings - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - GetSettingsResponse200 - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/invite_user.py b/python-client/windmill-api/windmill_api/api/workspace/invite_user.py deleted file mode 100644 index ca7a0f12c6..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/invite_user.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.invite_user_json_body import InviteUserJsonBody - - - -def _get_kwargs( - workspace: str, - *, - json_body: InviteUserJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/invite_user".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: InviteUserJsonBody, - -) -> Response[Any]: - """ invite user to workspace - - Args: - workspace (str): - json_body (InviteUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: InviteUserJsonBody, - -) -> Response[Any]: - """ invite user to workspace - - Args: - workspace (str): - json_body (InviteUserJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/is_domain_allowed.py b/python-client/windmill-api/windmill_api/api/workspace/is_domain_allowed.py deleted file mode 100644 index 12df7eecde..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/is_domain_allowed.py +++ /dev/null @@ -1,144 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/workspaces/allowed_domain_auto_invite", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[bool]: - if response.status_code == HTTPStatus.OK: - response_200 = cast(bool, response.json()) - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[bool]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ is domain allowed for auto invi - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ is domain allowed for auto invi - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[bool]: - """ is domain allowed for auto invi - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[bool] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[bool]: - """ is domain allowed for auto invi - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - bool - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/leave_workspace.py b/python-client/windmill-api/windmill_api/api/workspace/leave_workspace.py deleted file mode 100644 index 2bc32ff928..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/leave_workspace.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/leave".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ leave workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ leave workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/list_pending_invites.py b/python-client/windmill-api/windmill_api/api/workspace/list_pending_invites.py deleted file mode 100644 index f4fda9bc1d..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/list_pending_invites.py +++ /dev/null @@ -1,177 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_pending_invites_response_200_item import ListPendingInvitesResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/w/{workspace}/workspaces/list_pending_invites".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListPendingInvitesResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListPendingInvitesResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListPendingInvitesResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListPendingInvitesResponse200Item']]: - """ list pending invites for a workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListPendingInvitesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListPendingInvitesResponse200Item']]: - """ list pending invites for a workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListPendingInvitesResponse200Item'] - """ - - - return sync_detailed( - workspace=workspace, -client=client, - - ).parsed - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListPendingInvitesResponse200Item']]: - """ list pending invites for a workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListPendingInvitesResponse200Item']] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListPendingInvitesResponse200Item']]: - """ list pending invites for a workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListPendingInvitesResponse200Item'] - """ - - - return (await asyncio_detailed( - workspace=workspace, -client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/list_user_workspaces.py b/python-client/windmill-api/windmill_api/api/workspace/list_user_workspaces.py deleted file mode 100644 index dbbcdca09e..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/list_user_workspaces.py +++ /dev/null @@ -1,150 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from typing import Dict -from ...models.list_user_workspaces_response_200 import ListUserWorkspacesResponse200 - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/workspaces/users", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[ListUserWorkspacesResponse200]: - if response.status_code == HTTPStatus.OK: - response_200 = ListUserWorkspacesResponse200.from_dict(response.json()) - - - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[ListUserWorkspacesResponse200]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListUserWorkspacesResponse200]: - """ list all workspaces visible to me with user info - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListUserWorkspacesResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListUserWorkspacesResponse200]: - """ list all workspaces visible to me with user info - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListUserWorkspacesResponse200 - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[ListUserWorkspacesResponse200]: - """ list all workspaces visible to me with user info - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[ListUserWorkspacesResponse200] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[ListUserWorkspacesResponse200]: - """ list all workspaces visible to me with user info - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - ListUserWorkspacesResponse200 - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/list_workspaces.py b/python-client/windmill-api/windmill_api/api/workspace/list_workspaces.py deleted file mode 100644 index 6bea7bee69..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/list_workspaces.py +++ /dev/null @@ -1,156 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.list_workspaces_response_200_item import ListWorkspacesResponse200Item -from typing import Dict -from typing import cast, List - - - -def _get_kwargs( - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "get", - "url": "/workspaces/list", - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListWorkspacesResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListWorkspacesResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListWorkspacesResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListWorkspacesResponse200Item']]: - """ list all workspaces visible to me - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkspacesResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListWorkspacesResponse200Item']]: - """ list all workspaces visible to me - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkspacesResponse200Item'] - """ - - - return sync_detailed( - client=client, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[List['ListWorkspacesResponse200Item']]: - """ list all workspaces visible to me - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkspacesResponse200Item']] - """ - - - kwargs = _get_kwargs( - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - -) -> Optional[List['ListWorkspacesResponse200Item']]: - """ list all workspaces visible to me - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkspacesResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/list_workspaces_as_super_admin.py b/python-client/windmill-api/windmill_api/api/workspace/list_workspaces_as_super_admin.py deleted file mode 100644 index 3b775b437b..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/list_workspaces_as_super_admin.py +++ /dev/null @@ -1,204 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ...models.list_workspaces_as_super_admin_response_200_item import ListWorkspacesAsSuperAdminResponse200Item -from typing import Optional -from ...types import UNSET, Unset - - - -def _get_kwargs( - *, - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Dict[str, Any]: - - - cookies = {} - - - params: Dict[str, Any] = {} - params["page"] = page - - - params["per_page"] = per_page - - - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - - - - - - return { - "method": "get", - "url": "/workspaces/list_as_superadmin", - "params": params, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[List['ListWorkspacesAsSuperAdminResponse200Item']]: - if response.status_code == HTTPStatus.OK: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in (_response_200): - response_200_item = ListWorkspacesAsSuperAdminResponse200Item.from_dict(response_200_item_data) - - - - response_200.append(response_200_item) - - return response_200 - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[List['ListWorkspacesAsSuperAdminResponse200Item']]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListWorkspacesAsSuperAdminResponse200Item']]: - """ list all workspaces as super admin (require to be super admin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkspacesAsSuperAdminResponse200Item']] - """ - - - kwargs = _get_kwargs( - page=page, -per_page=per_page, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - -def sync( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListWorkspacesAsSuperAdminResponse200Item']]: - """ list all workspaces as super admin (require to be super admin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkspacesAsSuperAdminResponse200Item'] - """ - - - return sync_detailed( - client=client, -page=page, -per_page=per_page, - - ).parsed - -async def asyncio_detailed( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Response[List['ListWorkspacesAsSuperAdminResponse200Item']]: - """ list all workspaces as super admin (require to be super admin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[List['ListWorkspacesAsSuperAdminResponse200Item']] - """ - - - kwargs = _get_kwargs( - page=page, -per_page=per_page, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - -async def asyncio( - *, - client: Union[AuthenticatedClient, Client], - page: Union[Unset, None, int] = UNSET, - per_page: Union[Unset, None, int] = UNSET, - -) -> Optional[List['ListWorkspacesAsSuperAdminResponse200Item']]: - """ list all workspaces as super admin (require to be super admin) - - Args: - page (Union[Unset, None, int]): - per_page (Union[Unset, None, int]): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - List['ListWorkspacesAsSuperAdminResponse200Item'] - """ - - - return (await asyncio_detailed( - client=client, -page=page, -per_page=per_page, - - )).parsed diff --git a/python-client/windmill-api/windmill_api/api/workspace/run_slack_message_test_job.py b/python-client/windmill-api/windmill_api/api/workspace/run_slack_message_test_job.py deleted file mode 100644 index 30f4a1548a..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/run_slack_message_test_job.py +++ /dev/null @@ -1,126 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - -from typing import cast -from ...models.run_slack_message_test_job_json_body import RunSlackMessageTestJobJsonBody -from typing import Dict - - - -def _get_kwargs( - workspace: str, - *, - json_body: RunSlackMessageTestJobJsonBody, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - json_json_body = json_body.to_dict() - - - - - - return { - "method": "post", - "url": "/w/{workspace}/workspaces/run_slack_message_test_job".format(workspace=workspace,), - "json": json_json_body, - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunSlackMessageTestJobJsonBody, - -) -> Response[Any]: - """ run a job that sends a message to Slack - - Args: - workspace (str): - json_body (RunSlackMessageTestJobJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - json_body: RunSlackMessageTestJobJsonBody, - -) -> Response[Any]: - """ run a job that sends a message to Slack - - Args: - workspace (str): - json_body (RunSlackMessageTestJobJsonBody): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, -json_body=json_body, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/api/workspace/unarchive_workspace.py b/python-client/windmill-api/windmill_api/api/workspace/unarchive_workspace.py deleted file mode 100644 index 67caf8043f..0000000000 --- a/python-client/windmill-api/windmill_api/api/workspace/unarchive_workspace.py +++ /dev/null @@ -1,112 +0,0 @@ -from http import HTTPStatus -from typing import Any, Dict, List, Optional, Union, cast - -import httpx - -from ...client import AuthenticatedClient, Client -from ...types import Response, UNSET -from ... import errors - - - - -def _get_kwargs( - workspace: str, - -) -> Dict[str, Any]: - - - cookies = {} - - - - - - - - - return { - "method": "post", - "url": "/workspaces/unarchive/{workspace}".format(workspace=workspace,), - } - - -def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]: - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ unarchive workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -async def asyncio_detailed( - workspace: str, - *, - client: Union[AuthenticatedClient, Client], - -) -> Response[Any]: - """ unarchive workspace - - Args: - workspace (str): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[Any] - """ - - - kwargs = _get_kwargs( - workspace=workspace, - - ) - - response = await client.get_async_httpx_client().request( - **kwargs - ) - - return _build_response(client=client, response=response) - diff --git a/python-client/windmill-api/windmill_api/client.py b/python-client/windmill-api/windmill_api/client.py deleted file mode 100644 index 4bf787379a..0000000000 --- a/python-client/windmill-api/windmill_api/client.py +++ /dev/null @@ -1,267 +0,0 @@ -import ssl -from typing import Any, Dict, Union, Optional - -from attrs import define, field, evolve -import httpx - - -@define -class Client: - """A class for keeping track of data related to the API - - The following are accepted as keyword arguments and will be used to construct httpx Clients internally: - - ``base_url``: The base URL for the API, all requests are made to a relative path to this URL - - ``cookies``: A dictionary of cookies to be sent with every request - - ``headers``: A dictionary of headers to be sent with every request - - ``timeout``: The maximum amount of a time a request can take. API functions will raise - httpx.TimeoutException if this is exceeded. - - ``verify_ssl``: Whether or not to verify the SSL certificate of the API server. This should be True in production, - but can be set to False for testing purposes. - - ``follow_redirects``: Whether or not to follow redirects. Default value is False. - - ``httpx_args``: A dictionary of additional arguments to be passed to the ``httpx.Client`` and ``httpx.AsyncClient`` constructor. - - - Attributes: - raise_on_unexpected_status: Whether or not to raise an errors.UnexpectedStatus if the API returns a - status code that was not documented in the source OpenAPI document. Can also be provided as a keyword - argument to the constructor. - """ - raise_on_unexpected_status: bool = field(default=False, kw_only=True) - _base_url: str - _cookies: Dict[str, str] = field(factory=dict, kw_only=True) - _headers: Dict[str, str] = field(factory=dict, kw_only=True) - _timeout: Optional[httpx.Timeout] = field(default=None, kw_only=True) - _verify_ssl: Union[str, bool, ssl.SSLContext] = field(default=True, kw_only=True) - _follow_redirects: bool = field(default=False, kw_only=True) - _httpx_args: Dict[str, Any] = field(factory=dict, kw_only=True) - _client: Optional[httpx.Client] = field(default=None, init=False) - _async_client: Optional[httpx.AsyncClient] = field(default=None, init=False) - - def with_headers(self, headers: Dict[str, str]) -> "Client": - """Get a new client matching this one with additional headers""" - if self._client is not None: - self._client.headers.update(headers) - if self._async_client is not None: - self._async_client.headers.update(headers) - return evolve(self, headers={**self._headers, **headers}) - - def with_cookies(self, cookies: Dict[str, str]) -> "Client": - """Get a new client matching this one with additional cookies""" - if self._client is not None: - self._client.cookies.update(cookies) - if self._async_client is not None: - self._async_client.cookies.update(cookies) - return evolve(self, cookies={**self._cookies, **cookies}) - - def with_timeout(self, timeout: httpx.Timeout) -> "Client": - """Get a new client matching this one with a new timeout (in seconds)""" - if self._client is not None: - self._client.timeout = timeout - if self._async_client is not None: - self._async_client.timeout = timeout - return evolve(self, timeout=timeout) - - def set_httpx_client(self, client: httpx.Client) -> "Client": - """Manually the underlying httpx.Client - - **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - """ - self._client = client - return self - - def get_httpx_client(self) -> httpx.Client: - """Get the underlying httpx.Client, constructing a new one if not previously set""" - if self._client is None: - self._client = httpx.Client( - base_url=self._base_url, - cookies=self._cookies, - headers=self._headers, - timeout=self._timeout, - verify=self._verify_ssl, - follow_redirects=self._follow_redirects, - **self._httpx_args, - ) - return self._client - - def __enter__(self) -> "Client": - """Enter a context manager for self.client—you cannot enter twice (see httpx docs)""" - self.get_httpx_client().__enter__() - return self - - def __exit__(self, *args: Any, **kwargs: Any) -> None: - """Exit a context manager for internal httpx.Client (see httpx docs)""" - self.get_httpx_client().__exit__(*args, **kwargs) - - def set_async_httpx_client(self, async_client: httpx.AsyncClient) -> "Client": - """Manually the underlying httpx.AsyncClient - - **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - """ - self._async_client = async_client - return self - - def get_async_httpx_client(self) -> httpx.AsyncClient: - """Get the underlying httpx.AsyncClient, constructing a new one if not previously set""" - if self._async_client is None: - self._async_client = httpx.AsyncClient( - base_url=self._base_url, - cookies=self._cookies, - headers=self._headers, - timeout=self._timeout, - verify=self._verify_ssl, - follow_redirects=self._follow_redirects, - **self._httpx_args, - ) - return self._async_client - - async def __aenter__(self) -> "Client": - """Enter a context manager for underlying httpx.AsyncClient—you cannot enter twice (see httpx docs)""" - await self.get_async_httpx_client().__aenter__() - return self - - async def __aexit__(self, *args: Any, **kwargs: Any) -> None: - """Exit a context manager for underlying httpx.AsyncClient (see httpx docs)""" - await self.get_async_httpx_client().__aexit__(*args, **kwargs) - - -@define -class AuthenticatedClient: - """A Client which has been authenticated for use on secured endpoints - - The following are accepted as keyword arguments and will be used to construct httpx Clients internally: - - ``base_url``: The base URL for the API, all requests are made to a relative path to this URL - - ``cookies``: A dictionary of cookies to be sent with every request - - ``headers``: A dictionary of headers to be sent with every request - - ``timeout``: The maximum amount of a time a request can take. API functions will raise - httpx.TimeoutException if this is exceeded. - - ``verify_ssl``: Whether or not to verify the SSL certificate of the API server. This should be True in production, - but can be set to False for testing purposes. - - ``follow_redirects``: Whether or not to follow redirects. Default value is False. - - ``httpx_args``: A dictionary of additional arguments to be passed to the ``httpx.Client`` and ``httpx.AsyncClient`` constructor. - - - Attributes: - raise_on_unexpected_status: Whether or not to raise an errors.UnexpectedStatus if the API returns a - status code that was not documented in the source OpenAPI document. Can also be provided as a keyword - argument to the constructor. - token: The token to use for authentication - prefix: The prefix to use for the Authorization header - auth_header_name: The name of the Authorization header - """ - - raise_on_unexpected_status: bool = field(default=False, kw_only=True) - _base_url: str - _cookies: Dict[str, str] = field(factory=dict, kw_only=True) - _headers: Dict[str, str] = field(factory=dict, kw_only=True) - _timeout: Optional[httpx.Timeout] = field(default=None, kw_only=True) - _verify_ssl: Union[str, bool, ssl.SSLContext] = field(default=True, kw_only=True) - _follow_redirects: bool = field(default=False, kw_only=True) - _httpx_args: Dict[str, Any] = field(factory=dict, kw_only=True) - _client: Optional[httpx.Client] = field(default=None, init=False) - _async_client: Optional[httpx.AsyncClient] = field(default=None, init=False) - - token: str - prefix: str = "Bearer" - auth_header_name: str = "Authorization" - - def with_headers(self, headers: Dict[str, str]) -> "AuthenticatedClient": - """Get a new client matching this one with additional headers""" - if self._client is not None: - self._client.headers.update(headers) - if self._async_client is not None: - self._async_client.headers.update(headers) - return evolve(self, headers={**self._headers, **headers}) - - def with_cookies(self, cookies: Dict[str, str]) -> "AuthenticatedClient": - """Get a new client matching this one with additional cookies""" - if self._client is not None: - self._client.cookies.update(cookies) - if self._async_client is not None: - self._async_client.cookies.update(cookies) - return evolve(self, cookies={**self._cookies, **cookies}) - - def with_timeout(self, timeout: httpx.Timeout) -> "AuthenticatedClient": - """Get a new client matching this one with a new timeout (in seconds)""" - if self._client is not None: - self._client.timeout = timeout - if self._async_client is not None: - self._async_client.timeout = timeout - return evolve(self, timeout=timeout) - - def set_httpx_client(self, client: httpx.Client) -> "AuthenticatedClient": - """Manually the underlying httpx.Client - - **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - """ - self._client = client - return self - - def get_httpx_client(self) -> httpx.Client: - """Get the underlying httpx.Client, constructing a new one if not previously set""" - if self._client is None: - self._headers[self.auth_header_name] = f"{self.prefix} {self.token}" if self.prefix else self.token - self._client = httpx.Client( - base_url=self._base_url, - cookies=self._cookies, - headers=self._headers, - timeout=self._timeout, - verify=self._verify_ssl, - follow_redirects=self._follow_redirects, - **self._httpx_args, - ) - return self._client - - def __enter__(self) -> "AuthenticatedClient": - """Enter a context manager for self.client—you cannot enter twice (see httpx docs)""" - self.get_httpx_client().__enter__() - return self - - def __exit__(self, *args: Any, **kwargs: Any) -> None: - """Exit a context manager for internal httpx.Client (see httpx docs)""" - self.get_httpx_client().__exit__(*args, **kwargs) - - def set_async_httpx_client(self, async_client: httpx.AsyncClient) -> "AuthenticatedClient": - """Manually the underlying httpx.AsyncClient - - **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout. - """ - self._async_client = async_client - return self - - def get_async_httpx_client(self) -> httpx.AsyncClient: - """Get the underlying httpx.AsyncClient, constructing a new one if not previously set""" - if self._async_client is None: - self._headers[self.auth_header_name] = f"{self.prefix} {self.token}" if self.prefix else self.token - self._async_client = httpx.AsyncClient( - base_url=self._base_url, - cookies=self._cookies, - headers=self._headers, - timeout=self._timeout, - verify=self._verify_ssl, - follow_redirects=self._follow_redirects, - **self._httpx_args, - ) - return self._async_client - - async def __aenter__(self) -> "AuthenticatedClient": - """Enter a context manager for underlying httpx.AsyncClient—you cannot enter twice (see httpx docs)""" - await self.get_async_httpx_client().__aenter__() - return self - - async def __aexit__(self, *args: Any, **kwargs: Any) -> None: - """Exit a context manager for underlying httpx.AsyncClient (see httpx docs)""" - await self.get_async_httpx_client().__aexit__(*args, **kwargs) diff --git a/python-client/windmill-api/windmill_api/errors.py b/python-client/windmill-api/windmill_api/errors.py deleted file mode 100644 index 514d3c1b90..0000000000 --- a/python-client/windmill-api/windmill_api/errors.py +++ /dev/null @@ -1,12 +0,0 @@ -""" Contains shared errors types that can be raised from API functions """ - -class UnexpectedStatus(Exception): - """ Raised by api functions when the response status an undocumented status and Client.raise_on_unexpected_status is True """ - - def __init__(self, status_code: int, content: bytes): - self.status_code = status_code - self.content = content - - super().__init__(f"Unexpected status code: {status_code}") - -__all__ = ["UnexpectedStatus"] diff --git a/python-client/windmill-api/windmill_api/models/__init__.py b/python-client/windmill-api/windmill_api/models/__init__.py deleted file mode 100644 index 8b13789179..0000000000 --- a/python-client/windmill-api/windmill_api/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/python-client/windmill-api/windmill_api/models/accept_invite_json_body.py b/python-client/windmill-api/windmill_api/models/accept_invite_json_body.py deleted file mode 100644 index 04aec1b2de..0000000000 --- a/python-client/windmill-api/windmill_api/models/accept_invite_json_body.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AcceptInviteJsonBody") - - -@_attrs_define -class AcceptInviteJsonBody: - """ - Attributes: - workspace_id (str): - username (str): - """ - - workspace_id: str - username: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - workspace_id = self.workspace_id - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "username": username, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - username = d.pop("username") - - accept_invite_json_body = cls( - workspace_id=workspace_id, - username=username, - ) - - accept_invite_json_body.additional_properties = d - return accept_invite_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/add_granular_acls_json_body.py b/python-client/windmill-api/windmill_api/models/add_granular_acls_json_body.py deleted file mode 100644 index cea3a37b7f..0000000000 --- a/python-client/windmill-api/windmill_api/models/add_granular_acls_json_body.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="AddGranularAclsJsonBody") - - -@_attrs_define -class AddGranularAclsJsonBody: - """ - Attributes: - owner (str): - write (Union[Unset, bool]): - """ - - owner: str - write: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - owner = self.owner - write = self.write - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "owner": owner, - }) - if write is not UNSET: - field_dict["write"] = write - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - owner = d.pop("owner") - - write = d.pop("write", UNSET) - - add_granular_acls_json_body = cls( - owner=owner, - write=write, - ) - - add_granular_acls_json_body.additional_properties = d - return add_granular_acls_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/add_granular_acls_kind.py b/python-client/windmill-api/windmill_api/models/add_granular_acls_kind.py deleted file mode 100644 index 4daca46a8b..0000000000 --- a/python-client/windmill-api/windmill_api/models/add_granular_acls_kind.py +++ /dev/null @@ -1,15 +0,0 @@ -from enum import Enum - -class AddGranularAclsKind(str, Enum): - APP = "app" - FLOW = "flow" - FOLDER = "folder" - GROUP = "group_" - RAW_APP = "raw_app" - RESOURCE = "resource" - SCHEDULE = "schedule" - SCRIPT = "script" - VARIABLE = "variable" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/add_owner_to_folder_json_body.py b/python-client/windmill-api/windmill_api/models/add_owner_to_folder_json_body.py deleted file mode 100644 index 09178cffb7..0000000000 --- a/python-client/windmill-api/windmill_api/models/add_owner_to_folder_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="AddOwnerToFolderJsonBody") - - -@_attrs_define -class AddOwnerToFolderJsonBody: - """ - Attributes: - owner (Union[Unset, str]): - """ - - owner: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - owner = self.owner - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if owner is not UNSET: - field_dict["owner"] = owner - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - owner = d.pop("owner", UNSET) - - add_owner_to_folder_json_body = cls( - owner=owner, - ) - - add_owner_to_folder_json_body.additional_properties = d - return add_owner_to_folder_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/add_user_json_body.py b/python-client/windmill-api/windmill_api/models/add_user_json_body.py deleted file mode 100644 index 03ccbe26eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/add_user_json_body.py +++ /dev/null @@ -1,91 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AddUserJsonBody") - - -@_attrs_define -class AddUserJsonBody: - """ - Attributes: - email (str): - is_admin (bool): - username (str): - operator (bool): - """ - - email: str - is_admin: bool - username: str - operator: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - is_admin = self.is_admin - username = self.username - operator = self.operator - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "is_admin": is_admin, - "username": username, - "operator": operator, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - is_admin = d.pop("is_admin") - - username = d.pop("username") - - operator = d.pop("operator") - - add_user_json_body = cls( - email=email, - is_admin=is_admin, - username=username, - operator=operator, - ) - - add_user_json_body.additional_properties = d - return add_user_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/add_user_to_group_json_body.py b/python-client/windmill-api/windmill_api/models/add_user_to_group_json_body.py deleted file mode 100644 index 03ec52ef34..0000000000 --- a/python-client/windmill-api/windmill_api/models/add_user_to_group_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="AddUserToGroupJsonBody") - - -@_attrs_define -class AddUserToGroupJsonBody: - """ - Attributes: - username (Union[Unset, str]): - """ - - username: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if username is not UNSET: - field_dict["username"] = username - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - username = d.pop("username", UNSET) - - add_user_to_group_json_body = cls( - username=username, - ) - - add_user_to_group_json_body.additional_properties = d - return add_user_to_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/add_user_to_instance_group_json_body.py b/python-client/windmill-api/windmill_api/models/add_user_to_instance_group_json_body.py deleted file mode 100644 index 0f38f9c88e..0000000000 --- a/python-client/windmill-api/windmill_api/models/add_user_to_instance_group_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AddUserToInstanceGroupJsonBody") - - -@_attrs_define -class AddUserToInstanceGroupJsonBody: - """ - Attributes: - email (str): - """ - - email: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - add_user_to_instance_group_json_body = cls( - email=email, - ) - - add_user_to_instance_group_json_body.additional_properties = d - return add_user_to_instance_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_history.py b/python-client/windmill-api/windmill_api/models/app_history.py deleted file mode 100644 index 2e701a2e75..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_history.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="AppHistory") - - -@_attrs_define -class AppHistory: - """ - Attributes: - version (int): - deployment_msg (Union[Unset, str]): - """ - - version: int - deployment_msg: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - version = self.version - deployment_msg = self.deployment_msg - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "version": version, - }) - if deployment_msg is not UNSET: - field_dict["deployment_msg"] = deployment_msg - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - version = d.pop("version") - - deployment_msg = d.pop("deployment_msg", UNSET) - - app_history = cls( - version=version, - deployment_msg=deployment_msg, - ) - - app_history.additional_properties = d - return app_history - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version.py b/python-client/windmill-api/windmill_api/models/app_with_last_version.py deleted file mode 100644 index 9877f6ca4b..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version.py +++ /dev/null @@ -1,174 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from ..models.app_with_last_version_execution_mode import AppWithLastVersionExecutionMode -from typing import Dict -import datetime -from dateutil.parser import isoparse - -if TYPE_CHECKING: - from ..models.app_with_last_version_policy import AppWithLastVersionPolicy - from ..models.app_with_last_version_extra_perms import AppWithLastVersionExtraPerms - - - - - -T = TypeVar("T", bound="AppWithLastVersion") - - -@_attrs_define -class AppWithLastVersion: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - versions (List[int]): - created_by (str): - created_at (datetime.datetime): - value (Any): - policy (AppWithLastVersionPolicy): - execution_mode (AppWithLastVersionExecutionMode): - extra_perms (AppWithLastVersionExtraPerms): - """ - - id: int - workspace_id: str - path: str - summary: str - versions: List[int] - created_by: str - created_at: datetime.datetime - value: Any - policy: 'AppWithLastVersionPolicy' - execution_mode: AppWithLastVersionExecutionMode - extra_perms: 'AppWithLastVersionExtraPerms' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.app_with_last_version_policy import AppWithLastVersionPolicy - from ..models.app_with_last_version_extra_perms import AppWithLastVersionExtraPerms - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - versions = self.versions - - - - - created_by = self.created_by - created_at = self.created_at.isoformat() - - value = self.value - policy = self.policy.to_dict() - - execution_mode = self.execution_mode.value - - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "versions": versions, - "created_by": created_by, - "created_at": created_at, - "value": value, - "policy": policy, - "execution_mode": execution_mode, - "extra_perms": extra_perms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.app_with_last_version_policy import AppWithLastVersionPolicy - from ..models.app_with_last_version_extra_perms import AppWithLastVersionExtraPerms - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - versions = cast(List[int], d.pop("versions")) - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - value = d.pop("value") - - policy = AppWithLastVersionPolicy.from_dict(d.pop("policy")) - - - - - execution_mode = AppWithLastVersionExecutionMode(d.pop("execution_mode")) - - - - - extra_perms = AppWithLastVersionExtraPerms.from_dict(d.pop("extra_perms")) - - - - - app_with_last_version = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - versions=versions, - created_by=created_by, - created_at=created_at, - value=value, - policy=policy, - execution_mode=execution_mode, - extra_perms=extra_perms, - ) - - app_with_last_version.additional_properties = d - return app_with_last_version - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_execution_mode.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_execution_mode.py deleted file mode 100644 index 022d902b32..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class AppWithLastVersionExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_extra_perms.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_extra_perms.py deleted file mode 100644 index 9f40d3d608..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AppWithLastVersionExtraPerms") - - -@_attrs_define -class AppWithLastVersionExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - app_with_last_version_extra_perms = cls( - ) - - - app_with_last_version_extra_perms.additional_properties = d - return app_with_last_version_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_policy.py deleted file mode 100644 index e26a7f53a9..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from ..models.app_with_last_version_policy_execution_mode import AppWithLastVersionPolicyExecutionMode -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.app_with_last_version_policy_triggerables import AppWithLastVersionPolicyTriggerables - - - - - -T = TypeVar("T", bound="AppWithLastVersionPolicy") - - -@_attrs_define -class AppWithLastVersionPolicy: - """ - Attributes: - triggerables (Union[Unset, AppWithLastVersionPolicyTriggerables]): - execution_mode (Union[Unset, AppWithLastVersionPolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'AppWithLastVersionPolicyTriggerables'] = UNSET - execution_mode: Union[Unset, AppWithLastVersionPolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.app_with_last_version_policy_triggerables import AppWithLastVersionPolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.app_with_last_version_policy_triggerables import AppWithLastVersionPolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, AppWithLastVersionPolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = AppWithLastVersionPolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, AppWithLastVersionPolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = AppWithLastVersionPolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - app_with_last_version_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - app_with_last_version_policy.additional_properties = d - return app_with_last_version_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_execution_mode.py deleted file mode 100644 index c8a25fd551..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class AppWithLastVersionPolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_triggerables.py deleted file mode 100644 index d69022a2d7..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.app_with_last_version_policy_triggerables_additional_property import AppWithLastVersionPolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="AppWithLastVersionPolicyTriggerables") - - -@_attrs_define -class AppWithLastVersionPolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'AppWithLastVersionPolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.app_with_last_version_policy_triggerables_additional_property import AppWithLastVersionPolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.app_with_last_version_policy_triggerables_additional_property import AppWithLastVersionPolicyTriggerablesAdditionalProperty - d = src_dict.copy() - app_with_last_version_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = AppWithLastVersionPolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - app_with_last_version_policy_triggerables.additional_properties = additional_properties - return app_with_last_version_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'AppWithLastVersionPolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'AppWithLastVersionPolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_triggerables_additional_property.py deleted file mode 100644 index 826797ed2a..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AppWithLastVersionPolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class AppWithLastVersionPolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - app_with_last_version_policy_triggerables_additional_property = cls( - ) - - app_with_last_version_policy_triggerables_additional_property.additional_properties = d - return app_with_last_version_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft.py deleted file mode 100644 index 73ffa5eb8c..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft.py +++ /dev/null @@ -1,192 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.app_with_last_version_w_draft_execution_mode import AppWithLastVersionWDraftExecutionMode -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.app_with_last_version_w_draft_policy import AppWithLastVersionWDraftPolicy - from ..models.app_with_last_version_w_draft_extra_perms import AppWithLastVersionWDraftExtraPerms - - - - - -T = TypeVar("T", bound="AppWithLastVersionWDraft") - - -@_attrs_define -class AppWithLastVersionWDraft: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - versions (List[int]): - created_by (str): - created_at (datetime.datetime): - value (Any): - policy (AppWithLastVersionWDraftPolicy): - execution_mode (AppWithLastVersionWDraftExecutionMode): - extra_perms (AppWithLastVersionWDraftExtraPerms): - draft_only (Union[Unset, bool]): - draft (Union[Unset, Any]): - """ - - id: int - workspace_id: str - path: str - summary: str - versions: List[int] - created_by: str - created_at: datetime.datetime - value: Any - policy: 'AppWithLastVersionWDraftPolicy' - execution_mode: AppWithLastVersionWDraftExecutionMode - extra_perms: 'AppWithLastVersionWDraftExtraPerms' - draft_only: Union[Unset, bool] = UNSET - draft: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.app_with_last_version_w_draft_policy import AppWithLastVersionWDraftPolicy - from ..models.app_with_last_version_w_draft_extra_perms import AppWithLastVersionWDraftExtraPerms - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - versions = self.versions - - - - - created_by = self.created_by - created_at = self.created_at.isoformat() - - value = self.value - policy = self.policy.to_dict() - - execution_mode = self.execution_mode.value - - extra_perms = self.extra_perms.to_dict() - - draft_only = self.draft_only - draft = self.draft - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "versions": versions, - "created_by": created_by, - "created_at": created_at, - "value": value, - "policy": policy, - "execution_mode": execution_mode, - "extra_perms": extra_perms, - }) - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if draft is not UNSET: - field_dict["draft"] = draft - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.app_with_last_version_w_draft_policy import AppWithLastVersionWDraftPolicy - from ..models.app_with_last_version_w_draft_extra_perms import AppWithLastVersionWDraftExtraPerms - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - versions = cast(List[int], d.pop("versions")) - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - value = d.pop("value") - - policy = AppWithLastVersionWDraftPolicy.from_dict(d.pop("policy")) - - - - - execution_mode = AppWithLastVersionWDraftExecutionMode(d.pop("execution_mode")) - - - - - extra_perms = AppWithLastVersionWDraftExtraPerms.from_dict(d.pop("extra_perms")) - - - - - draft_only = d.pop("draft_only", UNSET) - - draft = d.pop("draft", UNSET) - - app_with_last_version_w_draft = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - versions=versions, - created_by=created_by, - created_at=created_at, - value=value, - policy=policy, - execution_mode=execution_mode, - extra_perms=extra_perms, - draft_only=draft_only, - draft=draft, - ) - - app_with_last_version_w_draft.additional_properties = d - return app_with_last_version_w_draft - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_execution_mode.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_execution_mode.py deleted file mode 100644 index bf886c0475..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class AppWithLastVersionWDraftExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_extra_perms.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_extra_perms.py deleted file mode 100644 index a4eec6ae8e..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AppWithLastVersionWDraftExtraPerms") - - -@_attrs_define -class AppWithLastVersionWDraftExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - app_with_last_version_w_draft_extra_perms = cls( - ) - - - app_with_last_version_w_draft_extra_perms.additional_properties = d - return app_with_last_version_w_draft_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy.py deleted file mode 100644 index 008b523c32..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.app_with_last_version_w_draft_policy_execution_mode import AppWithLastVersionWDraftPolicyExecutionMode -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.app_with_last_version_w_draft_policy_triggerables import AppWithLastVersionWDraftPolicyTriggerables - - - - - -T = TypeVar("T", bound="AppWithLastVersionWDraftPolicy") - - -@_attrs_define -class AppWithLastVersionWDraftPolicy: - """ - Attributes: - triggerables (Union[Unset, AppWithLastVersionWDraftPolicyTriggerables]): - execution_mode (Union[Unset, AppWithLastVersionWDraftPolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'AppWithLastVersionWDraftPolicyTriggerables'] = UNSET - execution_mode: Union[Unset, AppWithLastVersionWDraftPolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.app_with_last_version_w_draft_policy_triggerables import AppWithLastVersionWDraftPolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.app_with_last_version_w_draft_policy_triggerables import AppWithLastVersionWDraftPolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, AppWithLastVersionWDraftPolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = AppWithLastVersionWDraftPolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, AppWithLastVersionWDraftPolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = AppWithLastVersionWDraftPolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - app_with_last_version_w_draft_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - app_with_last_version_w_draft_policy.additional_properties = d - return app_with_last_version_w_draft_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_execution_mode.py deleted file mode 100644 index eedd2fc049..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class AppWithLastVersionWDraftPolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_triggerables.py deleted file mode 100644 index 3c833a454e..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.app_with_last_version_w_draft_policy_triggerables_additional_property import AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="AppWithLastVersionWDraftPolicyTriggerables") - - -@_attrs_define -class AppWithLastVersionWDraftPolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.app_with_last_version_w_draft_policy_triggerables_additional_property import AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.app_with_last_version_w_draft_policy_triggerables_additional_property import AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty - d = src_dict.copy() - app_with_last_version_w_draft_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - app_with_last_version_w_draft_policy_triggerables.additional_properties = additional_properties - return app_with_last_version_w_draft_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_triggerables_additional_property.py deleted file mode 100644 index 3468b47c23..0000000000 --- a/python-client/windmill-api/windmill_api/models/app_with_last_version_w_draft_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class AppWithLastVersionWDraftPolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - app_with_last_version_w_draft_policy_triggerables_additional_property = cls( - ) - - app_with_last_version_w_draft_policy_triggerables_additional_property.additional_properties = d - return app_with_last_version_w_draft_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/archive_flow_by_path_json_body.py b/python-client/windmill-api/windmill_api/models/archive_flow_by_path_json_body.py deleted file mode 100644 index 85e5b65c65..0000000000 --- a/python-client/windmill-api/windmill_api/models/archive_flow_by_path_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ArchiveFlowByPathJsonBody") - - -@_attrs_define -class ArchiveFlowByPathJsonBody: - """ - Attributes: - archived (Union[Unset, bool]): - """ - - archived: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - archived = self.archived - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if archived is not UNSET: - field_dict["archived"] = archived - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - archived = d.pop("archived", UNSET) - - archive_flow_by_path_json_body = cls( - archived=archived, - ) - - archive_flow_by_path_json_body.additional_properties = d - return archive_flow_by_path_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200.py b/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200.py deleted file mode 100644 index e2db8b4899..0000000000 --- a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200.py +++ /dev/null @@ -1,363 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.archive_script_by_hash_response_200_kind import ArchiveScriptByHashResponse200Kind -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset -from ..models.archive_script_by_hash_response_200_language import ArchiveScriptByHashResponse200Language - -if TYPE_CHECKING: - from ..models.archive_script_by_hash_response_200_extra_perms import ArchiveScriptByHashResponse200ExtraPerms - from ..models.archive_script_by_hash_response_200_schema import ArchiveScriptByHashResponse200Schema - - - - - -T = TypeVar("T", bound="ArchiveScriptByHashResponse200") - - -@_attrs_define -class ArchiveScriptByHashResponse200: - """ - Attributes: - hash_ (str): - path (str): - summary (str): - description (str): - content (str): - created_by (str): - created_at (datetime.datetime): - archived (bool): - deleted (bool): - is_template (bool): - extra_perms (ArchiveScriptByHashResponse200ExtraPerms): - language (ArchiveScriptByHashResponse200Language): - kind (ArchiveScriptByHashResponse200Kind): - starred (bool): - workspace_id (Union[Unset, str]): - parent_hashes (Union[Unset, List[str]]): The first element is the direct parent of the script, the second is the - parent of the first, etc - schema (Union[Unset, ArchiveScriptByHashResponse200Schema]): - lock (Union[Unset, str]): - lock_error_logs (Union[Unset, str]): - tag (Union[Unset, str]): - has_draft (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - """ - - hash_: str - path: str - summary: str - description: str - content: str - created_by: str - created_at: datetime.datetime - archived: bool - deleted: bool - is_template: bool - extra_perms: 'ArchiveScriptByHashResponse200ExtraPerms' - language: ArchiveScriptByHashResponse200Language - kind: ArchiveScriptByHashResponse200Kind - starred: bool - workspace_id: Union[Unset, str] = UNSET - parent_hashes: Union[Unset, List[str]] = UNSET - schema: Union[Unset, 'ArchiveScriptByHashResponse200Schema'] = UNSET - lock: Union[Unset, str] = UNSET - lock_error_logs: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - has_draft: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.archive_script_by_hash_response_200_extra_perms import ArchiveScriptByHashResponse200ExtraPerms - from ..models.archive_script_by_hash_response_200_schema import ArchiveScriptByHashResponse200Schema - hash_ = self.hash_ - path = self.path - summary = self.summary - description = self.description - content = self.content - created_by = self.created_by - created_at = self.created_at.isoformat() - - archived = self.archived - deleted = self.deleted - is_template = self.is_template - extra_perms = self.extra_perms.to_dict() - - language = self.language.value - - kind = self.kind.value - - starred = self.starred - workspace_id = self.workspace_id - parent_hashes: Union[Unset, List[str]] = UNSET - if not isinstance(self.parent_hashes, Unset): - parent_hashes = self.parent_hashes - - - - - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - lock = self.lock - lock_error_logs = self.lock_error_logs - tag = self.tag - has_draft = self.has_draft - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "hash": hash_, - "path": path, - "summary": summary, - "description": description, - "content": content, - "created_by": created_by, - "created_at": created_at, - "archived": archived, - "deleted": deleted, - "is_template": is_template, - "extra_perms": extra_perms, - "language": language, - "kind": kind, - "starred": starred, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_hashes is not UNSET: - field_dict["parent_hashes"] = parent_hashes - if schema is not UNSET: - field_dict["schema"] = schema - if lock is not UNSET: - field_dict["lock"] = lock - if lock_error_logs is not UNSET: - field_dict["lock_error_logs"] = lock_error_logs - if tag is not UNSET: - field_dict["tag"] = tag - if has_draft is not UNSET: - field_dict["has_draft"] = has_draft - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.archive_script_by_hash_response_200_extra_perms import ArchiveScriptByHashResponse200ExtraPerms - from ..models.archive_script_by_hash_response_200_schema import ArchiveScriptByHashResponse200Schema - d = src_dict.copy() - hash_ = d.pop("hash") - - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - archived = d.pop("archived") - - deleted = d.pop("deleted") - - is_template = d.pop("is_template") - - extra_perms = ArchiveScriptByHashResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - language = ArchiveScriptByHashResponse200Language(d.pop("language")) - - - - - kind = ArchiveScriptByHashResponse200Kind(d.pop("kind")) - - - - - starred = d.pop("starred") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_hashes = cast(List[str], d.pop("parent_hashes", UNSET)) - - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ArchiveScriptByHashResponse200Schema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ArchiveScriptByHashResponse200Schema.from_dict(_schema) - - - - - lock = d.pop("lock", UNSET) - - lock_error_logs = d.pop("lock_error_logs", UNSET) - - tag = d.pop("tag", UNSET) - - has_draft = d.pop("has_draft", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - archive_script_by_hash_response_200 = cls( - hash_=hash_, - path=path, - summary=summary, - description=description, - content=content, - created_by=created_by, - created_at=created_at, - archived=archived, - deleted=deleted, - is_template=is_template, - extra_perms=extra_perms, - language=language, - kind=kind, - starred=starred, - workspace_id=workspace_id, - parent_hashes=parent_hashes, - schema=schema, - lock=lock, - lock_error_logs=lock_error_logs, - tag=tag, - has_draft=has_draft, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - ) - - archive_script_by_hash_response_200.additional_properties = d - return archive_script_by_hash_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_extra_perms.py deleted file mode 100644 index fcdfd8b8bf..0000000000 --- a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ArchiveScriptByHashResponse200ExtraPerms") - - -@_attrs_define -class ArchiveScriptByHashResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - archive_script_by_hash_response_200_extra_perms = cls( - ) - - - archive_script_by_hash_response_200_extra_perms.additional_properties = d - return archive_script_by_hash_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_kind.py b/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_kind.py deleted file mode 100644 index 60fe628046..0000000000 --- a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class ArchiveScriptByHashResponse200Kind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_language.py b/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_language.py deleted file mode 100644 index 7336732830..0000000000 --- a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class ArchiveScriptByHashResponse200Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_schema.py b/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_schema.py deleted file mode 100644 index 90c73499c4..0000000000 --- a/python-client/windmill-api/windmill_api/models/archive_script_by_hash_response_200_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ArchiveScriptByHashResponse200Schema") - - -@_attrs_define -class ArchiveScriptByHashResponse200Schema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - archive_script_by_hash_response_200_schema = cls( - ) - - archive_script_by_hash_response_200_schema.additional_properties = d - return archive_script_by_hash_response_200_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/audit_log.py b/python-client/windmill-api/windmill_api/models/audit_log.py deleted file mode 100644 index 64d78a7254..0000000000 --- a/python-client/windmill-api/windmill_api/models/audit_log.py +++ /dev/null @@ -1,149 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from ..models.audit_log_operation import AuditLogOperation -from dateutil.parser import isoparse -from ..types import UNSET, Unset -from ..models.audit_log_action_kind import AuditLogActionKind - -if TYPE_CHECKING: - from ..models.audit_log_parameters import AuditLogParameters - - - - - -T = TypeVar("T", bound="AuditLog") - - -@_attrs_define -class AuditLog: - """ - Attributes: - id (int): - timestamp (datetime.datetime): - username (str): - operation (AuditLogOperation): - action_kind (AuditLogActionKind): - resource (Union[Unset, str]): - parameters (Union[Unset, AuditLogParameters]): - """ - - id: int - timestamp: datetime.datetime - username: str - operation: AuditLogOperation - action_kind: AuditLogActionKind - resource: Union[Unset, str] = UNSET - parameters: Union[Unset, 'AuditLogParameters'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.audit_log_parameters import AuditLogParameters - id = self.id - timestamp = self.timestamp.isoformat() - - username = self.username - operation = self.operation.value - - action_kind = self.action_kind.value - - resource = self.resource - parameters: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.parameters, Unset): - parameters = self.parameters.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "timestamp": timestamp, - "username": username, - "operation": operation, - "action_kind": action_kind, - }) - if resource is not UNSET: - field_dict["resource"] = resource - if parameters is not UNSET: - field_dict["parameters"] = parameters - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.audit_log_parameters import AuditLogParameters - d = src_dict.copy() - id = d.pop("id") - - timestamp = isoparse(d.pop("timestamp")) - - - - - username = d.pop("username") - - operation = AuditLogOperation(d.pop("operation")) - - - - - action_kind = AuditLogActionKind(d.pop("action_kind")) - - - - - resource = d.pop("resource", UNSET) - - _parameters = d.pop("parameters", UNSET) - parameters: Union[Unset, AuditLogParameters] - if isinstance(_parameters, Unset): - parameters = UNSET - else: - parameters = AuditLogParameters.from_dict(_parameters) - - - - - audit_log = cls( - id=id, - timestamp=timestamp, - username=username, - operation=operation, - action_kind=action_kind, - resource=resource, - parameters=parameters, - ) - - audit_log.additional_properties = d - return audit_log - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/audit_log_action_kind.py b/python-client/windmill-api/windmill_api/models/audit_log_action_kind.py deleted file mode 100644 index 693ce2ba1e..0000000000 --- a/python-client/windmill-api/windmill_api/models/audit_log_action_kind.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class AuditLogActionKind(str, Enum): - CREATED = "Created" - DELETE = "Delete" - EXECUTE = "Execute" - UPDATED = "Updated" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/audit_log_operation.py b/python-client/windmill-api/windmill_api/models/audit_log_operation.py deleted file mode 100644 index f501228720..0000000000 --- a/python-client/windmill-api/windmill_api/models/audit_log_operation.py +++ /dev/null @@ -1,89 +0,0 @@ -from enum import Enum - -class AuditLogOperation(str, Enum): - ACCOUNT_DELETE = "account.delete" - APPS_CREATE = "apps.create" - APPS_DELETE = "apps.delete" - APPS_UPDATE = "apps.update" - FLOWS_ARCHIVE = "flows.archive" - FLOWS_CREATE = "flows.create" - FLOWS_DELETE = "flows.delete" - FLOWS_UPDATE = "flows.update" - FOLDER_ADD_OWNER = "folder.add_owner" - FOLDER_CREATE = "folder.create" - FOLDER_DELETE = "folder.delete" - FOLDER_REMOVE_OWNER = "folder.remove_owner" - FOLDER_UPDATE = "folder.update" - GROUP_ADDUSER = "group.adduser" - GROUP_CREATE = "group.create" - GROUP_DELETE = "group.delete" - GROUP_EDIT = "group.edit" - GROUP_REMOVEUSER = "group.removeuser" - IGROUP_ADDUSER = "igroup.adduser" - IGROUP_CREATE = "igroup.create" - IGROUP_DELETE = "igroup.delete" - IGROUP_REMOVEUSER = "igroup.removeuser" - JOBS = "jobs" - JOBS_CANCEL = "jobs.cancel" - JOBS_DELETE = "jobs.delete" - JOBS_DISAPPROVAL = "jobs.disapproval" - JOBS_FLOW_DEPENDENCIES = "jobs.flow_dependencies" - JOBS_FORCE_CANCEL = "jobs.force_cancel" - JOBS_RUN = "jobs.run" - JOBS_RUN_DEPENDENCIES = "jobs.run.dependencies" - JOBS_RUN_FLOW = "jobs.run.flow" - JOBS_RUN_FLOW_PREVIEW = "jobs.run.flow_preview" - JOBS_RUN_IDENTITY = "jobs.run.identity" - JOBS_RUN_NOOP = "jobs.run.noop" - JOBS_RUN_PREVIEW = "jobs.run.preview" - JOBS_RUN_SCRIPT = "jobs.run.script" - JOBS_RUN_SCRIPT_HUB = "jobs.run.script_hub" - OAUTH_LOGIN = "oauth.login" - OAUTH_SIGNUP = "oauth.signup" - OPENAI_REQUEST = "openai.request" - RESOURCES_CREATE = "resources.create" - RESOURCES_DELETE = "resources.delete" - RESOURCES_UPDATE = "resources.update" - RESOURCE_TYPES_CREATE = "resource_types.create" - RESOURCE_TYPES_DELETE = "resource_types.delete" - RESOURCE_TYPES_UPDATE = "resource_types.update" - SCHEDULE_CREATE = "schedule.create" - SCHEDULE_DELETE = "schedule.delete" - SCHEDULE_EDIT = "schedule.edit" - SCHEDULE_SETENABLED = "schedule.setenabled" - SCRIPTS_ARCHIVE = "scripts.archive" - SCRIPTS_CREATE = "scripts.create" - SCRIPTS_DELETE = "scripts.delete" - SCRIPTS_UPDATE = "scripts.update" - USERS_ACCEPT_INVITE = "users.accept_invite" - USERS_ADD_GLOBAL = "users.add_global" - USERS_ADD_TO_WORKSPACE = "users.add_to_workspace" - USERS_CREATE = "users.create" - USERS_DECLINE_INVITE = "users.decline_invite" - USERS_DELETE = "users.delete" - USERS_IMPERSONATE = "users.impersonate" - USERS_LEAVE_WORKSPACE = "users.leave_workspace" - USERS_LOGIN = "users.login" - USERS_LOGOUT = "users.logout" - USERS_SETPASSWORD = "users.setpassword" - USERS_TOKEN_CREATE = "users.token.create" - USERS_TOKEN_DELETE = "users.token.delete" - USERS_UPDATE = "users.update" - VARIABLES_CREATE = "variables.create" - VARIABLES_DECRYPT_SECRET = "variables.decrypt_secret" - VARIABLES_DELETE = "variables.delete" - VARIABLES_UPDATE = "variables.update" - WORKSPACES_ARCHIVE = "workspaces.archive" - WORKSPACES_CREATE = "workspaces.create" - WORKSPACES_DELETE = "workspaces.delete" - WORKSPACES_EDIT_AUTO_INVITE_DOMAIN = "workspaces.edit_auto_invite_domain" - WORKSPACES_EDIT_COMMAND_SCRIPT = "workspaces.edit_command_script" - WORKSPACES_EDIT_COPILOT_CONFIG = "workspaces.edit_copilot_config" - WORKSPACES_EDIT_DEPLOY_TO = "workspaces.edit_deploy_to" - WORKSPACES_EDIT_ERROR_HANDLER = "workspaces.edit_error_handler" - WORKSPACES_EDIT_WEBHOOK = "workspaces.edit_webhook" - WORKSPACES_UNARCHIVE = "workspaces.unarchive" - WORKSPACES_UPDATE = "workspaces.update" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/audit_log_parameters.py b/python-client/windmill-api/windmill_api/models/audit_log_parameters.py deleted file mode 100644 index f553acb8cc..0000000000 --- a/python-client/windmill-api/windmill_api/models/audit_log_parameters.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="AuditLogParameters") - - -@_attrs_define -class AuditLogParameters: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - audit_log_parameters = cls( - ) - - audit_log_parameters.additional_properties = d - return audit_log_parameters - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all.py b/python-client/windmill-api/windmill_api/models/branch_all.py deleted file mode 100644 index 7f0bb72f82..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all.py +++ /dev/null @@ -1,115 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset -from ..models.branch_all_type import BranchAllType - -if TYPE_CHECKING: - from ..models.branch_all_branches_item import BranchAllBranchesItem - - - - - -T = TypeVar("T", bound="BranchAll") - - -@_attrs_define -class BranchAll: - """ - Attributes: - branches (List['BranchAllBranchesItem']): - type (BranchAllType): - parallel (Union[Unset, bool]): - """ - - branches: List['BranchAllBranchesItem'] - type: BranchAllType - parallel: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_all_branches_item import BranchAllBranchesItem - branches = [] - for branches_item_data in self.branches: - branches_item = branches_item_data.to_dict() - - branches.append(branches_item) - - - - - type = self.type.value - - parallel = self.parallel - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branches": branches, - "type": type, - }) - if parallel is not UNSET: - field_dict["parallel"] = parallel - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_all_branches_item import BranchAllBranchesItem - d = src_dict.copy() - branches = [] - _branches = d.pop("branches") - for branches_item_data in (_branches): - branches_item = BranchAllBranchesItem.from_dict(branches_item_data) - - - - branches.append(branches_item) - - - type = BranchAllType(d.pop("type")) - - - - - parallel = d.pop("parallel", UNSET) - - branch_all = cls( - branches=branches, - type=type, - parallel=parallel, - ) - - branch_all.additional_properties = d - return branch_all - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item.py deleted file mode 100644 index 3743de68f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item.py +++ /dev/null @@ -1,111 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_all_branches_item_modules_item import BranchAllBranchesItemModulesItem - - - - - -T = TypeVar("T", bound="BranchAllBranchesItem") - - -@_attrs_define -class BranchAllBranchesItem: - """ - Attributes: - modules (List['BranchAllBranchesItemModulesItem']): - summary (Union[Unset, str]): - skip_failure (Union[Unset, bool]): - """ - - modules: List['BranchAllBranchesItemModulesItem'] - summary: Union[Unset, str] = UNSET - skip_failure: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_all_branches_item_modules_item import BranchAllBranchesItemModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - summary = self.summary - skip_failure = self.skip_failure - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if summary is not UNSET: - field_dict["summary"] = summary - if skip_failure is not UNSET: - field_dict["skip_failure"] = skip_failure - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_all_branches_item_modules_item import BranchAllBranchesItemModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = BranchAllBranchesItemModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - summary = d.pop("summary", UNSET) - - skip_failure = d.pop("skip_failure", UNSET) - - branch_all_branches_item = cls( - modules=modules, - summary=summary, - skip_failure=skip_failure, - ) - - branch_all_branches_item.additional_properties = d - return branch_all_branches_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item.py deleted file mode 100644 index 084a559040..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_all_branches_item_modules_item_sleep_type_1 import BranchAllBranchesItemModulesItemSleepType1 - from ..models.branch_all_branches_item_modules_item_stop_after_if import BranchAllBranchesItemModulesItemStopAfterIf - from ..models.branch_all_branches_item_modules_item_retry import BranchAllBranchesItemModulesItemRetry - from ..models.branch_all_branches_item_modules_item_mock import BranchAllBranchesItemModulesItemMock - from ..models.branch_all_branches_item_modules_item_sleep_type_0 import BranchAllBranchesItemModulesItemSleepType0 - from ..models.branch_all_branches_item_modules_item_suspend import BranchAllBranchesItemModulesItemSuspend - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItem") - - -@_attrs_define -class BranchAllBranchesItemModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, BranchAllBranchesItemModulesItemStopAfterIf]): - sleep (Union['BranchAllBranchesItemModulesItemSleepType0', 'BranchAllBranchesItemModulesItemSleepType1', - Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, BranchAllBranchesItemModulesItemMock]): - suspend (Union[Unset, BranchAllBranchesItemModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, BranchAllBranchesItemModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'BranchAllBranchesItemModulesItemStopAfterIf'] = UNSET - sleep: Union['BranchAllBranchesItemModulesItemSleepType0', 'BranchAllBranchesItemModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'BranchAllBranchesItemModulesItemMock'] = UNSET - suspend: Union[Unset, 'BranchAllBranchesItemModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'BranchAllBranchesItemModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_all_branches_item_modules_item_sleep_type_1 import BranchAllBranchesItemModulesItemSleepType1 - from ..models.branch_all_branches_item_modules_item_stop_after_if import BranchAllBranchesItemModulesItemStopAfterIf - from ..models.branch_all_branches_item_modules_item_retry import BranchAllBranchesItemModulesItemRetry - from ..models.branch_all_branches_item_modules_item_mock import BranchAllBranchesItemModulesItemMock - from ..models.branch_all_branches_item_modules_item_sleep_type_0 import BranchAllBranchesItemModulesItemSleepType0 - from ..models.branch_all_branches_item_modules_item_suspend import BranchAllBranchesItemModulesItemSuspend - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, BranchAllBranchesItemModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_all_branches_item_modules_item_sleep_type_1 import BranchAllBranchesItemModulesItemSleepType1 - from ..models.branch_all_branches_item_modules_item_stop_after_if import BranchAllBranchesItemModulesItemStopAfterIf - from ..models.branch_all_branches_item_modules_item_retry import BranchAllBranchesItemModulesItemRetry - from ..models.branch_all_branches_item_modules_item_mock import BranchAllBranchesItemModulesItemMock - from ..models.branch_all_branches_item_modules_item_sleep_type_0 import BranchAllBranchesItemModulesItemSleepType0 - from ..models.branch_all_branches_item_modules_item_suspend import BranchAllBranchesItemModulesItemSuspend - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, BranchAllBranchesItemModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = BranchAllBranchesItemModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['BranchAllBranchesItemModulesItemSleepType0', 'BranchAllBranchesItemModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, BranchAllBranchesItemModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = BranchAllBranchesItemModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, BranchAllBranchesItemModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = BranchAllBranchesItemModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, BranchAllBranchesItemModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = BranchAllBranchesItemModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, BranchAllBranchesItemModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = BranchAllBranchesItemModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, BranchAllBranchesItemModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = BranchAllBranchesItemModulesItemRetry.from_dict(_retry) - - - - - branch_all_branches_item_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - branch_all_branches_item_modules_item.additional_properties = d - return branch_all_branches_item_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_mock.py deleted file mode 100644 index d117f9f021..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemMock") - - -@_attrs_define -class BranchAllBranchesItemModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - branch_all_branches_item_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - branch_all_branches_item_modules_item_mock.additional_properties = d - return branch_all_branches_item_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry.py deleted file mode 100644 index d56f0f8b8a..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.branch_all_branches_item_modules_item_retry_constant import BranchAllBranchesItemModulesItemRetryConstant - from ..models.branch_all_branches_item_modules_item_retry_exponential import BranchAllBranchesItemModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemRetry") - - -@_attrs_define -class BranchAllBranchesItemModulesItemRetry: - """ - Attributes: - constant (Union[Unset, BranchAllBranchesItemModulesItemRetryConstant]): - exponential (Union[Unset, BranchAllBranchesItemModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'BranchAllBranchesItemModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'BranchAllBranchesItemModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_all_branches_item_modules_item_retry_constant import BranchAllBranchesItemModulesItemRetryConstant - from ..models.branch_all_branches_item_modules_item_retry_exponential import BranchAllBranchesItemModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_all_branches_item_modules_item_retry_constant import BranchAllBranchesItemModulesItemRetryConstant - from ..models.branch_all_branches_item_modules_item_retry_exponential import BranchAllBranchesItemModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, BranchAllBranchesItemModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = BranchAllBranchesItemModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, BranchAllBranchesItemModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = BranchAllBranchesItemModulesItemRetryExponential.from_dict(_exponential) - - - - - branch_all_branches_item_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - branch_all_branches_item_modules_item_retry.additional_properties = d - return branch_all_branches_item_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry_constant.py deleted file mode 100644 index 16442bf47e..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemRetryConstant") - - -@_attrs_define -class BranchAllBranchesItemModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - branch_all_branches_item_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - branch_all_branches_item_modules_item_retry_constant.additional_properties = d - return branch_all_branches_item_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry_exponential.py deleted file mode 100644 index 3b2ebbb05b..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemRetryExponential") - - -@_attrs_define -class BranchAllBranchesItemModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - branch_all_branches_item_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - branch_all_branches_item_modules_item_retry_exponential.additional_properties = d - return branch_all_branches_item_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_0.py deleted file mode 100644 index 0b2d92e4cf..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.branch_all_branches_item_modules_item_sleep_type_0_type import BranchAllBranchesItemModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemSleepType0") - - -@_attrs_define -class BranchAllBranchesItemModulesItemSleepType0: - """ - Attributes: - type (BranchAllBranchesItemModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: BranchAllBranchesItemModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = BranchAllBranchesItemModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - branch_all_branches_item_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - branch_all_branches_item_modules_item_sleep_type_0.additional_properties = d - return branch_all_branches_item_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_0_type.py deleted file mode 100644 index 2e03e7fb56..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchAllBranchesItemModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_1.py deleted file mode 100644 index 456a0f4150..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.branch_all_branches_item_modules_item_sleep_type_1_type import BranchAllBranchesItemModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemSleepType1") - - -@_attrs_define -class BranchAllBranchesItemModulesItemSleepType1: - """ - Attributes: - expr (str): - type (BranchAllBranchesItemModulesItemSleepType1Type): - """ - - expr: str - type: BranchAllBranchesItemModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = BranchAllBranchesItemModulesItemSleepType1Type(d.pop("type")) - - - - - branch_all_branches_item_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - branch_all_branches_item_modules_item_sleep_type_1.additional_properties = d - return branch_all_branches_item_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_1_type.py deleted file mode 100644 index 5000229d83..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchAllBranchesItemModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_stop_after_if.py deleted file mode 100644 index 36f860367b..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemStopAfterIf") - - -@_attrs_define -class BranchAllBranchesItemModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - branch_all_branches_item_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - branch_all_branches_item_modules_item_stop_after_if.additional_properties = d - return branch_all_branches_item_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend.py deleted file mode 100644 index 0d4930c1d7..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_1 import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1 - from ..models.branch_all_branches_item_modules_item_suspend_resume_form import BranchAllBranchesItemModulesItemSuspendResumeForm - from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_0 import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemSuspend") - - -@_attrs_define -class BranchAllBranchesItemModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, BranchAllBranchesItemModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0', - 'BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'BranchAllBranchesItemModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0', 'BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_1 import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1 - from ..models.branch_all_branches_item_modules_item_suspend_resume_form import BranchAllBranchesItemModulesItemSuspendResumeForm - from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_0 import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_1 import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1 - from ..models.branch_all_branches_item_modules_item_suspend_resume_form import BranchAllBranchesItemModulesItemSuspendResumeForm - from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_0 import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, BranchAllBranchesItemModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = BranchAllBranchesItemModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0', 'BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - branch_all_branches_item_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - branch_all_branches_item_modules_item_suspend.additional_properties = d - return branch_all_branches_item_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_resume_form.py deleted file mode 100644 index a0478b8a27..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.branch_all_branches_item_modules_item_suspend_resume_form_schema import BranchAllBranchesItemModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemSuspendResumeForm") - - -@_attrs_define -class BranchAllBranchesItemModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, BranchAllBranchesItemModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'BranchAllBranchesItemModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_all_branches_item_modules_item_suspend_resume_form_schema import BranchAllBranchesItemModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_all_branches_item_modules_item_suspend_resume_form_schema import BranchAllBranchesItemModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, BranchAllBranchesItemModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = BranchAllBranchesItemModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - branch_all_branches_item_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - branch_all_branches_item_modules_item_suspend_resume_form.additional_properties = d - return branch_all_branches_item_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 35dba1286a..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class BranchAllBranchesItemModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch_all_branches_item_modules_item_suspend_resume_form_schema = cls( - ) - - branch_all_branches_item_modules_item_suspend_resume_form_schema.additional_properties = d - return branch_all_branches_item_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 2b1775f6eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_0_type import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - branch_all_branches_item_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - branch_all_branches_item_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return branch_all_branches_item_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index f838a78a29..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index c2bef057c6..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.branch_all_branches_item_modules_item_suspend_user_groups_required_type_1_type import BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - branch_all_branches_item_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - branch_all_branches_item_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return branch_all_branches_item_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 130b176876..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_branches_item_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchAllBranchesItemModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_all_type.py b/python-client/windmill-api/windmill_api/models/branch_all_type.py deleted file mode 100644 index d20f396dac..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_all_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchAllType(str, Enum): - BRANCHALL = "branchall" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one.py b/python-client/windmill-api/windmill_api/models/branch_one.py deleted file mode 100644 index f5b05a517a..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one.py +++ /dev/null @@ -1,131 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.branch_one_type import BranchOneType -from typing import cast -from typing import cast, List -from typing import Dict - -if TYPE_CHECKING: - from ..models.branch_one_branches_item import BranchOneBranchesItem - from ..models.branch_one_default_item import BranchOneDefaultItem - - - - - -T = TypeVar("T", bound="BranchOne") - - -@_attrs_define -class BranchOne: - """ - Attributes: - branches (List['BranchOneBranchesItem']): - default (List['BranchOneDefaultItem']): - type (BranchOneType): - """ - - branches: List['BranchOneBranchesItem'] - default: List['BranchOneDefaultItem'] - type: BranchOneType - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_branches_item import BranchOneBranchesItem - from ..models.branch_one_default_item import BranchOneDefaultItem - branches = [] - for branches_item_data in self.branches: - branches_item = branches_item_data.to_dict() - - branches.append(branches_item) - - - - - default = [] - for default_item_data in self.default: - default_item = default_item_data.to_dict() - - default.append(default_item) - - - - - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branches": branches, - "default": default, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_branches_item import BranchOneBranchesItem - from ..models.branch_one_default_item import BranchOneDefaultItem - d = src_dict.copy() - branches = [] - _branches = d.pop("branches") - for branches_item_data in (_branches): - branches_item = BranchOneBranchesItem.from_dict(branches_item_data) - - - - branches.append(branches_item) - - - default = [] - _default = d.pop("default") - for default_item_data in (_default): - default_item = BranchOneDefaultItem.from_dict(default_item_data) - - - - default.append(default_item) - - - type = BranchOneType(d.pop("type")) - - - - - branch_one = cls( - branches=branches, - default=default, - type=type, - ) - - branch_one.additional_properties = d - return branch_one - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item.py deleted file mode 100644 index 34c49c8e6a..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item.py +++ /dev/null @@ -1,110 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_one_branches_item_modules_item import BranchOneBranchesItemModulesItem - - - - - -T = TypeVar("T", bound="BranchOneBranchesItem") - - -@_attrs_define -class BranchOneBranchesItem: - """ - Attributes: - expr (str): - modules (List['BranchOneBranchesItemModulesItem']): - summary (Union[Unset, str]): - """ - - expr: str - modules: List['BranchOneBranchesItemModulesItem'] - summary: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_branches_item_modules_item import BranchOneBranchesItemModulesItem - expr = self.expr - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - summary = self.summary - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "modules": modules, - }) - if summary is not UNSET: - field_dict["summary"] = summary - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_branches_item_modules_item import BranchOneBranchesItemModulesItem - d = src_dict.copy() - expr = d.pop("expr") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = BranchOneBranchesItemModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - summary = d.pop("summary", UNSET) - - branch_one_branches_item = cls( - expr=expr, - modules=modules, - summary=summary, - ) - - branch_one_branches_item.additional_properties = d - return branch_one_branches_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item.py deleted file mode 100644 index 356fe142e8..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_one_branches_item_modules_item_retry import BranchOneBranchesItemModulesItemRetry - from ..models.branch_one_branches_item_modules_item_sleep_type_0 import BranchOneBranchesItemModulesItemSleepType0 - from ..models.branch_one_branches_item_modules_item_stop_after_if import BranchOneBranchesItemModulesItemStopAfterIf - from ..models.branch_one_branches_item_modules_item_suspend import BranchOneBranchesItemModulesItemSuspend - from ..models.branch_one_branches_item_modules_item_mock import BranchOneBranchesItemModulesItemMock - from ..models.branch_one_branches_item_modules_item_sleep_type_1 import BranchOneBranchesItemModulesItemSleepType1 - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItem") - - -@_attrs_define -class BranchOneBranchesItemModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, BranchOneBranchesItemModulesItemStopAfterIf]): - sleep (Union['BranchOneBranchesItemModulesItemSleepType0', 'BranchOneBranchesItemModulesItemSleepType1', - Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, BranchOneBranchesItemModulesItemMock]): - suspend (Union[Unset, BranchOneBranchesItemModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, BranchOneBranchesItemModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'BranchOneBranchesItemModulesItemStopAfterIf'] = UNSET - sleep: Union['BranchOneBranchesItemModulesItemSleepType0', 'BranchOneBranchesItemModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'BranchOneBranchesItemModulesItemMock'] = UNSET - suspend: Union[Unset, 'BranchOneBranchesItemModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'BranchOneBranchesItemModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_branches_item_modules_item_retry import BranchOneBranchesItemModulesItemRetry - from ..models.branch_one_branches_item_modules_item_sleep_type_0 import BranchOneBranchesItemModulesItemSleepType0 - from ..models.branch_one_branches_item_modules_item_stop_after_if import BranchOneBranchesItemModulesItemStopAfterIf - from ..models.branch_one_branches_item_modules_item_suspend import BranchOneBranchesItemModulesItemSuspend - from ..models.branch_one_branches_item_modules_item_mock import BranchOneBranchesItemModulesItemMock - from ..models.branch_one_branches_item_modules_item_sleep_type_1 import BranchOneBranchesItemModulesItemSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, BranchOneBranchesItemModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_branches_item_modules_item_retry import BranchOneBranchesItemModulesItemRetry - from ..models.branch_one_branches_item_modules_item_sleep_type_0 import BranchOneBranchesItemModulesItemSleepType0 - from ..models.branch_one_branches_item_modules_item_stop_after_if import BranchOneBranchesItemModulesItemStopAfterIf - from ..models.branch_one_branches_item_modules_item_suspend import BranchOneBranchesItemModulesItemSuspend - from ..models.branch_one_branches_item_modules_item_mock import BranchOneBranchesItemModulesItemMock - from ..models.branch_one_branches_item_modules_item_sleep_type_1 import BranchOneBranchesItemModulesItemSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, BranchOneBranchesItemModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = BranchOneBranchesItemModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['BranchOneBranchesItemModulesItemSleepType0', 'BranchOneBranchesItemModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, BranchOneBranchesItemModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = BranchOneBranchesItemModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, BranchOneBranchesItemModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = BranchOneBranchesItemModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, BranchOneBranchesItemModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = BranchOneBranchesItemModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, BranchOneBranchesItemModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = BranchOneBranchesItemModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, BranchOneBranchesItemModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = BranchOneBranchesItemModulesItemRetry.from_dict(_retry) - - - - - branch_one_branches_item_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - branch_one_branches_item_modules_item.additional_properties = d - return branch_one_branches_item_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_mock.py deleted file mode 100644 index 2f6973be45..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemMock") - - -@_attrs_define -class BranchOneBranchesItemModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - branch_one_branches_item_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - branch_one_branches_item_modules_item_mock.additional_properties = d - return branch_one_branches_item_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry.py deleted file mode 100644 index c40697339f..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.branch_one_branches_item_modules_item_retry_constant import BranchOneBranchesItemModulesItemRetryConstant - from ..models.branch_one_branches_item_modules_item_retry_exponential import BranchOneBranchesItemModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemRetry") - - -@_attrs_define -class BranchOneBranchesItemModulesItemRetry: - """ - Attributes: - constant (Union[Unset, BranchOneBranchesItemModulesItemRetryConstant]): - exponential (Union[Unset, BranchOneBranchesItemModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'BranchOneBranchesItemModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'BranchOneBranchesItemModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_branches_item_modules_item_retry_constant import BranchOneBranchesItemModulesItemRetryConstant - from ..models.branch_one_branches_item_modules_item_retry_exponential import BranchOneBranchesItemModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_branches_item_modules_item_retry_constant import BranchOneBranchesItemModulesItemRetryConstant - from ..models.branch_one_branches_item_modules_item_retry_exponential import BranchOneBranchesItemModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, BranchOneBranchesItemModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = BranchOneBranchesItemModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, BranchOneBranchesItemModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = BranchOneBranchesItemModulesItemRetryExponential.from_dict(_exponential) - - - - - branch_one_branches_item_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - branch_one_branches_item_modules_item_retry.additional_properties = d - return branch_one_branches_item_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry_constant.py deleted file mode 100644 index 8c972b12d0..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemRetryConstant") - - -@_attrs_define -class BranchOneBranchesItemModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - branch_one_branches_item_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - branch_one_branches_item_modules_item_retry_constant.additional_properties = d - return branch_one_branches_item_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry_exponential.py deleted file mode 100644 index a974acf721..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemRetryExponential") - - -@_attrs_define -class BranchOneBranchesItemModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - branch_one_branches_item_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - branch_one_branches_item_modules_item_retry_exponential.additional_properties = d - return branch_one_branches_item_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_0.py deleted file mode 100644 index 10fa92041a..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.branch_one_branches_item_modules_item_sleep_type_0_type import BranchOneBranchesItemModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemSleepType0") - - -@_attrs_define -class BranchOneBranchesItemModulesItemSleepType0: - """ - Attributes: - type (BranchOneBranchesItemModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: BranchOneBranchesItemModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = BranchOneBranchesItemModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - branch_one_branches_item_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - branch_one_branches_item_modules_item_sleep_type_0.additional_properties = d - return branch_one_branches_item_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_0_type.py deleted file mode 100644 index fd2c1da269..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneBranchesItemModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_1.py deleted file mode 100644 index 7a414d0685..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.branch_one_branches_item_modules_item_sleep_type_1_type import BranchOneBranchesItemModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemSleepType1") - - -@_attrs_define -class BranchOneBranchesItemModulesItemSleepType1: - """ - Attributes: - expr (str): - type (BranchOneBranchesItemModulesItemSleepType1Type): - """ - - expr: str - type: BranchOneBranchesItemModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = BranchOneBranchesItemModulesItemSleepType1Type(d.pop("type")) - - - - - branch_one_branches_item_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - branch_one_branches_item_modules_item_sleep_type_1.additional_properties = d - return branch_one_branches_item_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_1_type.py deleted file mode 100644 index 1282fa1114..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneBranchesItemModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_stop_after_if.py deleted file mode 100644 index f9b29cfefe..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemStopAfterIf") - - -@_attrs_define -class BranchOneBranchesItemModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - branch_one_branches_item_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - branch_one_branches_item_modules_item_stop_after_if.additional_properties = d - return branch_one_branches_item_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend.py deleted file mode 100644 index 94232512ea..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_one_branches_item_modules_item_suspend_resume_form import BranchOneBranchesItemModulesItemSuspendResumeForm - from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_0 import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0 - from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_1 import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemSuspend") - - -@_attrs_define -class BranchOneBranchesItemModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, BranchOneBranchesItemModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0', - 'BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'BranchOneBranchesItemModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0', 'BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_branches_item_modules_item_suspend_resume_form import BranchOneBranchesItemModulesItemSuspendResumeForm - from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_0 import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0 - from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_1 import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_branches_item_modules_item_suspend_resume_form import BranchOneBranchesItemModulesItemSuspendResumeForm - from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_0 import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0 - from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_1 import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, BranchOneBranchesItemModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = BranchOneBranchesItemModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0', 'BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - branch_one_branches_item_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - branch_one_branches_item_modules_item_suspend.additional_properties = d - return branch_one_branches_item_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_resume_form.py deleted file mode 100644 index 61f0a65e9c..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.branch_one_branches_item_modules_item_suspend_resume_form_schema import BranchOneBranchesItemModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemSuspendResumeForm") - - -@_attrs_define -class BranchOneBranchesItemModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, BranchOneBranchesItemModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'BranchOneBranchesItemModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_branches_item_modules_item_suspend_resume_form_schema import BranchOneBranchesItemModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_branches_item_modules_item_suspend_resume_form_schema import BranchOneBranchesItemModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, BranchOneBranchesItemModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = BranchOneBranchesItemModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - branch_one_branches_item_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - branch_one_branches_item_modules_item_suspend_resume_form.additional_properties = d - return branch_one_branches_item_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index c90e5f9127..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class BranchOneBranchesItemModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch_one_branches_item_modules_item_suspend_resume_form_schema = cls( - ) - - branch_one_branches_item_modules_item_suspend_resume_form_schema.additional_properties = d - return branch_one_branches_item_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 553a8a6d03..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_0_type import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - branch_one_branches_item_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - branch_one_branches_item_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return branch_one_branches_item_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 331c524f96..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index db9590bb96..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.branch_one_branches_item_modules_item_suspend_user_groups_required_type_1_type import BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - branch_one_branches_item_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - branch_one_branches_item_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return branch_one_branches_item_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 546b13690e..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_branches_item_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneBranchesItemModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item.py deleted file mode 100644 index dda42c6bf2..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_one_default_item_retry import BranchOneDefaultItemRetry - from ..models.branch_one_default_item_mock import BranchOneDefaultItemMock - from ..models.branch_one_default_item_suspend import BranchOneDefaultItemSuspend - from ..models.branch_one_default_item_stop_after_if import BranchOneDefaultItemStopAfterIf - from ..models.branch_one_default_item_sleep_type_1 import BranchOneDefaultItemSleepType1 - from ..models.branch_one_default_item_sleep_type_0 import BranchOneDefaultItemSleepType0 - - - - - -T = TypeVar("T", bound="BranchOneDefaultItem") - - -@_attrs_define -class BranchOneDefaultItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, BranchOneDefaultItemStopAfterIf]): - sleep (Union['BranchOneDefaultItemSleepType0', 'BranchOneDefaultItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, BranchOneDefaultItemMock]): - suspend (Union[Unset, BranchOneDefaultItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, BranchOneDefaultItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'BranchOneDefaultItemStopAfterIf'] = UNSET - sleep: Union['BranchOneDefaultItemSleepType0', 'BranchOneDefaultItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'BranchOneDefaultItemMock'] = UNSET - suspend: Union[Unset, 'BranchOneDefaultItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'BranchOneDefaultItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_default_item_retry import BranchOneDefaultItemRetry - from ..models.branch_one_default_item_mock import BranchOneDefaultItemMock - from ..models.branch_one_default_item_suspend import BranchOneDefaultItemSuspend - from ..models.branch_one_default_item_stop_after_if import BranchOneDefaultItemStopAfterIf - from ..models.branch_one_default_item_sleep_type_1 import BranchOneDefaultItemSleepType1 - from ..models.branch_one_default_item_sleep_type_0 import BranchOneDefaultItemSleepType0 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, BranchOneDefaultItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_default_item_retry import BranchOneDefaultItemRetry - from ..models.branch_one_default_item_mock import BranchOneDefaultItemMock - from ..models.branch_one_default_item_suspend import BranchOneDefaultItemSuspend - from ..models.branch_one_default_item_stop_after_if import BranchOneDefaultItemStopAfterIf - from ..models.branch_one_default_item_sleep_type_1 import BranchOneDefaultItemSleepType1 - from ..models.branch_one_default_item_sleep_type_0 import BranchOneDefaultItemSleepType0 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, BranchOneDefaultItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = BranchOneDefaultItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['BranchOneDefaultItemSleepType0', 'BranchOneDefaultItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, BranchOneDefaultItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = BranchOneDefaultItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, BranchOneDefaultItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = BranchOneDefaultItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, BranchOneDefaultItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = BranchOneDefaultItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, BranchOneDefaultItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = BranchOneDefaultItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, BranchOneDefaultItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = BranchOneDefaultItemRetry.from_dict(_retry) - - - - - branch_one_default_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - branch_one_default_item.additional_properties = d - return branch_one_default_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_mock.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_mock.py deleted file mode 100644 index 0080775463..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemMock") - - -@_attrs_define -class BranchOneDefaultItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - branch_one_default_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - branch_one_default_item_mock.additional_properties = d - return branch_one_default_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry.py deleted file mode 100644 index b7632ff904..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.branch_one_default_item_retry_constant import BranchOneDefaultItemRetryConstant - from ..models.branch_one_default_item_retry_exponential import BranchOneDefaultItemRetryExponential - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemRetry") - - -@_attrs_define -class BranchOneDefaultItemRetry: - """ - Attributes: - constant (Union[Unset, BranchOneDefaultItemRetryConstant]): - exponential (Union[Unset, BranchOneDefaultItemRetryExponential]): - """ - - constant: Union[Unset, 'BranchOneDefaultItemRetryConstant'] = UNSET - exponential: Union[Unset, 'BranchOneDefaultItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_default_item_retry_constant import BranchOneDefaultItemRetryConstant - from ..models.branch_one_default_item_retry_exponential import BranchOneDefaultItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_default_item_retry_constant import BranchOneDefaultItemRetryConstant - from ..models.branch_one_default_item_retry_exponential import BranchOneDefaultItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, BranchOneDefaultItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = BranchOneDefaultItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, BranchOneDefaultItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = BranchOneDefaultItemRetryExponential.from_dict(_exponential) - - - - - branch_one_default_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - branch_one_default_item_retry.additional_properties = d - return branch_one_default_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry_constant.py deleted file mode 100644 index a05b706328..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemRetryConstant") - - -@_attrs_define -class BranchOneDefaultItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - branch_one_default_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - branch_one_default_item_retry_constant.additional_properties = d - return branch_one_default_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry_exponential.py deleted file mode 100644 index d05d74a541..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemRetryExponential") - - -@_attrs_define -class BranchOneDefaultItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - branch_one_default_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - branch_one_default_item_retry_exponential.additional_properties = d - return branch_one_default_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_0.py deleted file mode 100644 index 3216fdf0d8..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.branch_one_default_item_sleep_type_0_type import BranchOneDefaultItemSleepType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemSleepType0") - - -@_attrs_define -class BranchOneDefaultItemSleepType0: - """ - Attributes: - type (BranchOneDefaultItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: BranchOneDefaultItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = BranchOneDefaultItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - branch_one_default_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - branch_one_default_item_sleep_type_0.additional_properties = d - return branch_one_default_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_0_type.py deleted file mode 100644 index 00fbebf6f2..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneDefaultItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_1.py deleted file mode 100644 index 098966dcb5..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.branch_one_default_item_sleep_type_1_type import BranchOneDefaultItemSleepType1Type - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemSleepType1") - - -@_attrs_define -class BranchOneDefaultItemSleepType1: - """ - Attributes: - expr (str): - type (BranchOneDefaultItemSleepType1Type): - """ - - expr: str - type: BranchOneDefaultItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = BranchOneDefaultItemSleepType1Type(d.pop("type")) - - - - - branch_one_default_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - branch_one_default_item_sleep_type_1.additional_properties = d - return branch_one_default_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_1_type.py deleted file mode 100644 index dc66fa7c9f..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneDefaultItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_stop_after_if.py deleted file mode 100644 index 943e78e9e5..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemStopAfterIf") - - -@_attrs_define -class BranchOneDefaultItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - branch_one_default_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - branch_one_default_item_stop_after_if.additional_properties = d - return branch_one_default_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend.py deleted file mode 100644 index 3c7147e91e..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.branch_one_default_item_suspend_user_groups_required_type_0 import BranchOneDefaultItemSuspendUserGroupsRequiredType0 - from ..models.branch_one_default_item_suspend_resume_form import BranchOneDefaultItemSuspendResumeForm - from ..models.branch_one_default_item_suspend_user_groups_required_type_1 import BranchOneDefaultItemSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemSuspend") - - -@_attrs_define -class BranchOneDefaultItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, BranchOneDefaultItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['BranchOneDefaultItemSuspendUserGroupsRequiredType0', - 'BranchOneDefaultItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'BranchOneDefaultItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['BranchOneDefaultItemSuspendUserGroupsRequiredType0', 'BranchOneDefaultItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_default_item_suspend_user_groups_required_type_0 import BranchOneDefaultItemSuspendUserGroupsRequiredType0 - from ..models.branch_one_default_item_suspend_resume_form import BranchOneDefaultItemSuspendResumeForm - from ..models.branch_one_default_item_suspend_user_groups_required_type_1 import BranchOneDefaultItemSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, BranchOneDefaultItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_default_item_suspend_user_groups_required_type_0 import BranchOneDefaultItemSuspendUserGroupsRequiredType0 - from ..models.branch_one_default_item_suspend_resume_form import BranchOneDefaultItemSuspendResumeForm - from ..models.branch_one_default_item_suspend_user_groups_required_type_1 import BranchOneDefaultItemSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, BranchOneDefaultItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = BranchOneDefaultItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['BranchOneDefaultItemSuspendUserGroupsRequiredType0', 'BranchOneDefaultItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, BranchOneDefaultItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = BranchOneDefaultItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, BranchOneDefaultItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = BranchOneDefaultItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - branch_one_default_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - branch_one_default_item_suspend.additional_properties = d - return branch_one_default_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_resume_form.py deleted file mode 100644 index 56c5d50999..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.branch_one_default_item_suspend_resume_form_schema import BranchOneDefaultItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemSuspendResumeForm") - - -@_attrs_define -class BranchOneDefaultItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, BranchOneDefaultItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'BranchOneDefaultItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.branch_one_default_item_suspend_resume_form_schema import BranchOneDefaultItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.branch_one_default_item_suspend_resume_form_schema import BranchOneDefaultItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, BranchOneDefaultItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = BranchOneDefaultItemSuspendResumeFormSchema.from_dict(_schema) - - - - - branch_one_default_item_suspend_resume_form = cls( - schema=schema, - ) - - branch_one_default_item_suspend_resume_form.additional_properties = d - return branch_one_default_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_resume_form_schema.py deleted file mode 100644 index 8648ed5023..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemSuspendResumeFormSchema") - - -@_attrs_define -class BranchOneDefaultItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch_one_default_item_suspend_resume_form_schema = cls( - ) - - branch_one_default_item_suspend_resume_form_schema.additional_properties = d - return branch_one_default_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 68eb69d360..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.branch_one_default_item_suspend_user_groups_required_type_0_type import BranchOneDefaultItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class BranchOneDefaultItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (BranchOneDefaultItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: BranchOneDefaultItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = BranchOneDefaultItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - branch_one_default_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - branch_one_default_item_suspend_user_groups_required_type_0.additional_properties = d - return branch_one_default_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index e2b2260996..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneDefaultItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 749258ab6c..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.branch_one_default_item_suspend_user_groups_required_type_1_type import BranchOneDefaultItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="BranchOneDefaultItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class BranchOneDefaultItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (BranchOneDefaultItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: BranchOneDefaultItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = BranchOneDefaultItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - branch_one_default_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - branch_one_default_item_suspend_user_groups_required_type_1.additional_properties = d - return branch_one_default_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index c0d4e5df8d..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_default_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneDefaultItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/branch_one_type.py b/python-client/windmill-api/windmill_api/models/branch_one_type.py deleted file mode 100644 index 273826a230..0000000000 --- a/python-client/windmill-api/windmill_api/models/branch_one_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class BranchOneType(str, Enum): - BRANCHONE = "branchone" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/cancel_persistent_queued_jobs_json_body.py b/python-client/windmill-api/windmill_api/models/cancel_persistent_queued_jobs_json_body.py deleted file mode 100644 index 83ee4ad853..0000000000 --- a/python-client/windmill-api/windmill_api/models/cancel_persistent_queued_jobs_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CancelPersistentQueuedJobsJsonBody") - - -@_attrs_define -class CancelPersistentQueuedJobsJsonBody: - """ - Attributes: - reason (Union[Unset, str]): - """ - - reason: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - reason = self.reason - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if reason is not UNSET: - field_dict["reason"] = reason - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - reason = d.pop("reason", UNSET) - - cancel_persistent_queued_jobs_json_body = cls( - reason=reason, - ) - - cancel_persistent_queued_jobs_json_body.additional_properties = d - return cancel_persistent_queued_jobs_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/cancel_queued_job_json_body.py b/python-client/windmill-api/windmill_api/models/cancel_queued_job_json_body.py deleted file mode 100644 index 1cba9c6c55..0000000000 --- a/python-client/windmill-api/windmill_api/models/cancel_queued_job_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CancelQueuedJobJsonBody") - - -@_attrs_define -class CancelQueuedJobJsonBody: - """ - Attributes: - reason (Union[Unset, str]): - """ - - reason: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - reason = self.reason - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if reason is not UNSET: - field_dict["reason"] = reason - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - reason = d.pop("reason", UNSET) - - cancel_queued_job_json_body = cls( - reason=reason, - ) - - cancel_queued_job_json_body.additional_properties = d - return cancel_queued_job_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/cancel_suspended_job_post_json_body.py b/python-client/windmill-api/windmill_api/models/cancel_suspended_job_post_json_body.py deleted file mode 100644 index 9259c340cb..0000000000 --- a/python-client/windmill-api/windmill_api/models/cancel_suspended_job_post_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CancelSuspendedJobPostJsonBody") - - -@_attrs_define -class CancelSuspendedJobPostJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - cancel_suspended_job_post_json_body = cls( - ) - - cancel_suspended_job_post_json_body.additional_properties = d - return cancel_suspended_job_post_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job.py b/python-client/windmill-api/windmill_api/models/completed_job.py deleted file mode 100644 index 4c3fd871f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job.py +++ /dev/null @@ -1,372 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.completed_job_job_kind import CompletedJobJobKind -from typing import Dict -from ..models.completed_job_language import CompletedJobLanguage -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow import CompletedJobRawFlow - from ..models.completed_job_flow_status import CompletedJobFlowStatus - from ..models.completed_job_args import CompletedJobArgs - - - - - -T = TypeVar("T", bound="CompletedJob") - - -@_attrs_define -class CompletedJob: - """ - Attributes: - id (str): - created_by (str): - created_at (datetime.datetime): - started_at (datetime.datetime): - duration_ms (int): - success (bool): - canceled (bool): - job_kind (CompletedJobJobKind): - permissioned_as (str): The user (u/userfoo) or group (g/groupfoo) whom - the execution of this script will be permissioned_as and by extension its DT_TOKEN. - is_flow_step (bool): - is_skipped (bool): - email (str): - visible_to_owner (bool): - tag (str): - workspace_id (Union[Unset, str]): - parent_job (Union[Unset, str]): - script_path (Union[Unset, str]): - script_hash (Union[Unset, str]): - args (Union[Unset, CompletedJobArgs]): - result (Union[Unset, Any]): - logs (Union[Unset, str]): - deleted (Union[Unset, bool]): - raw_code (Union[Unset, str]): - canceled_by (Union[Unset, str]): - canceled_reason (Union[Unset, str]): - schedule_path (Union[Unset, str]): - flow_status (Union[Unset, CompletedJobFlowStatus]): - raw_flow (Union[Unset, CompletedJobRawFlow]): - language (Union[Unset, CompletedJobLanguage]): - mem_peak (Union[Unset, int]): - priority (Union[Unset, int]): - """ - - id: str - created_by: str - created_at: datetime.datetime - started_at: datetime.datetime - duration_ms: int - success: bool - canceled: bool - job_kind: CompletedJobJobKind - permissioned_as: str - is_flow_step: bool - is_skipped: bool - email: str - visible_to_owner: bool - tag: str - workspace_id: Union[Unset, str] = UNSET - parent_job: Union[Unset, str] = UNSET - script_path: Union[Unset, str] = UNSET - script_hash: Union[Unset, str] = UNSET - args: Union[Unset, 'CompletedJobArgs'] = UNSET - result: Union[Unset, Any] = UNSET - logs: Union[Unset, str] = UNSET - deleted: Union[Unset, bool] = UNSET - raw_code: Union[Unset, str] = UNSET - canceled_by: Union[Unset, str] = UNSET - canceled_reason: Union[Unset, str] = UNSET - schedule_path: Union[Unset, str] = UNSET - flow_status: Union[Unset, 'CompletedJobFlowStatus'] = UNSET - raw_flow: Union[Unset, 'CompletedJobRawFlow'] = UNSET - language: Union[Unset, CompletedJobLanguage] = UNSET - mem_peak: Union[Unset, int] = UNSET - priority: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow import CompletedJobRawFlow - from ..models.completed_job_flow_status import CompletedJobFlowStatus - from ..models.completed_job_args import CompletedJobArgs - id = self.id - created_by = self.created_by - created_at = self.created_at.isoformat() - - started_at = self.started_at.isoformat() - - duration_ms = self.duration_ms - success = self.success - canceled = self.canceled - job_kind = self.job_kind.value - - permissioned_as = self.permissioned_as - is_flow_step = self.is_flow_step - is_skipped = self.is_skipped - email = self.email - visible_to_owner = self.visible_to_owner - tag = self.tag - workspace_id = self.workspace_id - parent_job = self.parent_job - script_path = self.script_path - script_hash = self.script_hash - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - result = self.result - logs = self.logs - deleted = self.deleted - raw_code = self.raw_code - canceled_by = self.canceled_by - canceled_reason = self.canceled_reason - schedule_path = self.schedule_path - flow_status: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.flow_status, Unset): - flow_status = self.flow_status.to_dict() - - raw_flow: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.raw_flow, Unset): - raw_flow = self.raw_flow.to_dict() - - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - mem_peak = self.mem_peak - priority = self.priority - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "created_by": created_by, - "created_at": created_at, - "started_at": started_at, - "duration_ms": duration_ms, - "success": success, - "canceled": canceled, - "job_kind": job_kind, - "permissioned_as": permissioned_as, - "is_flow_step": is_flow_step, - "is_skipped": is_skipped, - "email": email, - "visible_to_owner": visible_to_owner, - "tag": tag, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_job is not UNSET: - field_dict["parent_job"] = parent_job - if script_path is not UNSET: - field_dict["script_path"] = script_path - if script_hash is not UNSET: - field_dict["script_hash"] = script_hash - if args is not UNSET: - field_dict["args"] = args - if result is not UNSET: - field_dict["result"] = result - if logs is not UNSET: - field_dict["logs"] = logs - if deleted is not UNSET: - field_dict["deleted"] = deleted - if raw_code is not UNSET: - field_dict["raw_code"] = raw_code - if canceled_by is not UNSET: - field_dict["canceled_by"] = canceled_by - if canceled_reason is not UNSET: - field_dict["canceled_reason"] = canceled_reason - if schedule_path is not UNSET: - field_dict["schedule_path"] = schedule_path - if flow_status is not UNSET: - field_dict["flow_status"] = flow_status - if raw_flow is not UNSET: - field_dict["raw_flow"] = raw_flow - if language is not UNSET: - field_dict["language"] = language - if mem_peak is not UNSET: - field_dict["mem_peak"] = mem_peak - if priority is not UNSET: - field_dict["priority"] = priority - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow import CompletedJobRawFlow - from ..models.completed_job_flow_status import CompletedJobFlowStatus - from ..models.completed_job_args import CompletedJobArgs - d = src_dict.copy() - id = d.pop("id") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - started_at = isoparse(d.pop("started_at")) - - - - - duration_ms = d.pop("duration_ms") - - success = d.pop("success") - - canceled = d.pop("canceled") - - job_kind = CompletedJobJobKind(d.pop("job_kind")) - - - - - permissioned_as = d.pop("permissioned_as") - - is_flow_step = d.pop("is_flow_step") - - is_skipped = d.pop("is_skipped") - - email = d.pop("email") - - visible_to_owner = d.pop("visible_to_owner") - - tag = d.pop("tag") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_job = d.pop("parent_job", UNSET) - - script_path = d.pop("script_path", UNSET) - - script_hash = d.pop("script_hash", UNSET) - - _args = d.pop("args", UNSET) - args: Union[Unset, CompletedJobArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = CompletedJobArgs.from_dict(_args) - - - - - result = d.pop("result", UNSET) - - logs = d.pop("logs", UNSET) - - deleted = d.pop("deleted", UNSET) - - raw_code = d.pop("raw_code", UNSET) - - canceled_by = d.pop("canceled_by", UNSET) - - canceled_reason = d.pop("canceled_reason", UNSET) - - schedule_path = d.pop("schedule_path", UNSET) - - _flow_status = d.pop("flow_status", UNSET) - flow_status: Union[Unset, CompletedJobFlowStatus] - if isinstance(_flow_status, Unset): - flow_status = UNSET - else: - flow_status = CompletedJobFlowStatus.from_dict(_flow_status) - - - - - _raw_flow = d.pop("raw_flow", UNSET) - raw_flow: Union[Unset, CompletedJobRawFlow] - if isinstance(_raw_flow, Unset): - raw_flow = UNSET - else: - raw_flow = CompletedJobRawFlow.from_dict(_raw_flow) - - - - - _language = d.pop("language", UNSET) - language: Union[Unset, CompletedJobLanguage] - if isinstance(_language, Unset): - language = UNSET - else: - language = CompletedJobLanguage(_language) - - - - - mem_peak = d.pop("mem_peak", UNSET) - - priority = d.pop("priority", UNSET) - - completed_job = cls( - id=id, - created_by=created_by, - created_at=created_at, - started_at=started_at, - duration_ms=duration_ms, - success=success, - canceled=canceled, - job_kind=job_kind, - permissioned_as=permissioned_as, - is_flow_step=is_flow_step, - is_skipped=is_skipped, - email=email, - visible_to_owner=visible_to_owner, - tag=tag, - workspace_id=workspace_id, - parent_job=parent_job, - script_path=script_path, - script_hash=script_hash, - args=args, - result=result, - logs=logs, - deleted=deleted, - raw_code=raw_code, - canceled_by=canceled_by, - canceled_reason=canceled_reason, - schedule_path=schedule_path, - flow_status=flow_status, - raw_flow=raw_flow, - language=language, - mem_peak=mem_peak, - priority=priority, - ) - - completed_job.additional_properties = d - return completed_job - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_args.py b/python-client/windmill-api/windmill_api/models/completed_job_args.py deleted file mode 100644 index 5b2a477461..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CompletedJobArgs") - - -@_attrs_define -class CompletedJobArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - completed_job_args = cls( - ) - - completed_job_args.additional_properties = d - return completed_job_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status.py deleted file mode 100644 index 41de76eabc..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status.py +++ /dev/null @@ -1,138 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_flow_status_retry import CompletedJobFlowStatusRetry - from ..models.completed_job_flow_status_failure_module import CompletedJobFlowStatusFailureModule - from ..models.completed_job_flow_status_modules_item import CompletedJobFlowStatusModulesItem - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatus") - - -@_attrs_define -class CompletedJobFlowStatus: - """ - Attributes: - step (int): - modules (List['CompletedJobFlowStatusModulesItem']): - failure_module (CompletedJobFlowStatusFailureModule): - retry (Union[Unset, CompletedJobFlowStatusRetry]): - """ - - step: int - modules: List['CompletedJobFlowStatusModulesItem'] - failure_module: 'CompletedJobFlowStatusFailureModule' - retry: Union[Unset, 'CompletedJobFlowStatusRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_flow_status_retry import CompletedJobFlowStatusRetry - from ..models.completed_job_flow_status_failure_module import CompletedJobFlowStatusFailureModule - from ..models.completed_job_flow_status_modules_item import CompletedJobFlowStatusModulesItem - step = self.step - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module = self.failure_module.to_dict() - - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "step": step, - "modules": modules, - "failure_module": failure_module, - }) - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_flow_status_retry import CompletedJobFlowStatusRetry - from ..models.completed_job_flow_status_failure_module import CompletedJobFlowStatusFailureModule - from ..models.completed_job_flow_status_modules_item import CompletedJobFlowStatusModulesItem - d = src_dict.copy() - step = d.pop("step") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = CompletedJobFlowStatusModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - failure_module = CompletedJobFlowStatusFailureModule.from_dict(d.pop("failure_module")) - - - - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, CompletedJobFlowStatusRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = CompletedJobFlowStatusRetry.from_dict(_retry) - - - - - completed_job_flow_status = cls( - step=step, - modules=modules, - failure_module=failure_module, - retry=retry, - ) - - completed_job_flow_status.additional_properties = d - return completed_job_flow_status - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module.py deleted file mode 100644 index e6e9b93296..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module.py +++ /dev/null @@ -1,223 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.completed_job_flow_status_failure_module_type import CompletedJobFlowStatusFailureModuleType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_flow_status_failure_module_branchall import CompletedJobFlowStatusFailureModuleBranchall - from ..models.completed_job_flow_status_failure_module_branch_chosen import CompletedJobFlowStatusFailureModuleBranchChosen - from ..models.completed_job_flow_status_failure_module_iterator import CompletedJobFlowStatusFailureModuleIterator - from ..models.completed_job_flow_status_failure_module_approvers_item import CompletedJobFlowStatusFailureModuleApproversItem - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusFailureModule") - - -@_attrs_define -class CompletedJobFlowStatusFailureModule: - """ - Attributes: - type (CompletedJobFlowStatusFailureModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, CompletedJobFlowStatusFailureModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, CompletedJobFlowStatusFailureModuleBranchChosen]): - branchall (Union[Unset, CompletedJobFlowStatusFailureModuleBranchall]): - approvers (Union[Unset, List['CompletedJobFlowStatusFailureModuleApproversItem']]): - parent_module (Union[Unset, str]): - """ - - type: CompletedJobFlowStatusFailureModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'CompletedJobFlowStatusFailureModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'CompletedJobFlowStatusFailureModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'CompletedJobFlowStatusFailureModuleBranchall'] = UNSET - approvers: Union[Unset, List['CompletedJobFlowStatusFailureModuleApproversItem']] = UNSET - parent_module: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_flow_status_failure_module_branchall import CompletedJobFlowStatusFailureModuleBranchall - from ..models.completed_job_flow_status_failure_module_branch_chosen import CompletedJobFlowStatusFailureModuleBranchChosen - from ..models.completed_job_flow_status_failure_module_iterator import CompletedJobFlowStatusFailureModuleIterator - from ..models.completed_job_flow_status_failure_module_approvers_item import CompletedJobFlowStatusFailureModuleApproversItem - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - parent_module = self.parent_module - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - if parent_module is not UNSET: - field_dict["parent_module"] = parent_module - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_flow_status_failure_module_branchall import CompletedJobFlowStatusFailureModuleBranchall - from ..models.completed_job_flow_status_failure_module_branch_chosen import CompletedJobFlowStatusFailureModuleBranchChosen - from ..models.completed_job_flow_status_failure_module_iterator import CompletedJobFlowStatusFailureModuleIterator - from ..models.completed_job_flow_status_failure_module_approvers_item import CompletedJobFlowStatusFailureModuleApproversItem - d = src_dict.copy() - type = CompletedJobFlowStatusFailureModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, CompletedJobFlowStatusFailureModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = CompletedJobFlowStatusFailureModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, CompletedJobFlowStatusFailureModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = CompletedJobFlowStatusFailureModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, CompletedJobFlowStatusFailureModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = CompletedJobFlowStatusFailureModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = CompletedJobFlowStatusFailureModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - parent_module = d.pop("parent_module", UNSET) - - completed_job_flow_status_failure_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - parent_module=parent_module, - ) - - completed_job_flow_status_failure_module.additional_properties = d - return completed_job_flow_status_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_approvers_item.py deleted file mode 100644 index e391b6a68e..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusFailureModuleApproversItem") - - -@_attrs_define -class CompletedJobFlowStatusFailureModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - completed_job_flow_status_failure_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - completed_job_flow_status_failure_module_approvers_item.additional_properties = d - return completed_job_flow_status_failure_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branch_chosen.py deleted file mode 100644 index 8b25fa252a..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.completed_job_flow_status_failure_module_branch_chosen_type import CompletedJobFlowStatusFailureModuleBranchChosenType - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusFailureModuleBranchChosen") - - -@_attrs_define -class CompletedJobFlowStatusFailureModuleBranchChosen: - """ - Attributes: - type (CompletedJobFlowStatusFailureModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: CompletedJobFlowStatusFailureModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = CompletedJobFlowStatusFailureModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - completed_job_flow_status_failure_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - completed_job_flow_status_failure_module_branch_chosen.additional_properties = d - return completed_job_flow_status_failure_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branch_chosen_type.py deleted file mode 100644 index e0528a548b..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class CompletedJobFlowStatusFailureModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branchall.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branchall.py deleted file mode 100644 index d54f6c5cd6..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusFailureModuleBranchall") - - -@_attrs_define -class CompletedJobFlowStatusFailureModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - completed_job_flow_status_failure_module_branchall = cls( - branch=branch, - len_=len_, - ) - - completed_job_flow_status_failure_module_branchall.additional_properties = d - return completed_job_flow_status_failure_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_iterator.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_iterator.py deleted file mode 100644 index 9206eceb29..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusFailureModuleIterator") - - -@_attrs_define -class CompletedJobFlowStatusFailureModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - completed_job_flow_status_failure_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - completed_job_flow_status_failure_module_iterator.additional_properties = d - return completed_job_flow_status_failure_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_type.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_type.py deleted file mode 100644 index 9b5da89d6b..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_failure_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class CompletedJobFlowStatusFailureModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item.py deleted file mode 100644 index bf145eedf0..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.completed_job_flow_status_modules_item_type import CompletedJobFlowStatusModulesItemType -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_flow_status_modules_item_iterator import CompletedJobFlowStatusModulesItemIterator - from ..models.completed_job_flow_status_modules_item_branch_chosen import CompletedJobFlowStatusModulesItemBranchChosen - from ..models.completed_job_flow_status_modules_item_branchall import CompletedJobFlowStatusModulesItemBranchall - from ..models.completed_job_flow_status_modules_item_approvers_item import CompletedJobFlowStatusModulesItemApproversItem - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusModulesItem") - - -@_attrs_define -class CompletedJobFlowStatusModulesItem: - """ - Attributes: - type (CompletedJobFlowStatusModulesItemType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, CompletedJobFlowStatusModulesItemIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, CompletedJobFlowStatusModulesItemBranchChosen]): - branchall (Union[Unset, CompletedJobFlowStatusModulesItemBranchall]): - approvers (Union[Unset, List['CompletedJobFlowStatusModulesItemApproversItem']]): - """ - - type: CompletedJobFlowStatusModulesItemType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'CompletedJobFlowStatusModulesItemIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'CompletedJobFlowStatusModulesItemBranchChosen'] = UNSET - branchall: Union[Unset, 'CompletedJobFlowStatusModulesItemBranchall'] = UNSET - approvers: Union[Unset, List['CompletedJobFlowStatusModulesItemApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_flow_status_modules_item_iterator import CompletedJobFlowStatusModulesItemIterator - from ..models.completed_job_flow_status_modules_item_branch_chosen import CompletedJobFlowStatusModulesItemBranchChosen - from ..models.completed_job_flow_status_modules_item_branchall import CompletedJobFlowStatusModulesItemBranchall - from ..models.completed_job_flow_status_modules_item_approvers_item import CompletedJobFlowStatusModulesItemApproversItem - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_flow_status_modules_item_iterator import CompletedJobFlowStatusModulesItemIterator - from ..models.completed_job_flow_status_modules_item_branch_chosen import CompletedJobFlowStatusModulesItemBranchChosen - from ..models.completed_job_flow_status_modules_item_branchall import CompletedJobFlowStatusModulesItemBranchall - from ..models.completed_job_flow_status_modules_item_approvers_item import CompletedJobFlowStatusModulesItemApproversItem - d = src_dict.copy() - type = CompletedJobFlowStatusModulesItemType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, CompletedJobFlowStatusModulesItemIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = CompletedJobFlowStatusModulesItemIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, CompletedJobFlowStatusModulesItemBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = CompletedJobFlowStatusModulesItemBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, CompletedJobFlowStatusModulesItemBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = CompletedJobFlowStatusModulesItemBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = CompletedJobFlowStatusModulesItemApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - completed_job_flow_status_modules_item = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - completed_job_flow_status_modules_item.additional_properties = d - return completed_job_flow_status_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_approvers_item.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_approvers_item.py deleted file mode 100644 index 3d15f65cf1..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusModulesItemApproversItem") - - -@_attrs_define -class CompletedJobFlowStatusModulesItemApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - completed_job_flow_status_modules_item_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - completed_job_flow_status_modules_item_approvers_item.additional_properties = d - return completed_job_flow_status_modules_item_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branch_chosen.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branch_chosen.py deleted file mode 100644 index 9346348b92..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.completed_job_flow_status_modules_item_branch_chosen_type import CompletedJobFlowStatusModulesItemBranchChosenType - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusModulesItemBranchChosen") - - -@_attrs_define -class CompletedJobFlowStatusModulesItemBranchChosen: - """ - Attributes: - type (CompletedJobFlowStatusModulesItemBranchChosenType): - branch (Union[Unset, int]): - """ - - type: CompletedJobFlowStatusModulesItemBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = CompletedJobFlowStatusModulesItemBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - completed_job_flow_status_modules_item_branch_chosen = cls( - type=type, - branch=branch, - ) - - completed_job_flow_status_modules_item_branch_chosen.additional_properties = d - return completed_job_flow_status_modules_item_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branch_chosen_type.py deleted file mode 100644 index b296ff73d6..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class CompletedJobFlowStatusModulesItemBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branchall.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branchall.py deleted file mode 100644 index f56a7443be..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusModulesItemBranchall") - - -@_attrs_define -class CompletedJobFlowStatusModulesItemBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - completed_job_flow_status_modules_item_branchall = cls( - branch=branch, - len_=len_, - ) - - completed_job_flow_status_modules_item_branchall.additional_properties = d - return completed_job_flow_status_modules_item_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_iterator.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_iterator.py deleted file mode 100644 index dfeaecc461..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusModulesItemIterator") - - -@_attrs_define -class CompletedJobFlowStatusModulesItemIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - completed_job_flow_status_modules_item_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - completed_job_flow_status_modules_item_iterator.additional_properties = d - return completed_job_flow_status_modules_item_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_type.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_type.py deleted file mode 100644 index 71a28e9904..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_modules_item_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class CompletedJobFlowStatusModulesItemType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_retry.py b/python-client/windmill-api/windmill_api/models/completed_job_flow_status_retry.py deleted file mode 100644 index cf321d5f5e..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_flow_status_retry.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="CompletedJobFlowStatusRetry") - - -@_attrs_define -class CompletedJobFlowStatusRetry: - """ - Attributes: - fail_count (Union[Unset, int]): - failed_jobs (Union[Unset, List[str]]): - """ - - fail_count: Union[Unset, int] = UNSET - failed_jobs: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - fail_count = self.fail_count - failed_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.failed_jobs, Unset): - failed_jobs = self.failed_jobs - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if fail_count is not UNSET: - field_dict["fail_count"] = fail_count - if failed_jobs is not UNSET: - field_dict["failed_jobs"] = failed_jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - fail_count = d.pop("fail_count", UNSET) - - failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET)) - - - completed_job_flow_status_retry = cls( - fail_count=fail_count, - failed_jobs=failed_jobs, - ) - - completed_job_flow_status_retry.additional_properties = d - return completed_job_flow_status_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_job_kind.py b/python-client/windmill-api/windmill_api/models/completed_job_job_kind.py deleted file mode 100644 index e5630a80d5..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_job_kind.py +++ /dev/null @@ -1,17 +0,0 @@ -from enum import Enum - -class CompletedJobJobKind(str, Enum): - APPDEPENDENCIES = "appdependencies" - DEPENDENCIES = "dependencies" - DEPLOYMENTCALLBACK = "deploymentcallback" - FLOW = "flow" - FLOWDEPENDENCIES = "flowdependencies" - FLOWPREVIEW = "flowpreview" - IDENTITY = "identity" - PREVIEW = "preview" - SCRIPT = "script" - SCRIPT_HUB = "script_hub" - SINGLESCRIPTFLOW = "singlescriptflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_language.py b/python-client/windmill-api/windmill_api/models/completed_job_language.py deleted file mode 100644 index 5c8a55c811..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class CompletedJobLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow.py deleted file mode 100644 index c773302654..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_failure_module import CompletedJobRawFlowFailureModule - from ..models.completed_job_raw_flow_modules_item import CompletedJobRawFlowModulesItem - - - - - -T = TypeVar("T", bound="CompletedJobRawFlow") - - -@_attrs_define -class CompletedJobRawFlow: - """ - Attributes: - modules (List['CompletedJobRawFlowModulesItem']): - failure_module (Union[Unset, CompletedJobRawFlowFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['CompletedJobRawFlowModulesItem'] - failure_module: Union[Unset, 'CompletedJobRawFlowFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_failure_module import CompletedJobRawFlowFailureModule - from ..models.completed_job_raw_flow_modules_item import CompletedJobRawFlowModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_failure_module import CompletedJobRawFlowFailureModule - from ..models.completed_job_raw_flow_modules_item import CompletedJobRawFlowModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = CompletedJobRawFlowModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, CompletedJobRawFlowFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = CompletedJobRawFlowFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - completed_job_raw_flow = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - completed_job_raw_flow.additional_properties = d - return completed_job_raw_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module.py deleted file mode 100644 index f3fd32ff90..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_failure_module_mock import CompletedJobRawFlowFailureModuleMock - from ..models.completed_job_raw_flow_failure_module_retry import CompletedJobRawFlowFailureModuleRetry - from ..models.completed_job_raw_flow_failure_module_stop_after_if import CompletedJobRawFlowFailureModuleStopAfterIf - from ..models.completed_job_raw_flow_failure_module_sleep_type_0 import CompletedJobRawFlowFailureModuleSleepType0 - from ..models.completed_job_raw_flow_failure_module_sleep_type_1 import CompletedJobRawFlowFailureModuleSleepType1 - from ..models.completed_job_raw_flow_failure_module_suspend import CompletedJobRawFlowFailureModuleSuspend - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModule") - - -@_attrs_define -class CompletedJobRawFlowFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, CompletedJobRawFlowFailureModuleStopAfterIf]): - sleep (Union['CompletedJobRawFlowFailureModuleSleepType0', 'CompletedJobRawFlowFailureModuleSleepType1', - Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, CompletedJobRawFlowFailureModuleMock]): - suspend (Union[Unset, CompletedJobRawFlowFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, CompletedJobRawFlowFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'CompletedJobRawFlowFailureModuleStopAfterIf'] = UNSET - sleep: Union['CompletedJobRawFlowFailureModuleSleepType0', 'CompletedJobRawFlowFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'CompletedJobRawFlowFailureModuleMock'] = UNSET - suspend: Union[Unset, 'CompletedJobRawFlowFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'CompletedJobRawFlowFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_failure_module_mock import CompletedJobRawFlowFailureModuleMock - from ..models.completed_job_raw_flow_failure_module_retry import CompletedJobRawFlowFailureModuleRetry - from ..models.completed_job_raw_flow_failure_module_stop_after_if import CompletedJobRawFlowFailureModuleStopAfterIf - from ..models.completed_job_raw_flow_failure_module_sleep_type_0 import CompletedJobRawFlowFailureModuleSleepType0 - from ..models.completed_job_raw_flow_failure_module_sleep_type_1 import CompletedJobRawFlowFailureModuleSleepType1 - from ..models.completed_job_raw_flow_failure_module_suspend import CompletedJobRawFlowFailureModuleSuspend - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, CompletedJobRawFlowFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_failure_module_mock import CompletedJobRawFlowFailureModuleMock - from ..models.completed_job_raw_flow_failure_module_retry import CompletedJobRawFlowFailureModuleRetry - from ..models.completed_job_raw_flow_failure_module_stop_after_if import CompletedJobRawFlowFailureModuleStopAfterIf - from ..models.completed_job_raw_flow_failure_module_sleep_type_0 import CompletedJobRawFlowFailureModuleSleepType0 - from ..models.completed_job_raw_flow_failure_module_sleep_type_1 import CompletedJobRawFlowFailureModuleSleepType1 - from ..models.completed_job_raw_flow_failure_module_suspend import CompletedJobRawFlowFailureModuleSuspend - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, CompletedJobRawFlowFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = CompletedJobRawFlowFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['CompletedJobRawFlowFailureModuleSleepType0', 'CompletedJobRawFlowFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, CompletedJobRawFlowFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = CompletedJobRawFlowFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, CompletedJobRawFlowFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = CompletedJobRawFlowFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, CompletedJobRawFlowFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = CompletedJobRawFlowFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, CompletedJobRawFlowFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = CompletedJobRawFlowFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, CompletedJobRawFlowFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = CompletedJobRawFlowFailureModuleRetry.from_dict(_retry) - - - - - completed_job_raw_flow_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - completed_job_raw_flow_failure_module.additional_properties = d - return completed_job_raw_flow_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_mock.py deleted file mode 100644 index b8496288b0..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleMock") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - completed_job_raw_flow_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - completed_job_raw_flow_failure_module_mock.additional_properties = d - return completed_job_raw_flow_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry.py deleted file mode 100644 index 7c9758971a..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_failure_module_retry_constant import CompletedJobRawFlowFailureModuleRetryConstant - from ..models.completed_job_raw_flow_failure_module_retry_exponential import CompletedJobRawFlowFailureModuleRetryExponential - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleRetry") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, CompletedJobRawFlowFailureModuleRetryConstant]): - exponential (Union[Unset, CompletedJobRawFlowFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'CompletedJobRawFlowFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'CompletedJobRawFlowFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_failure_module_retry_constant import CompletedJobRawFlowFailureModuleRetryConstant - from ..models.completed_job_raw_flow_failure_module_retry_exponential import CompletedJobRawFlowFailureModuleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_failure_module_retry_constant import CompletedJobRawFlowFailureModuleRetryConstant - from ..models.completed_job_raw_flow_failure_module_retry_exponential import CompletedJobRawFlowFailureModuleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, CompletedJobRawFlowFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = CompletedJobRawFlowFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, CompletedJobRawFlowFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = CompletedJobRawFlowFailureModuleRetryExponential.from_dict(_exponential) - - - - - completed_job_raw_flow_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - completed_job_raw_flow_failure_module_retry.additional_properties = d - return completed_job_raw_flow_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry_constant.py deleted file mode 100644 index 28e77e389f..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleRetryConstant") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - completed_job_raw_flow_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - completed_job_raw_flow_failure_module_retry_constant.additional_properties = d - return completed_job_raw_flow_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry_exponential.py deleted file mode 100644 index 54d79cdf86..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleRetryExponential") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - completed_job_raw_flow_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - completed_job_raw_flow_failure_module_retry_exponential.additional_properties = d - return completed_job_raw_flow_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_0.py deleted file mode 100644 index 5eafc1a78a..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.completed_job_raw_flow_failure_module_sleep_type_0_type import CompletedJobRawFlowFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleSleepType0") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleSleepType0: - """ - Attributes: - type (CompletedJobRawFlowFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: CompletedJobRawFlowFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = CompletedJobRawFlowFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - completed_job_raw_flow_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - completed_job_raw_flow_failure_module_sleep_type_0.additional_properties = d - return completed_job_raw_flow_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_0_type.py deleted file mode 100644 index f71130fd21..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_1.py deleted file mode 100644 index d1112e2096..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.completed_job_raw_flow_failure_module_sleep_type_1_type import CompletedJobRawFlowFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleSleepType1") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (CompletedJobRawFlowFailureModuleSleepType1Type): - """ - - expr: str - type: CompletedJobRawFlowFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = CompletedJobRawFlowFailureModuleSleepType1Type(d.pop("type")) - - - - - completed_job_raw_flow_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - completed_job_raw_flow_failure_module_sleep_type_1.additional_properties = d - return completed_job_raw_flow_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_1_type.py deleted file mode 100644 index 03b4b6a71a..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_stop_after_if.py deleted file mode 100644 index 8c8b392f0b..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleStopAfterIf") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - completed_job_raw_flow_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - completed_job_raw_flow_failure_module_stop_after_if.additional_properties = d - return completed_job_raw_flow_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend.py deleted file mode 100644 index 3eb21eca86..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0 import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1 import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.completed_job_raw_flow_failure_module_suspend_resume_form import CompletedJobRawFlowFailureModuleSuspendResumeForm - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleSuspend") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, CompletedJobRawFlowFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0', - 'CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'CompletedJobRawFlowFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0 import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1 import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.completed_job_raw_flow_failure_module_suspend_resume_form import CompletedJobRawFlowFailureModuleSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0 import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1 import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.completed_job_raw_flow_failure_module_suspend_resume_form import CompletedJobRawFlowFailureModuleSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, CompletedJobRawFlowFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = CompletedJobRawFlowFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - completed_job_raw_flow_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - completed_job_raw_flow_failure_module_suspend.additional_properties = d - return completed_job_raw_flow_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_resume_form.py deleted file mode 100644 index c223ddb168..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_failure_module_suspend_resume_form_schema import CompletedJobRawFlowFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleSuspendResumeForm") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, CompletedJobRawFlowFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'CompletedJobRawFlowFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_failure_module_suspend_resume_form_schema import CompletedJobRawFlowFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_failure_module_suspend_resume_form_schema import CompletedJobRawFlowFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, CompletedJobRawFlowFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = CompletedJobRawFlowFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - completed_job_raw_flow_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - completed_job_raw_flow_failure_module_suspend_resume_form.additional_properties = d - return completed_job_raw_flow_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index 39d6388391..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - completed_job_raw_flow_failure_module_suspend_resume_form_schema = cls( - ) - - completed_job_raw_flow_failure_module_suspend_resume_form_schema.additional_properties = d - return completed_job_raw_flow_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index f447f2b714..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index b37042cfc7..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 7caf8826df..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type import CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 9660e8b748..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item.py deleted file mode 100644 index 9d0837d70d..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_modules_item_sleep_type_0 import CompletedJobRawFlowModulesItemSleepType0 - from ..models.completed_job_raw_flow_modules_item_mock import CompletedJobRawFlowModulesItemMock - from ..models.completed_job_raw_flow_modules_item_stop_after_if import CompletedJobRawFlowModulesItemStopAfterIf - from ..models.completed_job_raw_flow_modules_item_sleep_type_1 import CompletedJobRawFlowModulesItemSleepType1 - from ..models.completed_job_raw_flow_modules_item_retry import CompletedJobRawFlowModulesItemRetry - from ..models.completed_job_raw_flow_modules_item_suspend import CompletedJobRawFlowModulesItemSuspend - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItem") - - -@_attrs_define -class CompletedJobRawFlowModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, CompletedJobRawFlowModulesItemStopAfterIf]): - sleep (Union['CompletedJobRawFlowModulesItemSleepType0', 'CompletedJobRawFlowModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, CompletedJobRawFlowModulesItemMock]): - suspend (Union[Unset, CompletedJobRawFlowModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, CompletedJobRawFlowModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'CompletedJobRawFlowModulesItemStopAfterIf'] = UNSET - sleep: Union['CompletedJobRawFlowModulesItemSleepType0', 'CompletedJobRawFlowModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'CompletedJobRawFlowModulesItemMock'] = UNSET - suspend: Union[Unset, 'CompletedJobRawFlowModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'CompletedJobRawFlowModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_modules_item_sleep_type_0 import CompletedJobRawFlowModulesItemSleepType0 - from ..models.completed_job_raw_flow_modules_item_mock import CompletedJobRawFlowModulesItemMock - from ..models.completed_job_raw_flow_modules_item_stop_after_if import CompletedJobRawFlowModulesItemStopAfterIf - from ..models.completed_job_raw_flow_modules_item_sleep_type_1 import CompletedJobRawFlowModulesItemSleepType1 - from ..models.completed_job_raw_flow_modules_item_retry import CompletedJobRawFlowModulesItemRetry - from ..models.completed_job_raw_flow_modules_item_suspend import CompletedJobRawFlowModulesItemSuspend - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, CompletedJobRawFlowModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_modules_item_sleep_type_0 import CompletedJobRawFlowModulesItemSleepType0 - from ..models.completed_job_raw_flow_modules_item_mock import CompletedJobRawFlowModulesItemMock - from ..models.completed_job_raw_flow_modules_item_stop_after_if import CompletedJobRawFlowModulesItemStopAfterIf - from ..models.completed_job_raw_flow_modules_item_sleep_type_1 import CompletedJobRawFlowModulesItemSleepType1 - from ..models.completed_job_raw_flow_modules_item_retry import CompletedJobRawFlowModulesItemRetry - from ..models.completed_job_raw_flow_modules_item_suspend import CompletedJobRawFlowModulesItemSuspend - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, CompletedJobRawFlowModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = CompletedJobRawFlowModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['CompletedJobRawFlowModulesItemSleepType0', 'CompletedJobRawFlowModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, CompletedJobRawFlowModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = CompletedJobRawFlowModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, CompletedJobRawFlowModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = CompletedJobRawFlowModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, CompletedJobRawFlowModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = CompletedJobRawFlowModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, CompletedJobRawFlowModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = CompletedJobRawFlowModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, CompletedJobRawFlowModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = CompletedJobRawFlowModulesItemRetry.from_dict(_retry) - - - - - completed_job_raw_flow_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - completed_job_raw_flow_modules_item.additional_properties = d - return completed_job_raw_flow_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_mock.py deleted file mode 100644 index 3c5caf598d..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemMock") - - -@_attrs_define -class CompletedJobRawFlowModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - completed_job_raw_flow_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - completed_job_raw_flow_modules_item_mock.additional_properties = d - return completed_job_raw_flow_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry.py deleted file mode 100644 index 88f160f0fd..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_modules_item_retry_constant import CompletedJobRawFlowModulesItemRetryConstant - from ..models.completed_job_raw_flow_modules_item_retry_exponential import CompletedJobRawFlowModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemRetry") - - -@_attrs_define -class CompletedJobRawFlowModulesItemRetry: - """ - Attributes: - constant (Union[Unset, CompletedJobRawFlowModulesItemRetryConstant]): - exponential (Union[Unset, CompletedJobRawFlowModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'CompletedJobRawFlowModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'CompletedJobRawFlowModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_modules_item_retry_constant import CompletedJobRawFlowModulesItemRetryConstant - from ..models.completed_job_raw_flow_modules_item_retry_exponential import CompletedJobRawFlowModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_modules_item_retry_constant import CompletedJobRawFlowModulesItemRetryConstant - from ..models.completed_job_raw_flow_modules_item_retry_exponential import CompletedJobRawFlowModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, CompletedJobRawFlowModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = CompletedJobRawFlowModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, CompletedJobRawFlowModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = CompletedJobRawFlowModulesItemRetryExponential.from_dict(_exponential) - - - - - completed_job_raw_flow_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - completed_job_raw_flow_modules_item_retry.additional_properties = d - return completed_job_raw_flow_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry_constant.py deleted file mode 100644 index 1b9773c0ee..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemRetryConstant") - - -@_attrs_define -class CompletedJobRawFlowModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - completed_job_raw_flow_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - completed_job_raw_flow_modules_item_retry_constant.additional_properties = d - return completed_job_raw_flow_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry_exponential.py deleted file mode 100644 index 3a00615955..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemRetryExponential") - - -@_attrs_define -class CompletedJobRawFlowModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - completed_job_raw_flow_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - completed_job_raw_flow_modules_item_retry_exponential.additional_properties = d - return completed_job_raw_flow_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_0.py deleted file mode 100644 index 4390301001..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.completed_job_raw_flow_modules_item_sleep_type_0_type import CompletedJobRawFlowModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemSleepType0") - - -@_attrs_define -class CompletedJobRawFlowModulesItemSleepType0: - """ - Attributes: - type (CompletedJobRawFlowModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: CompletedJobRawFlowModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = CompletedJobRawFlowModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - completed_job_raw_flow_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - completed_job_raw_flow_modules_item_sleep_type_0.additional_properties = d - return completed_job_raw_flow_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_0_type.py deleted file mode 100644 index 9a2008df52..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_1.py deleted file mode 100644 index 876087da92..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.completed_job_raw_flow_modules_item_sleep_type_1_type import CompletedJobRawFlowModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemSleepType1") - - -@_attrs_define -class CompletedJobRawFlowModulesItemSleepType1: - """ - Attributes: - expr (str): - type (CompletedJobRawFlowModulesItemSleepType1Type): - """ - - expr: str - type: CompletedJobRawFlowModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = CompletedJobRawFlowModulesItemSleepType1Type(d.pop("type")) - - - - - completed_job_raw_flow_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - completed_job_raw_flow_modules_item_sleep_type_1.additional_properties = d - return completed_job_raw_flow_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_1_type.py deleted file mode 100644 index 00787d3394..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_stop_after_if.py deleted file mode 100644 index bcf26e45df..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemStopAfterIf") - - -@_attrs_define -class CompletedJobRawFlowModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - completed_job_raw_flow_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - completed_job_raw_flow_modules_item_stop_after_if.additional_properties = d - return completed_job_raw_flow_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend.py deleted file mode 100644 index abf6210bdf..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0 import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.completed_job_raw_flow_modules_item_suspend_resume_form import CompletedJobRawFlowModulesItemSuspendResumeForm - from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1 import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemSuspend") - - -@_attrs_define -class CompletedJobRawFlowModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, CompletedJobRawFlowModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0', - 'CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'CompletedJobRawFlowModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0', 'CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0 import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.completed_job_raw_flow_modules_item_suspend_resume_form import CompletedJobRawFlowModulesItemSuspendResumeForm - from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1 import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0 import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.completed_job_raw_flow_modules_item_suspend_resume_form import CompletedJobRawFlowModulesItemSuspendResumeForm - from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1 import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, CompletedJobRawFlowModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = CompletedJobRawFlowModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0', 'CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - completed_job_raw_flow_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - completed_job_raw_flow_modules_item_suspend.additional_properties = d - return completed_job_raw_flow_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_resume_form.py deleted file mode 100644 index 72b0d1dac3..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.completed_job_raw_flow_modules_item_suspend_resume_form_schema import CompletedJobRawFlowModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemSuspendResumeForm") - - -@_attrs_define -class CompletedJobRawFlowModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, CompletedJobRawFlowModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'CompletedJobRawFlowModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.completed_job_raw_flow_modules_item_suspend_resume_form_schema import CompletedJobRawFlowModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.completed_job_raw_flow_modules_item_suspend_resume_form_schema import CompletedJobRawFlowModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, CompletedJobRawFlowModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = CompletedJobRawFlowModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - completed_job_raw_flow_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - completed_job_raw_flow_modules_item_suspend_resume_form.additional_properties = d - return completed_job_raw_flow_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index d80dee9615..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class CompletedJobRawFlowModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - completed_job_raw_flow_modules_item_suspend_resume_form_schema = cls( - ) - - completed_job_raw_flow_modules_item_suspend_resume_form_schema.additional_properties = d - return completed_job_raw_flow_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 13ffb02432..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 0ca89126a4..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 39128a2df1..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type import CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 18881517af..0000000000 --- a/python-client/windmill-api/windmill_api/models/completed_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class CompletedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/connect_callback_json_body.py b/python-client/windmill-api/windmill_api/models/connect_callback_json_body.py deleted file mode 100644 index c70614f222..0000000000 --- a/python-client/windmill-api/windmill_api/models/connect_callback_json_body.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ConnectCallbackJsonBody") - - -@_attrs_define -class ConnectCallbackJsonBody: - """ - Attributes: - code (str): - state (str): - """ - - code: str - state: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - code = self.code - state = self.state - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "code": code, - "state": state, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - code = d.pop("code") - - state = d.pop("state") - - connect_callback_json_body = cls( - code=code, - state=state, - ) - - connect_callback_json_body.additional_properties = d - return connect_callback_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/connect_callback_response_200.py b/python-client/windmill-api/windmill_api/models/connect_callback_response_200.py deleted file mode 100644 index 6427f691c1..0000000000 --- a/python-client/windmill-api/windmill_api/models/connect_callback_response_200.py +++ /dev/null @@ -1,104 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ConnectCallbackResponse200") - - -@_attrs_define -class ConnectCallbackResponse200: - """ - Attributes: - access_token (str): - expires_in (Union[Unset, int]): - refresh_token (Union[Unset, str]): - scope (Union[Unset, List[str]]): - """ - - access_token: str - expires_in: Union[Unset, int] = UNSET - refresh_token: Union[Unset, str] = UNSET - scope: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - access_token = self.access_token - expires_in = self.expires_in - refresh_token = self.refresh_token - scope: Union[Unset, List[str]] = UNSET - if not isinstance(self.scope, Unset): - scope = self.scope - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "access_token": access_token, - }) - if expires_in is not UNSET: - field_dict["expires_in"] = expires_in - if refresh_token is not UNSET: - field_dict["refresh_token"] = refresh_token - if scope is not UNSET: - field_dict["scope"] = scope - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - access_token = d.pop("access_token") - - expires_in = d.pop("expires_in", UNSET) - - refresh_token = d.pop("refresh_token", UNSET) - - scope = cast(List[str], d.pop("scope", UNSET)) - - - connect_callback_response_200 = cls( - access_token=access_token, - expires_in=expires_in, - refresh_token=refresh_token, - scope=scope, - ) - - connect_callback_response_200.additional_properties = d - return connect_callback_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/connect_slack_callback_json_body.py b/python-client/windmill-api/windmill_api/models/connect_slack_callback_json_body.py deleted file mode 100644 index d895e1c5d5..0000000000 --- a/python-client/windmill-api/windmill_api/models/connect_slack_callback_json_body.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ConnectSlackCallbackJsonBody") - - -@_attrs_define -class ConnectSlackCallbackJsonBody: - """ - Attributes: - code (str): - state (str): - """ - - code: str - state: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - code = self.code - state = self.state - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "code": code, - "state": state, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - code = d.pop("code") - - state = d.pop("state") - - connect_slack_callback_json_body = cls( - code=code, - state=state, - ) - - connect_slack_callback_json_body.additional_properties = d - return connect_slack_callback_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/contextual_variable.py b/python-client/windmill-api/windmill_api/models/contextual_variable.py deleted file mode 100644 index 4074cb75ec..0000000000 --- a/python-client/windmill-api/windmill_api/models/contextual_variable.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ContextualVariable") - - -@_attrs_define -class ContextualVariable: - """ - Attributes: - name (str): - value (str): - description (str): - """ - - name: str - value: str - description: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - value = self.value - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "value": value, - "description": description, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - value = d.pop("value") - - description = d.pop("description") - - contextual_variable = cls( - name=name, - value=value, - description=description, - ) - - contextual_variable.additional_properties = d - return contextual_variable - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_account_json_body.py b/python-client/windmill-api/windmill_api/models/create_account_json_body.py deleted file mode 100644 index 7692e53efa..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_account_json_body.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateAccountJsonBody") - - -@_attrs_define -class CreateAccountJsonBody: - """ - Attributes: - expires_in (int): - client (str): - refresh_token (Union[Unset, str]): - """ - - expires_in: int - client: str - refresh_token: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expires_in = self.expires_in - client = self.client - refresh_token = self.refresh_token - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expires_in": expires_in, - "client": client, - }) - if refresh_token is not UNSET: - field_dict["refresh_token"] = refresh_token - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expires_in = d.pop("expires_in") - - client = d.pop("client") - - refresh_token = d.pop("refresh_token", UNSET) - - create_account_json_body = cls( - expires_in=expires_in, - client=client, - refresh_token=refresh_token, - ) - - create_account_json_body.additional_properties = d - return create_account_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_app_json_body.py b/python-client/windmill-api/windmill_api/models/create_app_json_body.py deleted file mode 100644 index 19c569a36f..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_app_json_body.py +++ /dev/null @@ -1,119 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.create_app_json_body_policy import CreateAppJsonBodyPolicy - - - - - -T = TypeVar("T", bound="CreateAppJsonBody") - - -@_attrs_define -class CreateAppJsonBody: - """ - Attributes: - path (str): - value (Any): - summary (str): - policy (CreateAppJsonBodyPolicy): - draft_only (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - """ - - path: str - value: Any - summary: str - policy: 'CreateAppJsonBodyPolicy' - draft_only: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_app_json_body_policy import CreateAppJsonBodyPolicy - path = self.path - value = self.value - summary = self.summary - policy = self.policy.to_dict() - - draft_only = self.draft_only - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - "summary": summary, - "policy": policy, - }) - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_app_json_body_policy import CreateAppJsonBodyPolicy - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - summary = d.pop("summary") - - policy = CreateAppJsonBodyPolicy.from_dict(d.pop("policy")) - - - - - draft_only = d.pop("draft_only", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - create_app_json_body = cls( - path=path, - value=value, - summary=summary, - policy=policy, - draft_only=draft_only, - deployment_message=deployment_message, - ) - - create_app_json_body.additional_properties = d - return create_app_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy.py b/python-client/windmill-api/windmill_api/models/create_app_json_body_policy.py deleted file mode 100644 index eb92560333..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.create_app_json_body_policy_execution_mode import CreateAppJsonBodyPolicyExecutionMode -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.create_app_json_body_policy_triggerables import CreateAppJsonBodyPolicyTriggerables - - - - - -T = TypeVar("T", bound="CreateAppJsonBodyPolicy") - - -@_attrs_define -class CreateAppJsonBodyPolicy: - """ - Attributes: - triggerables (Union[Unset, CreateAppJsonBodyPolicyTriggerables]): - execution_mode (Union[Unset, CreateAppJsonBodyPolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'CreateAppJsonBodyPolicyTriggerables'] = UNSET - execution_mode: Union[Unset, CreateAppJsonBodyPolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_app_json_body_policy_triggerables import CreateAppJsonBodyPolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_app_json_body_policy_triggerables import CreateAppJsonBodyPolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, CreateAppJsonBodyPolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = CreateAppJsonBodyPolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, CreateAppJsonBodyPolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = CreateAppJsonBodyPolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - create_app_json_body_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - create_app_json_body_policy.additional_properties = d - return create_app_json_body_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_execution_mode.py deleted file mode 100644 index 335820c998..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class CreateAppJsonBodyPolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_triggerables.py deleted file mode 100644 index 8aabadfe54..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.create_app_json_body_policy_triggerables_additional_property import CreateAppJsonBodyPolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="CreateAppJsonBodyPolicyTriggerables") - - -@_attrs_define -class CreateAppJsonBodyPolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'CreateAppJsonBodyPolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_app_json_body_policy_triggerables_additional_property import CreateAppJsonBodyPolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_app_json_body_policy_triggerables_additional_property import CreateAppJsonBodyPolicyTriggerablesAdditionalProperty - d = src_dict.copy() - create_app_json_body_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = CreateAppJsonBodyPolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - create_app_json_body_policy_triggerables.additional_properties = additional_properties - return create_app_json_body_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'CreateAppJsonBodyPolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'CreateAppJsonBodyPolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_triggerables_additional_property.py deleted file mode 100644 index df3ef288e9..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_app_json_body_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateAppJsonBodyPolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class CreateAppJsonBodyPolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - create_app_json_body_policy_triggerables_additional_property = cls( - ) - - create_app_json_body_policy_triggerables_additional_property.additional_properties = d - return create_app_json_body_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_draft_json_body.py b/python-client/windmill-api/windmill_api/models/create_draft_json_body.py deleted file mode 100644 index 8167f70e9b..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_draft_json_body.py +++ /dev/null @@ -1,92 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.create_draft_json_body_typ import CreateDraftJsonBodyTyp - - - - - - -T = TypeVar("T", bound="CreateDraftJsonBody") - - -@_attrs_define -class CreateDraftJsonBody: - """ - Attributes: - path (str): - typ (CreateDraftJsonBodyTyp): - value (Union[Unset, Any]): - """ - - path: str - typ: CreateDraftJsonBodyTyp - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - typ = self.typ.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "typ": typ, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - typ = CreateDraftJsonBodyTyp(d.pop("typ")) - - - - - value = d.pop("value", UNSET) - - create_draft_json_body = cls( - path=path, - typ=typ, - value=value, - ) - - create_draft_json_body.additional_properties = d - return create_draft_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_draft_json_body_typ.py b/python-client/windmill-api/windmill_api/models/create_draft_json_body_typ.py deleted file mode 100644 index 7049a8841f..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_draft_json_body_typ.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class CreateDraftJsonBodyTyp(str, Enum): - APP = "app" - FLOW = "flow" - SCRIPT = "script" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/create_flow_json_body.py b/python-client/windmill-api/windmill_api/models/create_flow_json_body.py deleted file mode 100644 index ea6037f501..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_flow_json_body.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateFlowJsonBody") - - -@_attrs_define -class CreateFlowJsonBody: - """ - Attributes: - draft_only (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - """ - - draft_only: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - draft_only = self.draft_only - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - draft_only = d.pop("draft_only", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - create_flow_json_body = cls( - draft_only=draft_only, - deployment_message=deployment_message, - ) - - create_flow_json_body.additional_properties = d - return create_flow_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_folder_json_body.py b/python-client/windmill-api/windmill_api/models/create_folder_json_body.py deleted file mode 100644 index 0eb4c6d4af..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_folder_json_body.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="CreateFolderJsonBody") - - -@_attrs_define -class CreateFolderJsonBody: - """ - Attributes: - name (str): - owners (Union[Unset, List[str]]): - extra_perms (Union[Unset, Any]): - """ - - name: str - owners: Union[Unset, List[str]] = UNSET - extra_perms: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - owners: Union[Unset, List[str]] = UNSET - if not isinstance(self.owners, Unset): - owners = self.owners - - - - - extra_perms = self.extra_perms - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if owners is not UNSET: - field_dict["owners"] = owners - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - owners = cast(List[str], d.pop("owners", UNSET)) - - - extra_perms = d.pop("extra_perms", UNSET) - - create_folder_json_body = cls( - name=name, - owners=owners, - extra_perms=extra_perms, - ) - - create_folder_json_body.additional_properties = d - return create_folder_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_group_json_body.py b/python-client/windmill-api/windmill_api/models/create_group_json_body.py deleted file mode 100644 index 6be811c450..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_group_json_body.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateGroupJsonBody") - - -@_attrs_define -class CreateGroupJsonBody: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - """ - - name: str - summary: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - summary = self.summary - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - create_group_json_body = cls( - name=name, - summary=summary, - ) - - create_group_json_body.additional_properties = d - return create_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_input.py b/python-client/windmill-api/windmill_api/models/create_input.py deleted file mode 100644 index bdbfbf3718..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_input.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.create_input_args import CreateInputArgs - - - - - -T = TypeVar("T", bound="CreateInput") - - -@_attrs_define -class CreateInput: - """ - Attributes: - name (str): - args (CreateInputArgs): - """ - - name: str - args: 'CreateInputArgs' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_input_args import CreateInputArgs - name = self.name - args = self.args.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "args": args, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_input_args import CreateInputArgs - d = src_dict.copy() - name = d.pop("name") - - args = CreateInputArgs.from_dict(d.pop("args")) - - - - - create_input = cls( - name=name, - args=args, - ) - - create_input.additional_properties = d - return create_input - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_input_args.py b/python-client/windmill-api/windmill_api/models/create_input_args.py deleted file mode 100644 index 0546c3f8f2..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_input_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateInputArgs") - - -@_attrs_define -class CreateInputArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - create_input_args = cls( - ) - - create_input_args.additional_properties = d - return create_input_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_input_json_body.py b/python-client/windmill-api/windmill_api/models/create_input_json_body.py deleted file mode 100644 index ee8925819f..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_input_json_body.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.create_input_json_body_args import CreateInputJsonBodyArgs - - - - - -T = TypeVar("T", bound="CreateInputJsonBody") - - -@_attrs_define -class CreateInputJsonBody: - """ - Attributes: - name (str): - args (CreateInputJsonBodyArgs): - """ - - name: str - args: 'CreateInputJsonBodyArgs' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_input_json_body_args import CreateInputJsonBodyArgs - name = self.name - args = self.args.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "args": args, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_input_json_body_args import CreateInputJsonBodyArgs - d = src_dict.copy() - name = d.pop("name") - - args = CreateInputJsonBodyArgs.from_dict(d.pop("args")) - - - - - create_input_json_body = cls( - name=name, - args=args, - ) - - create_input_json_body.additional_properties = d - return create_input_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_input_json_body_args.py b/python-client/windmill-api/windmill_api/models/create_input_json_body_args.py deleted file mode 100644 index c51a2f79bc..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_input_json_body_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateInputJsonBodyArgs") - - -@_attrs_define -class CreateInputJsonBodyArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - create_input_json_body_args = cls( - ) - - create_input_json_body_args.additional_properties = d - return create_input_json_body_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_input_runnable_type.py b/python-client/windmill-api/windmill_api/models/create_input_runnable_type.py deleted file mode 100644 index bf2c4b5507..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_input_runnable_type.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class CreateInputRunnableType(str, Enum): - FLOWPATH = "FlowPath" - SCRIPTHASH = "ScriptHash" - SCRIPTPATH = "ScriptPath" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/create_instance_group_json_body.py b/python-client/windmill-api/windmill_api/models/create_instance_group_json_body.py deleted file mode 100644 index cde229b18a..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_instance_group_json_body.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateInstanceGroupJsonBody") - - -@_attrs_define -class CreateInstanceGroupJsonBody: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - """ - - name: str - summary: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - summary = self.summary - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - create_instance_group_json_body = cls( - name=name, - summary=summary, - ) - - create_instance_group_json_body.additional_properties = d - return create_instance_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_raw_app_json_body.py b/python-client/windmill-api/windmill_api/models/create_raw_app_json_body.py deleted file mode 100644 index f0ff0e32e8..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_raw_app_json_body.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateRawAppJsonBody") - - -@_attrs_define -class CreateRawAppJsonBody: - """ - Attributes: - path (str): - value (str): - summary (str): - """ - - path: str - value: str - summary: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - summary = self.summary - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - "summary": summary, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - summary = d.pop("summary") - - create_raw_app_json_body = cls( - path=path, - value=value, - summary=summary, - ) - - create_raw_app_json_body.additional_properties = d - return create_raw_app_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_resource.py b/python-client/windmill-api/windmill_api/models/create_resource.py deleted file mode 100644 index 12dde9c61a..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_resource.py +++ /dev/null @@ -1,94 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateResource") - - -@_attrs_define -class CreateResource: - """ - Attributes: - path (str): - value (Any): - resource_type (str): - description (Union[Unset, str]): - """ - - path: str - value: Any - resource_type: str - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - resource_type = self.resource_type - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - "resource_type": resource_type, - }) - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - resource_type = d.pop("resource_type") - - description = d.pop("description", UNSET) - - create_resource = cls( - path=path, - value=value, - resource_type=resource_type, - description=description, - ) - - create_resource.additional_properties = d - return create_resource - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_resource_json_body.py b/python-client/windmill-api/windmill_api/models/create_resource_json_body.py deleted file mode 100644 index 4746ef7b30..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_resource_json_body.py +++ /dev/null @@ -1,94 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateResourceJsonBody") - - -@_attrs_define -class CreateResourceJsonBody: - """ - Attributes: - path (str): - value (Any): - resource_type (str): - description (Union[Unset, str]): - """ - - path: str - value: Any - resource_type: str - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - resource_type = self.resource_type - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - "resource_type": resource_type, - }) - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - resource_type = d.pop("resource_type") - - description = d.pop("description", UNSET) - - create_resource_json_body = cls( - path=path, - value=value, - resource_type=resource_type, - description=description, - ) - - create_resource_json_body.additional_properties = d - return create_resource_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_resource_type_json_body.py b/python-client/windmill-api/windmill_api/models/create_resource_type_json_body.py deleted file mode 100644 index 68eeeb33f8..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_resource_type_json_body.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateResourceTypeJsonBody") - - -@_attrs_define -class CreateResourceTypeJsonBody: - """ - Attributes: - name (str): - workspace_id (Union[Unset, str]): - schema (Union[Unset, Any]): - description (Union[Unset, str]): - """ - - name: str - workspace_id: Union[Unset, str] = UNSET - schema: Union[Unset, Any] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - workspace_id = self.workspace_id - schema = self.schema - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if schema is not UNSET: - field_dict["schema"] = schema - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - workspace_id = d.pop("workspace_id", UNSET) - - schema = d.pop("schema", UNSET) - - description = d.pop("description", UNSET) - - create_resource_type_json_body = cls( - name=name, - workspace_id=workspace_id, - schema=schema, - description=description, - ) - - create_resource_type_json_body.additional_properties = d - return create_resource_type_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_schedule_json_body.py b/python-client/windmill-api/windmill_api/models/create_schedule_json_body.py deleted file mode 100644 index eecfe67440..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_schedule_json_body.py +++ /dev/null @@ -1,263 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.create_schedule_json_body_args import CreateScheduleJsonBodyArgs - from ..models.create_schedule_json_body_on_failure_extra_args import CreateScheduleJsonBodyOnFailureExtraArgs - from ..models.create_schedule_json_body_on_recovery_extra_args import CreateScheduleJsonBodyOnRecoveryExtraArgs - from ..models.create_schedule_json_body_retry import CreateScheduleJsonBodyRetry - - - - - -T = TypeVar("T", bound="CreateScheduleJsonBody") - - -@_attrs_define -class CreateScheduleJsonBody: - """ - Attributes: - path (str): - schedule (str): - timezone (str): - script_path (str): - is_flow (bool): - args (CreateScheduleJsonBodyArgs): - enabled (Union[Unset, bool]): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, CreateScheduleJsonBodyOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, CreateScheduleJsonBodyOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, CreateScheduleJsonBodyRetry]): - no_flow_overlap (Union[Unset, bool]): - summary (Union[Unset, str]): - tag (Union[Unset, str]): - """ - - path: str - schedule: str - timezone: str - script_path: str - is_flow: bool - args: 'CreateScheduleJsonBodyArgs' - enabled: Union[Unset, bool] = UNSET - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'CreateScheduleJsonBodyOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'CreateScheduleJsonBodyOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'CreateScheduleJsonBodyRetry'] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_schedule_json_body_args import CreateScheduleJsonBodyArgs - from ..models.create_schedule_json_body_on_failure_extra_args import CreateScheduleJsonBodyOnFailureExtraArgs - from ..models.create_schedule_json_body_on_recovery_extra_args import CreateScheduleJsonBodyOnRecoveryExtraArgs - from ..models.create_schedule_json_body_retry import CreateScheduleJsonBodyRetry - path = self.path - schedule = self.schedule - timezone = self.timezone - script_path = self.script_path - is_flow = self.is_flow - args = self.args.to_dict() - - enabled = self.enabled - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - no_flow_overlap = self.no_flow_overlap - summary = self.summary - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "schedule": schedule, - "timezone": timezone, - "script_path": script_path, - "is_flow": is_flow, - "args": args, - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if summary is not UNSET: - field_dict["summary"] = summary - if tag is not UNSET: - field_dict["tag"] = tag - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_schedule_json_body_args import CreateScheduleJsonBodyArgs - from ..models.create_schedule_json_body_on_failure_extra_args import CreateScheduleJsonBodyOnFailureExtraArgs - from ..models.create_schedule_json_body_on_recovery_extra_args import CreateScheduleJsonBodyOnRecoveryExtraArgs - from ..models.create_schedule_json_body_retry import CreateScheduleJsonBodyRetry - d = src_dict.copy() - path = d.pop("path") - - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - script_path = d.pop("script_path") - - is_flow = d.pop("is_flow") - - args = CreateScheduleJsonBodyArgs.from_dict(d.pop("args")) - - - - - enabled = d.pop("enabled", UNSET) - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, CreateScheduleJsonBodyOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = CreateScheduleJsonBodyOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, CreateScheduleJsonBodyOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = CreateScheduleJsonBodyOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, CreateScheduleJsonBodyRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = CreateScheduleJsonBodyRetry.from_dict(_retry) - - - - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - summary = d.pop("summary", UNSET) - - tag = d.pop("tag", UNSET) - - create_schedule_json_body = cls( - path=path, - schedule=schedule, - timezone=timezone, - script_path=script_path, - is_flow=is_flow, - args=args, - enabled=enabled, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - no_flow_overlap=no_flow_overlap, - summary=summary, - tag=tag, - ) - - create_schedule_json_body.additional_properties = d - return create_schedule_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_args.py b/python-client/windmill-api/windmill_api/models/create_schedule_json_body_args.py deleted file mode 100644 index f0b67c7cb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateScheduleJsonBodyArgs") - - -@_attrs_define -class CreateScheduleJsonBodyArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - create_schedule_json_body_args = cls( - ) - - create_schedule_json_body_args.additional_properties = d - return create_schedule_json_body_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/create_schedule_json_body_on_failure_extra_args.py deleted file mode 100644 index e7f6da175f..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateScheduleJsonBodyOnFailureExtraArgs") - - -@_attrs_define -class CreateScheduleJsonBodyOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - create_schedule_json_body_on_failure_extra_args = cls( - ) - - create_schedule_json_body_on_failure_extra_args.additional_properties = d - return create_schedule_json_body_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/create_schedule_json_body_on_recovery_extra_args.py deleted file mode 100644 index b0c712ba77..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateScheduleJsonBodyOnRecoveryExtraArgs") - - -@_attrs_define -class CreateScheduleJsonBodyOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - create_schedule_json_body_on_recovery_extra_args = cls( - ) - - create_schedule_json_body_on_recovery_extra_args.additional_properties = d - return create_schedule_json_body_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry.py b/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry.py deleted file mode 100644 index c5bbf2fca5..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.create_schedule_json_body_retry_constant import CreateScheduleJsonBodyRetryConstant - from ..models.create_schedule_json_body_retry_exponential import CreateScheduleJsonBodyRetryExponential - - - - - -T = TypeVar("T", bound="CreateScheduleJsonBodyRetry") - - -@_attrs_define -class CreateScheduleJsonBodyRetry: - """ - Attributes: - constant (Union[Unset, CreateScheduleJsonBodyRetryConstant]): - exponential (Union[Unset, CreateScheduleJsonBodyRetryExponential]): - """ - - constant: Union[Unset, 'CreateScheduleJsonBodyRetryConstant'] = UNSET - exponential: Union[Unset, 'CreateScheduleJsonBodyRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_schedule_json_body_retry_constant import CreateScheduleJsonBodyRetryConstant - from ..models.create_schedule_json_body_retry_exponential import CreateScheduleJsonBodyRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_schedule_json_body_retry_constant import CreateScheduleJsonBodyRetryConstant - from ..models.create_schedule_json_body_retry_exponential import CreateScheduleJsonBodyRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, CreateScheduleJsonBodyRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = CreateScheduleJsonBodyRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, CreateScheduleJsonBodyRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = CreateScheduleJsonBodyRetryExponential.from_dict(_exponential) - - - - - create_schedule_json_body_retry = cls( - constant=constant, - exponential=exponential, - ) - - create_schedule_json_body_retry.additional_properties = d - return create_schedule_json_body_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry_constant.py b/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry_constant.py deleted file mode 100644 index 06f06a6211..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateScheduleJsonBodyRetryConstant") - - -@_attrs_define -class CreateScheduleJsonBodyRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - create_schedule_json_body_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - create_schedule_json_body_retry_constant.additional_properties = d - return create_schedule_json_body_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry_exponential.py b/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry_exponential.py deleted file mode 100644 index 73b8c406f6..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_schedule_json_body_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateScheduleJsonBodyRetryExponential") - - -@_attrs_define -class CreateScheduleJsonBodyRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - create_schedule_json_body_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - create_schedule_json_body_retry_exponential.additional_properties = d - return create_schedule_json_body_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_script_json_body.py b/python-client/windmill-api/windmill_api/models/create_script_json_body.py deleted file mode 100644 index 6a58e60287..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_script_json_body.py +++ /dev/null @@ -1,293 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset -from ..models.create_script_json_body_kind import CreateScriptJsonBodyKind -from ..models.create_script_json_body_language import CreateScriptJsonBodyLanguage - -if TYPE_CHECKING: - from ..models.create_script_json_body_schema import CreateScriptJsonBodySchema - - - - - -T = TypeVar("T", bound="CreateScriptJsonBody") - - -@_attrs_define -class CreateScriptJsonBody: - """ - Attributes: - path (str): - summary (str): - description (str): - content (str): - language (CreateScriptJsonBodyLanguage): - parent_hash (Union[Unset, str]): - schema (Union[Unset, CreateScriptJsonBodySchema]): - is_template (Union[Unset, bool]): - lock (Union[Unset, List[str]]): - kind (Union[Unset, CreateScriptJsonBodyKind]): - tag (Union[Unset, str]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - """ - - path: str - summary: str - description: str - content: str - language: CreateScriptJsonBodyLanguage - parent_hash: Union[Unset, str] = UNSET - schema: Union[Unset, 'CreateScriptJsonBodySchema'] = UNSET - is_template: Union[Unset, bool] = UNSET - lock: Union[Unset, List[str]] = UNSET - kind: Union[Unset, CreateScriptJsonBodyKind] = UNSET - tag: Union[Unset, str] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.create_script_json_body_schema import CreateScriptJsonBodySchema - path = self.path - summary = self.summary - description = self.description - content = self.content - language = self.language.value - - parent_hash = self.parent_hash - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - is_template = self.is_template - lock: Union[Unset, List[str]] = UNSET - if not isinstance(self.lock, Unset): - lock = self.lock - - - - - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - tag = self.tag - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "summary": summary, - "description": description, - "content": content, - "language": language, - }) - if parent_hash is not UNSET: - field_dict["parent_hash"] = parent_hash - if schema is not UNSET: - field_dict["schema"] = schema - if is_template is not UNSET: - field_dict["is_template"] = is_template - if lock is not UNSET: - field_dict["lock"] = lock - if kind is not UNSET: - field_dict["kind"] = kind - if tag is not UNSET: - field_dict["tag"] = tag - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.create_script_json_body_schema import CreateScriptJsonBodySchema - d = src_dict.copy() - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - language = CreateScriptJsonBodyLanguage(d.pop("language")) - - - - - parent_hash = d.pop("parent_hash", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, CreateScriptJsonBodySchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = CreateScriptJsonBodySchema.from_dict(_schema) - - - - - is_template = d.pop("is_template", UNSET) - - lock = cast(List[str], d.pop("lock", UNSET)) - - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, CreateScriptJsonBodyKind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = CreateScriptJsonBodyKind(_kind) - - - - - tag = d.pop("tag", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - create_script_json_body = cls( - path=path, - summary=summary, - description=description, - content=content, - language=language, - parent_hash=parent_hash, - schema=schema, - is_template=is_template, - lock=lock, - kind=kind, - tag=tag, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - deployment_message=deployment_message, - ) - - create_script_json_body.additional_properties = d - return create_script_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_script_json_body_kind.py b/python-client/windmill-api/windmill_api/models/create_script_json_body_kind.py deleted file mode 100644 index 71ccfc0e5f..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_script_json_body_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class CreateScriptJsonBodyKind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/create_script_json_body_language.py b/python-client/windmill-api/windmill_api/models/create_script_json_body_language.py deleted file mode 100644 index 1c94ace09b..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_script_json_body_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class CreateScriptJsonBodyLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/create_script_json_body_schema.py b/python-client/windmill-api/windmill_api/models/create_script_json_body_schema.py deleted file mode 100644 index 5b650428df..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_script_json_body_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateScriptJsonBodySchema") - - -@_attrs_define -class CreateScriptJsonBodySchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - create_script_json_body_schema = cls( - ) - - create_script_json_body_schema.additional_properties = d - return create_script_json_body_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_token_impersonate_json_body.py b/python-client/windmill-api/windmill_api/models/create_token_impersonate_json_body.py deleted file mode 100644 index 03aa681210..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_token_impersonate_json_body.py +++ /dev/null @@ -1,102 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateTokenImpersonateJsonBody") - - -@_attrs_define -class CreateTokenImpersonateJsonBody: - """ - Attributes: - impersonate_email (str): - label (Union[Unset, str]): - expiration (Union[Unset, datetime.datetime]): - """ - - impersonate_email: str - label: Union[Unset, str] = UNSET - expiration: Union[Unset, datetime.datetime] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - impersonate_email = self.impersonate_email - label = self.label - expiration: Union[Unset, str] = UNSET - if not isinstance(self.expiration, Unset): - expiration = self.expiration.isoformat() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "impersonate_email": impersonate_email, - }) - if label is not UNSET: - field_dict["label"] = label - if expiration is not UNSET: - field_dict["expiration"] = expiration - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - impersonate_email = d.pop("impersonate_email") - - label = d.pop("label", UNSET) - - _expiration = d.pop("expiration", UNSET) - expiration: Union[Unset, datetime.datetime] - if isinstance(_expiration, Unset): - expiration = UNSET - else: - expiration = isoparse(_expiration) - - - - - create_token_impersonate_json_body = cls( - impersonate_email=impersonate_email, - label=label, - expiration=expiration, - ) - - create_token_impersonate_json_body.additional_properties = d - return create_token_impersonate_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_token_json_body.py b/python-client/windmill-api/windmill_api/models/create_token_json_body.py deleted file mode 100644 index 8aa5adf4f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_token_json_body.py +++ /dev/null @@ -1,111 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateTokenJsonBody") - - -@_attrs_define -class CreateTokenJsonBody: - """ - Attributes: - label (Union[Unset, str]): - expiration (Union[Unset, datetime.datetime]): - scopes (Union[Unset, List[str]]): - """ - - label: Union[Unset, str] = UNSET - expiration: Union[Unset, datetime.datetime] = UNSET - scopes: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - label = self.label - expiration: Union[Unset, str] = UNSET - if not isinstance(self.expiration, Unset): - expiration = self.expiration.isoformat() - - scopes: Union[Unset, List[str]] = UNSET - if not isinstance(self.scopes, Unset): - scopes = self.scopes - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if label is not UNSET: - field_dict["label"] = label - if expiration is not UNSET: - field_dict["expiration"] = expiration - if scopes is not UNSET: - field_dict["scopes"] = scopes - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - label = d.pop("label", UNSET) - - _expiration = d.pop("expiration", UNSET) - expiration: Union[Unset, datetime.datetime] - if isinstance(_expiration, Unset): - expiration = UNSET - else: - expiration = isoparse(_expiration) - - - - - scopes = cast(List[str], d.pop("scopes", UNSET)) - - - create_token_json_body = cls( - label=label, - expiration=expiration, - scopes=scopes, - ) - - create_token_json_body.additional_properties = d - return create_token_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_user_globally_json_body.py b/python-client/windmill-api/windmill_api/models/create_user_globally_json_body.py deleted file mode 100644 index b4a881f0eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_user_globally_json_body.py +++ /dev/null @@ -1,102 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateUserGloballyJsonBody") - - -@_attrs_define -class CreateUserGloballyJsonBody: - """ - Attributes: - email (str): - password (str): - super_admin (bool): - name (Union[Unset, str]): - company (Union[Unset, str]): - """ - - email: str - password: str - super_admin: bool - name: Union[Unset, str] = UNSET - company: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - password = self.password - super_admin = self.super_admin - name = self.name - company = self.company - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "password": password, - "super_admin": super_admin, - }) - if name is not UNSET: - field_dict["name"] = name - if company is not UNSET: - field_dict["company"] = company - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - password = d.pop("password") - - super_admin = d.pop("super_admin") - - name = d.pop("name", UNSET) - - company = d.pop("company", UNSET) - - create_user_globally_json_body = cls( - email=email, - password=password, - super_admin=super_admin, - name=name, - company=company, - ) - - create_user_globally_json_body.additional_properties = d - return create_user_globally_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_user_json_body.py b/python-client/windmill-api/windmill_api/models/create_user_json_body.py deleted file mode 100644 index e8b75383fc..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_user_json_body.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateUserJsonBody") - - -@_attrs_define -class CreateUserJsonBody: - """ - Attributes: - email (str): - username (str): - is_admin (bool): - """ - - email: str - username: str - is_admin: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - username = self.username - is_admin = self.is_admin - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "username": username, - "is_admin": is_admin, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - username = d.pop("username") - - is_admin = d.pop("is_admin") - - create_user_json_body = cls( - email=email, - username=username, - is_admin=is_admin, - ) - - create_user_json_body.additional_properties = d - return create_user_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_variable.py b/python-client/windmill-api/windmill_api/models/create_variable.py deleted file mode 100644 index cc7b3db2aa..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_variable.py +++ /dev/null @@ -1,109 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateVariable") - - -@_attrs_define -class CreateVariable: - """ - Attributes: - path (str): - value (str): - is_secret (bool): - description (str): - account (Union[Unset, int]): - is_oauth (Union[Unset, bool]): - """ - - path: str - value: str - is_secret: bool - description: str - account: Union[Unset, int] = UNSET - is_oauth: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - is_secret = self.is_secret - description = self.description - account = self.account - is_oauth = self.is_oauth - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - "is_secret": is_secret, - "description": description, - }) - if account is not UNSET: - field_dict["account"] = account - if is_oauth is not UNSET: - field_dict["is_oauth"] = is_oauth - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - is_secret = d.pop("is_secret") - - description = d.pop("description") - - account = d.pop("account", UNSET) - - is_oauth = d.pop("is_oauth", UNSET) - - create_variable = cls( - path=path, - value=value, - is_secret=is_secret, - description=description, - account=account, - is_oauth=is_oauth, - ) - - create_variable.additional_properties = d - return create_variable - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_variable_json_body.py b/python-client/windmill-api/windmill_api/models/create_variable_json_body.py deleted file mode 100644 index 678f7f70f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_variable_json_body.py +++ /dev/null @@ -1,109 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="CreateVariableJsonBody") - - -@_attrs_define -class CreateVariableJsonBody: - """ - Attributes: - path (str): - value (str): - is_secret (bool): - description (str): - account (Union[Unset, int]): - is_oauth (Union[Unset, bool]): - """ - - path: str - value: str - is_secret: bool - description: str - account: Union[Unset, int] = UNSET - is_oauth: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - is_secret = self.is_secret - description = self.description - account = self.account - is_oauth = self.is_oauth - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - "is_secret": is_secret, - "description": description, - }) - if account is not UNSET: - field_dict["account"] = account - if is_oauth is not UNSET: - field_dict["is_oauth"] = is_oauth - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - is_secret = d.pop("is_secret") - - description = d.pop("description") - - account = d.pop("account", UNSET) - - is_oauth = d.pop("is_oauth", UNSET) - - create_variable_json_body = cls( - path=path, - value=value, - is_secret=is_secret, - description=description, - account=account, - is_oauth=is_oauth, - ) - - create_variable_json_body.additional_properties = d - return create_variable_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_workspace.py b/python-client/windmill-api/windmill_api/models/create_workspace.py deleted file mode 100644 index af1194b61e..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_workspace.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateWorkspace") - - -@_attrs_define -class CreateWorkspace: - """ - Attributes: - id (str): - name (str): - username (str): - """ - - id: str - name: str - username: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "username": username, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - username = d.pop("username") - - create_workspace = cls( - id=id, - name=name, - username=username, - ) - - create_workspace.additional_properties = d - return create_workspace - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/create_workspace_json_body.py b/python-client/windmill-api/windmill_api/models/create_workspace_json_body.py deleted file mode 100644 index 5284f827c3..0000000000 --- a/python-client/windmill-api/windmill_api/models/create_workspace_json_body.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="CreateWorkspaceJsonBody") - - -@_attrs_define -class CreateWorkspaceJsonBody: - """ - Attributes: - id (str): - name (str): - username (str): - """ - - id: str - name: str - username: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "username": username, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - username = d.pop("username") - - create_workspace_json_body = cls( - id=id, - name=name, - username=username, - ) - - create_workspace_json_body.additional_properties = d - return create_workspace_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/decline_invite_json_body.py b/python-client/windmill-api/windmill_api/models/decline_invite_json_body.py deleted file mode 100644 index 35863809fd..0000000000 --- a/python-client/windmill-api/windmill_api/models/decline_invite_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeclineInviteJsonBody") - - -@_attrs_define -class DeclineInviteJsonBody: - """ - Attributes: - workspace_id (str): - """ - - workspace_id: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - workspace_id = self.workspace_id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - decline_invite_json_body = cls( - workspace_id=workspace_id, - ) - - decline_invite_json_body.additional_properties = d - return decline_invite_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200.py deleted file mode 100644 index 7533cab683..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200.py +++ /dev/null @@ -1,372 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.delete_completed_job_response_200_language import DeleteCompletedJobResponse200Language -from ..models.delete_completed_job_response_200_job_kind import DeleteCompletedJobResponse200JobKind -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow import DeleteCompletedJobResponse200RawFlow - from ..models.delete_completed_job_response_200_flow_status import DeleteCompletedJobResponse200FlowStatus - from ..models.delete_completed_job_response_200_args import DeleteCompletedJobResponse200Args - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200") - - -@_attrs_define -class DeleteCompletedJobResponse200: - """ - Attributes: - id (str): - created_by (str): - created_at (datetime.datetime): - started_at (datetime.datetime): - duration_ms (int): - success (bool): - canceled (bool): - job_kind (DeleteCompletedJobResponse200JobKind): - permissioned_as (str): The user (u/userfoo) or group (g/groupfoo) whom - the execution of this script will be permissioned_as and by extension its DT_TOKEN. - is_flow_step (bool): - is_skipped (bool): - email (str): - visible_to_owner (bool): - tag (str): - workspace_id (Union[Unset, str]): - parent_job (Union[Unset, str]): - script_path (Union[Unset, str]): - script_hash (Union[Unset, str]): - args (Union[Unset, DeleteCompletedJobResponse200Args]): - result (Union[Unset, Any]): - logs (Union[Unset, str]): - deleted (Union[Unset, bool]): - raw_code (Union[Unset, str]): - canceled_by (Union[Unset, str]): - canceled_reason (Union[Unset, str]): - schedule_path (Union[Unset, str]): - flow_status (Union[Unset, DeleteCompletedJobResponse200FlowStatus]): - raw_flow (Union[Unset, DeleteCompletedJobResponse200RawFlow]): - language (Union[Unset, DeleteCompletedJobResponse200Language]): - mem_peak (Union[Unset, int]): - priority (Union[Unset, int]): - """ - - id: str - created_by: str - created_at: datetime.datetime - started_at: datetime.datetime - duration_ms: int - success: bool - canceled: bool - job_kind: DeleteCompletedJobResponse200JobKind - permissioned_as: str - is_flow_step: bool - is_skipped: bool - email: str - visible_to_owner: bool - tag: str - workspace_id: Union[Unset, str] = UNSET - parent_job: Union[Unset, str] = UNSET - script_path: Union[Unset, str] = UNSET - script_hash: Union[Unset, str] = UNSET - args: Union[Unset, 'DeleteCompletedJobResponse200Args'] = UNSET - result: Union[Unset, Any] = UNSET - logs: Union[Unset, str] = UNSET - deleted: Union[Unset, bool] = UNSET - raw_code: Union[Unset, str] = UNSET - canceled_by: Union[Unset, str] = UNSET - canceled_reason: Union[Unset, str] = UNSET - schedule_path: Union[Unset, str] = UNSET - flow_status: Union[Unset, 'DeleteCompletedJobResponse200FlowStatus'] = UNSET - raw_flow: Union[Unset, 'DeleteCompletedJobResponse200RawFlow'] = UNSET - language: Union[Unset, DeleteCompletedJobResponse200Language] = UNSET - mem_peak: Union[Unset, int] = UNSET - priority: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow import DeleteCompletedJobResponse200RawFlow - from ..models.delete_completed_job_response_200_flow_status import DeleteCompletedJobResponse200FlowStatus - from ..models.delete_completed_job_response_200_args import DeleteCompletedJobResponse200Args - id = self.id - created_by = self.created_by - created_at = self.created_at.isoformat() - - started_at = self.started_at.isoformat() - - duration_ms = self.duration_ms - success = self.success - canceled = self.canceled - job_kind = self.job_kind.value - - permissioned_as = self.permissioned_as - is_flow_step = self.is_flow_step - is_skipped = self.is_skipped - email = self.email - visible_to_owner = self.visible_to_owner - tag = self.tag - workspace_id = self.workspace_id - parent_job = self.parent_job - script_path = self.script_path - script_hash = self.script_hash - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - result = self.result - logs = self.logs - deleted = self.deleted - raw_code = self.raw_code - canceled_by = self.canceled_by - canceled_reason = self.canceled_reason - schedule_path = self.schedule_path - flow_status: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.flow_status, Unset): - flow_status = self.flow_status.to_dict() - - raw_flow: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.raw_flow, Unset): - raw_flow = self.raw_flow.to_dict() - - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - mem_peak = self.mem_peak - priority = self.priority - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "created_by": created_by, - "created_at": created_at, - "started_at": started_at, - "duration_ms": duration_ms, - "success": success, - "canceled": canceled, - "job_kind": job_kind, - "permissioned_as": permissioned_as, - "is_flow_step": is_flow_step, - "is_skipped": is_skipped, - "email": email, - "visible_to_owner": visible_to_owner, - "tag": tag, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_job is not UNSET: - field_dict["parent_job"] = parent_job - if script_path is not UNSET: - field_dict["script_path"] = script_path - if script_hash is not UNSET: - field_dict["script_hash"] = script_hash - if args is not UNSET: - field_dict["args"] = args - if result is not UNSET: - field_dict["result"] = result - if logs is not UNSET: - field_dict["logs"] = logs - if deleted is not UNSET: - field_dict["deleted"] = deleted - if raw_code is not UNSET: - field_dict["raw_code"] = raw_code - if canceled_by is not UNSET: - field_dict["canceled_by"] = canceled_by - if canceled_reason is not UNSET: - field_dict["canceled_reason"] = canceled_reason - if schedule_path is not UNSET: - field_dict["schedule_path"] = schedule_path - if flow_status is not UNSET: - field_dict["flow_status"] = flow_status - if raw_flow is not UNSET: - field_dict["raw_flow"] = raw_flow - if language is not UNSET: - field_dict["language"] = language - if mem_peak is not UNSET: - field_dict["mem_peak"] = mem_peak - if priority is not UNSET: - field_dict["priority"] = priority - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow import DeleteCompletedJobResponse200RawFlow - from ..models.delete_completed_job_response_200_flow_status import DeleteCompletedJobResponse200FlowStatus - from ..models.delete_completed_job_response_200_args import DeleteCompletedJobResponse200Args - d = src_dict.copy() - id = d.pop("id") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - started_at = isoparse(d.pop("started_at")) - - - - - duration_ms = d.pop("duration_ms") - - success = d.pop("success") - - canceled = d.pop("canceled") - - job_kind = DeleteCompletedJobResponse200JobKind(d.pop("job_kind")) - - - - - permissioned_as = d.pop("permissioned_as") - - is_flow_step = d.pop("is_flow_step") - - is_skipped = d.pop("is_skipped") - - email = d.pop("email") - - visible_to_owner = d.pop("visible_to_owner") - - tag = d.pop("tag") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_job = d.pop("parent_job", UNSET) - - script_path = d.pop("script_path", UNSET) - - script_hash = d.pop("script_hash", UNSET) - - _args = d.pop("args", UNSET) - args: Union[Unset, DeleteCompletedJobResponse200Args] - if isinstance(_args, Unset): - args = UNSET - else: - args = DeleteCompletedJobResponse200Args.from_dict(_args) - - - - - result = d.pop("result", UNSET) - - logs = d.pop("logs", UNSET) - - deleted = d.pop("deleted", UNSET) - - raw_code = d.pop("raw_code", UNSET) - - canceled_by = d.pop("canceled_by", UNSET) - - canceled_reason = d.pop("canceled_reason", UNSET) - - schedule_path = d.pop("schedule_path", UNSET) - - _flow_status = d.pop("flow_status", UNSET) - flow_status: Union[Unset, DeleteCompletedJobResponse200FlowStatus] - if isinstance(_flow_status, Unset): - flow_status = UNSET - else: - flow_status = DeleteCompletedJobResponse200FlowStatus.from_dict(_flow_status) - - - - - _raw_flow = d.pop("raw_flow", UNSET) - raw_flow: Union[Unset, DeleteCompletedJobResponse200RawFlow] - if isinstance(_raw_flow, Unset): - raw_flow = UNSET - else: - raw_flow = DeleteCompletedJobResponse200RawFlow.from_dict(_raw_flow) - - - - - _language = d.pop("language", UNSET) - language: Union[Unset, DeleteCompletedJobResponse200Language] - if isinstance(_language, Unset): - language = UNSET - else: - language = DeleteCompletedJobResponse200Language(_language) - - - - - mem_peak = d.pop("mem_peak", UNSET) - - priority = d.pop("priority", UNSET) - - delete_completed_job_response_200 = cls( - id=id, - created_by=created_by, - created_at=created_at, - started_at=started_at, - duration_ms=duration_ms, - success=success, - canceled=canceled, - job_kind=job_kind, - permissioned_as=permissioned_as, - is_flow_step=is_flow_step, - is_skipped=is_skipped, - email=email, - visible_to_owner=visible_to_owner, - tag=tag, - workspace_id=workspace_id, - parent_job=parent_job, - script_path=script_path, - script_hash=script_hash, - args=args, - result=result, - logs=logs, - deleted=deleted, - raw_code=raw_code, - canceled_by=canceled_by, - canceled_reason=canceled_reason, - schedule_path=schedule_path, - flow_status=flow_status, - raw_flow=raw_flow, - language=language, - mem_peak=mem_peak, - priority=priority, - ) - - delete_completed_job_response_200.additional_properties = d - return delete_completed_job_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_args.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_args.py deleted file mode 100644 index e6e98cc934..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200Args") - - -@_attrs_define -class DeleteCompletedJobResponse200Args: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - delete_completed_job_response_200_args = cls( - ) - - delete_completed_job_response_200_args.additional_properties = d - return delete_completed_job_response_200_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status.py deleted file mode 100644 index 736987e730..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status.py +++ /dev/null @@ -1,138 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_flow_status_retry import DeleteCompletedJobResponse200FlowStatusRetry - from ..models.delete_completed_job_response_200_flow_status_modules_item import DeleteCompletedJobResponse200FlowStatusModulesItem - from ..models.delete_completed_job_response_200_flow_status_failure_module import DeleteCompletedJobResponse200FlowStatusFailureModule - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatus") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatus: - """ - Attributes: - step (int): - modules (List['DeleteCompletedJobResponse200FlowStatusModulesItem']): - failure_module (DeleteCompletedJobResponse200FlowStatusFailureModule): - retry (Union[Unset, DeleteCompletedJobResponse200FlowStatusRetry]): - """ - - step: int - modules: List['DeleteCompletedJobResponse200FlowStatusModulesItem'] - failure_module: 'DeleteCompletedJobResponse200FlowStatusFailureModule' - retry: Union[Unset, 'DeleteCompletedJobResponse200FlowStatusRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_flow_status_retry import DeleteCompletedJobResponse200FlowStatusRetry - from ..models.delete_completed_job_response_200_flow_status_modules_item import DeleteCompletedJobResponse200FlowStatusModulesItem - from ..models.delete_completed_job_response_200_flow_status_failure_module import DeleteCompletedJobResponse200FlowStatusFailureModule - step = self.step - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module = self.failure_module.to_dict() - - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "step": step, - "modules": modules, - "failure_module": failure_module, - }) - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_flow_status_retry import DeleteCompletedJobResponse200FlowStatusRetry - from ..models.delete_completed_job_response_200_flow_status_modules_item import DeleteCompletedJobResponse200FlowStatusModulesItem - from ..models.delete_completed_job_response_200_flow_status_failure_module import DeleteCompletedJobResponse200FlowStatusFailureModule - d = src_dict.copy() - step = d.pop("step") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = DeleteCompletedJobResponse200FlowStatusModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - failure_module = DeleteCompletedJobResponse200FlowStatusFailureModule.from_dict(d.pop("failure_module")) - - - - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, DeleteCompletedJobResponse200FlowStatusRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = DeleteCompletedJobResponse200FlowStatusRetry.from_dict(_retry) - - - - - delete_completed_job_response_200_flow_status = cls( - step=step, - modules=modules, - failure_module=failure_module, - retry=retry, - ) - - delete_completed_job_response_200_flow_status.additional_properties = d - return delete_completed_job_response_200_flow_status - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module.py deleted file mode 100644 index 78dd03276a..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module.py +++ /dev/null @@ -1,223 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset -from ..models.delete_completed_job_response_200_flow_status_failure_module_type import DeleteCompletedJobResponse200FlowStatusFailureModuleType - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_flow_status_failure_module_branch_chosen import DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen - from ..models.delete_completed_job_response_200_flow_status_failure_module_iterator import DeleteCompletedJobResponse200FlowStatusFailureModuleIterator - from ..models.delete_completed_job_response_200_flow_status_failure_module_approvers_item import DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem - from ..models.delete_completed_job_response_200_flow_status_failure_module_branchall import DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusFailureModule") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusFailureModule: - """ - Attributes: - type (DeleteCompletedJobResponse200FlowStatusFailureModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, DeleteCompletedJobResponse200FlowStatusFailureModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen]): - branchall (Union[Unset, DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall]): - approvers (Union[Unset, List['DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem']]): - parent_module (Union[Unset, str]): - """ - - type: DeleteCompletedJobResponse200FlowStatusFailureModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'DeleteCompletedJobResponse200FlowStatusFailureModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall'] = UNSET - approvers: Union[Unset, List['DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem']] = UNSET - parent_module: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_flow_status_failure_module_branch_chosen import DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen - from ..models.delete_completed_job_response_200_flow_status_failure_module_iterator import DeleteCompletedJobResponse200FlowStatusFailureModuleIterator - from ..models.delete_completed_job_response_200_flow_status_failure_module_approvers_item import DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem - from ..models.delete_completed_job_response_200_flow_status_failure_module_branchall import DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - parent_module = self.parent_module - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - if parent_module is not UNSET: - field_dict["parent_module"] = parent_module - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_flow_status_failure_module_branch_chosen import DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen - from ..models.delete_completed_job_response_200_flow_status_failure_module_iterator import DeleteCompletedJobResponse200FlowStatusFailureModuleIterator - from ..models.delete_completed_job_response_200_flow_status_failure_module_approvers_item import DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem - from ..models.delete_completed_job_response_200_flow_status_failure_module_branchall import DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall - d = src_dict.copy() - type = DeleteCompletedJobResponse200FlowStatusFailureModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, DeleteCompletedJobResponse200FlowStatusFailureModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = DeleteCompletedJobResponse200FlowStatusFailureModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - parent_module = d.pop("parent_module", UNSET) - - delete_completed_job_response_200_flow_status_failure_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - parent_module=parent_module, - ) - - delete_completed_job_response_200_flow_status_failure_module.additional_properties = d - return delete_completed_job_response_200_flow_status_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_approvers_item.py deleted file mode 100644 index 7febd8828e..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusFailureModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - delete_completed_job_response_200_flow_status_failure_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - delete_completed_job_response_200_flow_status_failure_module_approvers_item.additional_properties = d - return delete_completed_job_response_200_flow_status_failure_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branch_chosen.py deleted file mode 100644 index df41b810ef..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.delete_completed_job_response_200_flow_status_failure_module_branch_chosen_type import DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosenType -from ..types import UNSET, Unset -from typing import Union - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosen: - """ - Attributes: - type (DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - delete_completed_job_response_200_flow_status_failure_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - delete_completed_job_response_200_flow_status_failure_module_branch_chosen.additional_properties = d - return delete_completed_job_response_200_flow_status_failure_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branch_chosen_type.py deleted file mode 100644 index f7c1fa7310..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200FlowStatusFailureModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branchall.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branchall.py deleted file mode 100644 index 8239d4bf8d..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusFailureModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - delete_completed_job_response_200_flow_status_failure_module_branchall = cls( - branch=branch, - len_=len_, - ) - - delete_completed_job_response_200_flow_status_failure_module_branchall.additional_properties = d - return delete_completed_job_response_200_flow_status_failure_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_iterator.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_iterator.py deleted file mode 100644 index c6c0b93607..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusFailureModuleIterator") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusFailureModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - delete_completed_job_response_200_flow_status_failure_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - delete_completed_job_response_200_flow_status_failure_module_iterator.additional_properties = d - return delete_completed_job_response_200_flow_status_failure_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_type.py deleted file mode 100644 index 8615cd8548..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_failure_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200FlowStatusFailureModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item.py deleted file mode 100644 index b2ef8dd48e..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.delete_completed_job_response_200_flow_status_modules_item_type import DeleteCompletedJobResponse200FlowStatusModulesItemType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_flow_status_modules_item_branch_chosen import DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen - from ..models.delete_completed_job_response_200_flow_status_modules_item_iterator import DeleteCompletedJobResponse200FlowStatusModulesItemIterator - from ..models.delete_completed_job_response_200_flow_status_modules_item_branchall import DeleteCompletedJobResponse200FlowStatusModulesItemBranchall - from ..models.delete_completed_job_response_200_flow_status_modules_item_approvers_item import DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusModulesItem") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusModulesItem: - """ - Attributes: - type (DeleteCompletedJobResponse200FlowStatusModulesItemType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, DeleteCompletedJobResponse200FlowStatusModulesItemIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen]): - branchall (Union[Unset, DeleteCompletedJobResponse200FlowStatusModulesItemBranchall]): - approvers (Union[Unset, List['DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem']]): - """ - - type: DeleteCompletedJobResponse200FlowStatusModulesItemType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'DeleteCompletedJobResponse200FlowStatusModulesItemIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen'] = UNSET - branchall: Union[Unset, 'DeleteCompletedJobResponse200FlowStatusModulesItemBranchall'] = UNSET - approvers: Union[Unset, List['DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_flow_status_modules_item_branch_chosen import DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen - from ..models.delete_completed_job_response_200_flow_status_modules_item_iterator import DeleteCompletedJobResponse200FlowStatusModulesItemIterator - from ..models.delete_completed_job_response_200_flow_status_modules_item_branchall import DeleteCompletedJobResponse200FlowStatusModulesItemBranchall - from ..models.delete_completed_job_response_200_flow_status_modules_item_approvers_item import DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_flow_status_modules_item_branch_chosen import DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen - from ..models.delete_completed_job_response_200_flow_status_modules_item_iterator import DeleteCompletedJobResponse200FlowStatusModulesItemIterator - from ..models.delete_completed_job_response_200_flow_status_modules_item_branchall import DeleteCompletedJobResponse200FlowStatusModulesItemBranchall - from ..models.delete_completed_job_response_200_flow_status_modules_item_approvers_item import DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem - d = src_dict.copy() - type = DeleteCompletedJobResponse200FlowStatusModulesItemType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, DeleteCompletedJobResponse200FlowStatusModulesItemIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = DeleteCompletedJobResponse200FlowStatusModulesItemIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, DeleteCompletedJobResponse200FlowStatusModulesItemBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = DeleteCompletedJobResponse200FlowStatusModulesItemBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - delete_completed_job_response_200_flow_status_modules_item = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - delete_completed_job_response_200_flow_status_modules_item.additional_properties = d - return delete_completed_job_response_200_flow_status_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_approvers_item.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_approvers_item.py deleted file mode 100644 index bca2c782b7..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusModulesItemApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - delete_completed_job_response_200_flow_status_modules_item_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - delete_completed_job_response_200_flow_status_modules_item_approvers_item.additional_properties = d - return delete_completed_job_response_200_flow_status_modules_item_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branch_chosen.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branch_chosen.py deleted file mode 100644 index e28d82e6a5..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.delete_completed_job_response_200_flow_status_modules_item_branch_chosen_type import DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosenType - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosen: - """ - Attributes: - type (DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosenType): - branch (Union[Unset, int]): - """ - - type: DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - delete_completed_job_response_200_flow_status_modules_item_branch_chosen = cls( - type=type, - branch=branch, - ) - - delete_completed_job_response_200_flow_status_modules_item_branch_chosen.additional_properties = d - return delete_completed_job_response_200_flow_status_modules_item_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branch_chosen_type.py deleted file mode 100644 index 0bc9bee780..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200FlowStatusModulesItemBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branchall.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branchall.py deleted file mode 100644 index 0b11332b9e..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusModulesItemBranchall") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusModulesItemBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - delete_completed_job_response_200_flow_status_modules_item_branchall = cls( - branch=branch, - len_=len_, - ) - - delete_completed_job_response_200_flow_status_modules_item_branchall.additional_properties = d - return delete_completed_job_response_200_flow_status_modules_item_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_iterator.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_iterator.py deleted file mode 100644 index 48eeba8499..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusModulesItemIterator") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusModulesItemIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - delete_completed_job_response_200_flow_status_modules_item_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - delete_completed_job_response_200_flow_status_modules_item_iterator.additional_properties = d - return delete_completed_job_response_200_flow_status_modules_item_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_type.py deleted file mode 100644 index b1c3b91880..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_modules_item_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200FlowStatusModulesItemType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_retry.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_retry.py deleted file mode 100644 index 171653495f..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_flow_status_retry.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200FlowStatusRetry") - - -@_attrs_define -class DeleteCompletedJobResponse200FlowStatusRetry: - """ - Attributes: - fail_count (Union[Unset, int]): - failed_jobs (Union[Unset, List[str]]): - """ - - fail_count: Union[Unset, int] = UNSET - failed_jobs: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - fail_count = self.fail_count - failed_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.failed_jobs, Unset): - failed_jobs = self.failed_jobs - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if fail_count is not UNSET: - field_dict["fail_count"] = fail_count - if failed_jobs is not UNSET: - field_dict["failed_jobs"] = failed_jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - fail_count = d.pop("fail_count", UNSET) - - failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET)) - - - delete_completed_job_response_200_flow_status_retry = cls( - fail_count=fail_count, - failed_jobs=failed_jobs, - ) - - delete_completed_job_response_200_flow_status_retry.additional_properties = d - return delete_completed_job_response_200_flow_status_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_job_kind.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_job_kind.py deleted file mode 100644 index cd9404f2b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_job_kind.py +++ /dev/null @@ -1,17 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200JobKind(str, Enum): - APPDEPENDENCIES = "appdependencies" - DEPENDENCIES = "dependencies" - DEPLOYMENTCALLBACK = "deploymentcallback" - FLOW = "flow" - FLOWDEPENDENCIES = "flowdependencies" - FLOWPREVIEW = "flowpreview" - IDENTITY = "identity" - PREVIEW = "preview" - SCRIPT = "script" - SCRIPT_HUB = "script_hub" - SINGLESCRIPTFLOW = "singlescriptflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_language.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_language.py deleted file mode 100644 index 2201cc2bcb..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow.py deleted file mode 100644 index 527c2af6f4..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_modules_item import DeleteCompletedJobResponse200RawFlowModulesItem - from ..models.delete_completed_job_response_200_raw_flow_failure_module import DeleteCompletedJobResponse200RawFlowFailureModule - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlow") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlow: - """ - Attributes: - modules (List['DeleteCompletedJobResponse200RawFlowModulesItem']): - failure_module (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['DeleteCompletedJobResponse200RawFlowModulesItem'] - failure_module: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_modules_item import DeleteCompletedJobResponse200RawFlowModulesItem - from ..models.delete_completed_job_response_200_raw_flow_failure_module import DeleteCompletedJobResponse200RawFlowFailureModule - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_modules_item import DeleteCompletedJobResponse200RawFlowModulesItem - from ..models.delete_completed_job_response_200_raw_flow_failure_module import DeleteCompletedJobResponse200RawFlowFailureModule - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = DeleteCompletedJobResponse200RawFlowModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = DeleteCompletedJobResponse200RawFlowFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - delete_completed_job_response_200_raw_flow = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - delete_completed_job_response_200_raw_flow.additional_properties = d - return delete_completed_job_response_200_raw_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module.py deleted file mode 100644 index 989d31844c..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_mock import DeleteCompletedJobResponse200RawFlowFailureModuleMock - from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0 import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0 - from ..models.delete_completed_job_response_200_raw_flow_failure_module_stop_after_if import DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend import DeleteCompletedJobResponse200RawFlowFailureModuleSuspend - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry import DeleteCompletedJobResponse200RawFlowFailureModuleRetry - from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1 import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1 - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModule") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf]): - sleep (Union['DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0', - 'DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleMock]): - suspend (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf'] = UNSET - sleep: Union['DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0', 'DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleMock'] = UNSET - suspend: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_mock import DeleteCompletedJobResponse200RawFlowFailureModuleMock - from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0 import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0 - from ..models.delete_completed_job_response_200_raw_flow_failure_module_stop_after_if import DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend import DeleteCompletedJobResponse200RawFlowFailureModuleSuspend - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry import DeleteCompletedJobResponse200RawFlowFailureModuleRetry - from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1 import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_mock import DeleteCompletedJobResponse200RawFlowFailureModuleMock - from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0 import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0 - from ..models.delete_completed_job_response_200_raw_flow_failure_module_stop_after_if import DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend import DeleteCompletedJobResponse200RawFlowFailureModuleSuspend - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry import DeleteCompletedJobResponse200RawFlowFailureModuleRetry - from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1 import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0', 'DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = DeleteCompletedJobResponse200RawFlowFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = DeleteCompletedJobResponse200RawFlowFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = DeleteCompletedJobResponse200RawFlowFailureModuleRetry.from_dict(_retry) - - - - - delete_completed_job_response_200_raw_flow_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - delete_completed_job_response_200_raw_flow_failure_module.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_mock.py deleted file mode 100644 index 55ce25b18e..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleMock") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - delete_completed_job_response_200_raw_flow_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - delete_completed_job_response_200_raw_flow_failure_module_mock.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry.py deleted file mode 100644 index bee62ed554..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry_constant import DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry_exponential import DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleRetry") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant]): - exponential (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry_constant import DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry_exponential import DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry_constant import DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant - from ..models.delete_completed_job_response_200_raw_flow_failure_module_retry_exponential import DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential.from_dict(_exponential) - - - - - delete_completed_job_response_200_raw_flow_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - delete_completed_job_response_200_raw_flow_failure_module_retry.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry_constant.py deleted file mode 100644 index 55df9058bd..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - delete_completed_job_response_200_raw_flow_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - delete_completed_job_response_200_raw_flow_failure_module_retry_constant.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry_exponential.py deleted file mode 100644 index 6b61cae879..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - delete_completed_job_response_200_raw_flow_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - delete_completed_job_response_200_raw_flow_failure_module_retry_exponential.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0.py deleted file mode 100644 index a5ebf8811c..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0: - """ - Attributes: - type (DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type.py deleted file mode 100644 index 23f4a93a40..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1.py deleted file mode 100644 index 2b00f9976d..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type import DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1Type): - """ - - expr: str - type: DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1Type(d.pop("type")) - - - - - delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type.py deleted file mode 100644 index 5219356f46..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_stop_after_if.py deleted file mode 100644 index 70e40e704f..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - delete_completed_job_response_200_raw_flow_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - delete_completed_job_response_200_raw_flow_failure_module_stop_after_if.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend.py deleted file mode 100644 index e26fc4d908..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleSuspend") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0', - 'DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0', 'DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0', 'DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - delete_completed_job_response_200_raw_flow_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - delete_completed_job_response_200_raw_flow_failure_module_suspend.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.py deleted file mode 100644 index 3a1443a316..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index c41fa2be4d..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema = cls( - ) - - delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 1d74325956..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index f6f9ba85da..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 31314a0c03..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type import DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index c3e876e179..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item.py deleted file mode 100644 index e8d46b9108..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import DeleteCompletedJobResponse200RawFlowModulesItemSleepType1 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend import DeleteCompletedJobResponse200RawFlowModulesItemSuspend - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry import DeleteCompletedJobResponse200RawFlowModulesItemRetry - from ..models.delete_completed_job_response_200_raw_flow_modules_item_stop_after_if import DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf - from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0 import DeleteCompletedJobResponse200RawFlowModulesItemSleepType0 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_mock import DeleteCompletedJobResponse200RawFlowModulesItemMock - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItem") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf]): - sleep (Union['DeleteCompletedJobResponse200RawFlowModulesItemSleepType0', - 'DeleteCompletedJobResponse200RawFlowModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemMock]): - suspend (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf'] = UNSET - sleep: Union['DeleteCompletedJobResponse200RawFlowModulesItemSleepType0', 'DeleteCompletedJobResponse200RawFlowModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemMock'] = UNSET - suspend: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import DeleteCompletedJobResponse200RawFlowModulesItemSleepType1 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend import DeleteCompletedJobResponse200RawFlowModulesItemSuspend - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry import DeleteCompletedJobResponse200RawFlowModulesItemRetry - from ..models.delete_completed_job_response_200_raw_flow_modules_item_stop_after_if import DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf - from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0 import DeleteCompletedJobResponse200RawFlowModulesItemSleepType0 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_mock import DeleteCompletedJobResponse200RawFlowModulesItemMock - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, DeleteCompletedJobResponse200RawFlowModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import DeleteCompletedJobResponse200RawFlowModulesItemSleepType1 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend import DeleteCompletedJobResponse200RawFlowModulesItemSuspend - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry import DeleteCompletedJobResponse200RawFlowModulesItemRetry - from ..models.delete_completed_job_response_200_raw_flow_modules_item_stop_after_if import DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf - from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0 import DeleteCompletedJobResponse200RawFlowModulesItemSleepType0 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_mock import DeleteCompletedJobResponse200RawFlowModulesItemMock - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['DeleteCompletedJobResponse200RawFlowModulesItemSleepType0', 'DeleteCompletedJobResponse200RawFlowModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = DeleteCompletedJobResponse200RawFlowModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = DeleteCompletedJobResponse200RawFlowModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = DeleteCompletedJobResponse200RawFlowModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = DeleteCompletedJobResponse200RawFlowModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = DeleteCompletedJobResponse200RawFlowModulesItemRetry.from_dict(_retry) - - - - - delete_completed_job_response_200_raw_flow_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - delete_completed_job_response_200_raw_flow_modules_item.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_mock.py deleted file mode 100644 index 826bd524dc..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemMock") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - delete_completed_job_response_200_raw_flow_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - delete_completed_job_response_200_raw_flow_modules_item_mock.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry.py deleted file mode 100644 index 74c0f7645e..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry_constant import DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry_exponential import DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemRetry") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemRetry: - """ - Attributes: - constant (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant]): - exponential (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry_constant import DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry_exponential import DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry_constant import DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant - from ..models.delete_completed_job_response_200_raw_flow_modules_item_retry_exponential import DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential.from_dict(_exponential) - - - - - delete_completed_job_response_200_raw_flow_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - delete_completed_job_response_200_raw_flow_modules_item_retry.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry_constant.py deleted file mode 100644 index 93225582dd..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - delete_completed_job_response_200_raw_flow_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - delete_completed_job_response_200_raw_flow_modules_item_retry_constant.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry_exponential.py deleted file mode 100644 index 154f1d327e..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - delete_completed_job_response_200_raw_flow_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - delete_completed_job_response_200_raw_flow_modules_item_retry_exponential.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0.py deleted file mode 100644 index 7d8b42f8f6..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type import DeleteCompletedJobResponse200RawFlowModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemSleepType0") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemSleepType0: - """ - Attributes: - type (DeleteCompletedJobResponse200RawFlowModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: DeleteCompletedJobResponse200RawFlowModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = DeleteCompletedJobResponse200RawFlowModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type.py deleted file mode 100644 index e71f559ff0..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1.py deleted file mode 100644 index 2389be218a..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type import DeleteCompletedJobResponse200RawFlowModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemSleepType1") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemSleepType1: - """ - Attributes: - expr (str): - type (DeleteCompletedJobResponse200RawFlowModulesItemSleepType1Type): - """ - - expr: str - type: DeleteCompletedJobResponse200RawFlowModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = DeleteCompletedJobResponse200RawFlowModulesItemSleepType1Type(d.pop("type")) - - - - - delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type.py deleted file mode 100644 index 47284cc3aa..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_stop_after_if.py deleted file mode 100644 index 45bad641aa..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - delete_completed_job_response_200_raw_flow_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - delete_completed_job_response_200_raw_flow_modules_item_stop_after_if.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend.py deleted file mode 100644 index 45a1ceb0c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form import DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemSuspend") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0', - 'DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0', 'DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form import DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form import DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0', 'DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - delete_completed_job_response_200_raw_flow_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - delete_completed_job_response_200_raw_flow_modules_item_suspend.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.py deleted file mode 100644 index 7cd28992bb..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema import DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema import DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema import DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 4e77faa05d..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema = cls( - ) - - delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 61648704a5..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 3fd4b31a7d..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 1711c6eb5a..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type import DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 394e46dbd7..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class DeleteCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_draft_kind.py b/python-client/windmill-api/windmill_api/models/delete_draft_kind.py deleted file mode 100644 index 7d76a206b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_draft_kind.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class DeleteDraftKind(str, Enum): - APP = "app" - FLOW = "flow" - SCRIPT = "script" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_invite_json_body.py b/python-client/windmill-api/windmill_api/models/delete_invite_json_body.py deleted file mode 100644 index 6e291c2c3e..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_invite_json_body.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteInviteJsonBody") - - -@_attrs_define -class DeleteInviteJsonBody: - """ - Attributes: - email (str): - is_admin (bool): - operator (bool): - """ - - email: str - is_admin: bool - operator: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - is_admin = self.is_admin - operator = self.operator - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "is_admin": is_admin, - "operator": operator, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - is_admin = d.pop("is_admin") - - operator = d.pop("operator") - - delete_invite_json_body = cls( - email=email, - is_admin=is_admin, - operator=operator, - ) - - delete_invite_json_body.additional_properties = d - return delete_invite_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200.py b/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200.py deleted file mode 100644 index 7d7ff47e8d..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200.py +++ /dev/null @@ -1,363 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.delete_script_by_hash_response_200_kind import DeleteScriptByHashResponse200Kind -import datetime -from ..models.delete_script_by_hash_response_200_language import DeleteScriptByHashResponse200Language -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.delete_script_by_hash_response_200_extra_perms import DeleteScriptByHashResponse200ExtraPerms - from ..models.delete_script_by_hash_response_200_schema import DeleteScriptByHashResponse200Schema - - - - - -T = TypeVar("T", bound="DeleteScriptByHashResponse200") - - -@_attrs_define -class DeleteScriptByHashResponse200: - """ - Attributes: - hash_ (str): - path (str): - summary (str): - description (str): - content (str): - created_by (str): - created_at (datetime.datetime): - archived (bool): - deleted (bool): - is_template (bool): - extra_perms (DeleteScriptByHashResponse200ExtraPerms): - language (DeleteScriptByHashResponse200Language): - kind (DeleteScriptByHashResponse200Kind): - starred (bool): - workspace_id (Union[Unset, str]): - parent_hashes (Union[Unset, List[str]]): The first element is the direct parent of the script, the second is the - parent of the first, etc - schema (Union[Unset, DeleteScriptByHashResponse200Schema]): - lock (Union[Unset, str]): - lock_error_logs (Union[Unset, str]): - tag (Union[Unset, str]): - has_draft (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - """ - - hash_: str - path: str - summary: str - description: str - content: str - created_by: str - created_at: datetime.datetime - archived: bool - deleted: bool - is_template: bool - extra_perms: 'DeleteScriptByHashResponse200ExtraPerms' - language: DeleteScriptByHashResponse200Language - kind: DeleteScriptByHashResponse200Kind - starred: bool - workspace_id: Union[Unset, str] = UNSET - parent_hashes: Union[Unset, List[str]] = UNSET - schema: Union[Unset, 'DeleteScriptByHashResponse200Schema'] = UNSET - lock: Union[Unset, str] = UNSET - lock_error_logs: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - has_draft: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.delete_script_by_hash_response_200_extra_perms import DeleteScriptByHashResponse200ExtraPerms - from ..models.delete_script_by_hash_response_200_schema import DeleteScriptByHashResponse200Schema - hash_ = self.hash_ - path = self.path - summary = self.summary - description = self.description - content = self.content - created_by = self.created_by - created_at = self.created_at.isoformat() - - archived = self.archived - deleted = self.deleted - is_template = self.is_template - extra_perms = self.extra_perms.to_dict() - - language = self.language.value - - kind = self.kind.value - - starred = self.starred - workspace_id = self.workspace_id - parent_hashes: Union[Unset, List[str]] = UNSET - if not isinstance(self.parent_hashes, Unset): - parent_hashes = self.parent_hashes - - - - - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - lock = self.lock - lock_error_logs = self.lock_error_logs - tag = self.tag - has_draft = self.has_draft - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "hash": hash_, - "path": path, - "summary": summary, - "description": description, - "content": content, - "created_by": created_by, - "created_at": created_at, - "archived": archived, - "deleted": deleted, - "is_template": is_template, - "extra_perms": extra_perms, - "language": language, - "kind": kind, - "starred": starred, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_hashes is not UNSET: - field_dict["parent_hashes"] = parent_hashes - if schema is not UNSET: - field_dict["schema"] = schema - if lock is not UNSET: - field_dict["lock"] = lock - if lock_error_logs is not UNSET: - field_dict["lock_error_logs"] = lock_error_logs - if tag is not UNSET: - field_dict["tag"] = tag - if has_draft is not UNSET: - field_dict["has_draft"] = has_draft - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.delete_script_by_hash_response_200_extra_perms import DeleteScriptByHashResponse200ExtraPerms - from ..models.delete_script_by_hash_response_200_schema import DeleteScriptByHashResponse200Schema - d = src_dict.copy() - hash_ = d.pop("hash") - - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - archived = d.pop("archived") - - deleted = d.pop("deleted") - - is_template = d.pop("is_template") - - extra_perms = DeleteScriptByHashResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - language = DeleteScriptByHashResponse200Language(d.pop("language")) - - - - - kind = DeleteScriptByHashResponse200Kind(d.pop("kind")) - - - - - starred = d.pop("starred") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_hashes = cast(List[str], d.pop("parent_hashes", UNSET)) - - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, DeleteScriptByHashResponse200Schema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = DeleteScriptByHashResponse200Schema.from_dict(_schema) - - - - - lock = d.pop("lock", UNSET) - - lock_error_logs = d.pop("lock_error_logs", UNSET) - - tag = d.pop("tag", UNSET) - - has_draft = d.pop("has_draft", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - delete_script_by_hash_response_200 = cls( - hash_=hash_, - path=path, - summary=summary, - description=description, - content=content, - created_by=created_by, - created_at=created_at, - archived=archived, - deleted=deleted, - is_template=is_template, - extra_perms=extra_perms, - language=language, - kind=kind, - starred=starred, - workspace_id=workspace_id, - parent_hashes=parent_hashes, - schema=schema, - lock=lock, - lock_error_logs=lock_error_logs, - tag=tag, - has_draft=has_draft, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - ) - - delete_script_by_hash_response_200.additional_properties = d - return delete_script_by_hash_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_extra_perms.py deleted file mode 100644 index eef2356285..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteScriptByHashResponse200ExtraPerms") - - -@_attrs_define -class DeleteScriptByHashResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - delete_script_by_hash_response_200_extra_perms = cls( - ) - - - delete_script_by_hash_response_200_extra_perms.additional_properties = d - return delete_script_by_hash_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_kind.py b/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_kind.py deleted file mode 100644 index 7556d8b6f5..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class DeleteScriptByHashResponse200Kind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_language.py b/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_language.py deleted file mode 100644 index 69932074c8..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class DeleteScriptByHashResponse200Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_schema.py b/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_schema.py deleted file mode 100644 index 71c2d7088f..0000000000 --- a/python-client/windmill-api/windmill_api/models/delete_script_by_hash_response_200_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DeleteScriptByHashResponse200Schema") - - -@_attrs_define -class DeleteScriptByHashResponse200Schema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - delete_script_by_hash_response_200_schema = cls( - ) - - delete_script_by_hash_response_200_schema.additional_properties = d - return delete_script_by_hash_response_200_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_json_body.py b/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_json_body.py deleted file mode 100644 index 02eadf31e4..0000000000 --- a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_json_body.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.duckdb_connection_settings_json_body_s3_resource import DuckdbConnectionSettingsJsonBodyS3Resource - - - - - -T = TypeVar("T", bound="DuckdbConnectionSettingsJsonBody") - - -@_attrs_define -class DuckdbConnectionSettingsJsonBody: - """ - Attributes: - s3_resource (Union[Unset, DuckdbConnectionSettingsJsonBodyS3Resource]): - """ - - s3_resource: Union[Unset, 'DuckdbConnectionSettingsJsonBodyS3Resource'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.duckdb_connection_settings_json_body_s3_resource import DuckdbConnectionSettingsJsonBodyS3Resource - s3_resource: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.s3_resource, Unset): - s3_resource = self.s3_resource.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if s3_resource is not UNSET: - field_dict["s3_resource"] = s3_resource - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.duckdb_connection_settings_json_body_s3_resource import DuckdbConnectionSettingsJsonBodyS3Resource - d = src_dict.copy() - _s3_resource = d.pop("s3_resource", UNSET) - s3_resource: Union[Unset, DuckdbConnectionSettingsJsonBodyS3Resource] - if isinstance(_s3_resource, Unset): - s3_resource = UNSET - else: - s3_resource = DuckdbConnectionSettingsJsonBodyS3Resource.from_dict(_s3_resource) - - - - - duckdb_connection_settings_json_body = cls( - s3_resource=s3_resource, - ) - - duckdb_connection_settings_json_body.additional_properties = d - return duckdb_connection_settings_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_json_body_s3_resource.py b/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_json_body_s3_resource.py deleted file mode 100644 index 117d962205..0000000000 --- a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_json_body_s3_resource.py +++ /dev/null @@ -1,116 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DuckdbConnectionSettingsJsonBodyS3Resource") - - -@_attrs_define -class DuckdbConnectionSettingsJsonBodyS3Resource: - """ - Attributes: - bucket (str): - region (str): - end_point (str): - use_ssl (bool): - path_style (bool): - access_key (Union[Unset, str]): - secret_key (Union[Unset, str]): - """ - - bucket: str - region: str - end_point: str - use_ssl: bool - path_style: bool - access_key: Union[Unset, str] = UNSET - secret_key: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - bucket = self.bucket - region = self.region - end_point = self.end_point - use_ssl = self.use_ssl - path_style = self.path_style - access_key = self.access_key - secret_key = self.secret_key - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "bucket": bucket, - "region": region, - "endPoint": end_point, - "useSSL": use_ssl, - "pathStyle": path_style, - }) - if access_key is not UNSET: - field_dict["accessKey"] = access_key - if secret_key is not UNSET: - field_dict["secretKey"] = secret_key - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - bucket = d.pop("bucket") - - region = d.pop("region") - - end_point = d.pop("endPoint") - - use_ssl = d.pop("useSSL") - - path_style = d.pop("pathStyle") - - access_key = d.pop("accessKey", UNSET) - - secret_key = d.pop("secretKey", UNSET) - - duckdb_connection_settings_json_body_s3_resource = cls( - bucket=bucket, - region=region, - end_point=end_point, - use_ssl=use_ssl, - path_style=path_style, - access_key=access_key, - secret_key=secret_key, - ) - - duckdb_connection_settings_json_body_s3_resource.additional_properties = d - return duckdb_connection_settings_json_body_s3_resource - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_response_200.py b/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_response_200.py deleted file mode 100644 index 162f5cb483..0000000000 --- a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_response_200.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DuckdbConnectionSettingsResponse200") - - -@_attrs_define -class DuckdbConnectionSettingsResponse200: - """ - Attributes: - connection_settings_str (Union[Unset, str]): - """ - - connection_settings_str: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - connection_settings_str = self.connection_settings_str - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if connection_settings_str is not UNSET: - field_dict["connection_settings_str"] = connection_settings_str - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - connection_settings_str = d.pop("connection_settings_str", UNSET) - - duckdb_connection_settings_response_200 = cls( - connection_settings_str=connection_settings_str, - ) - - duckdb_connection_settings_response_200.additional_properties = d - return duckdb_connection_settings_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_v2_json_body.py b/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_v2_json_body.py deleted file mode 100644 index 0f16c9a2cc..0000000000 --- a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_v2_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="DuckdbConnectionSettingsV2JsonBody") - - -@_attrs_define -class DuckdbConnectionSettingsV2JsonBody: - """ - Attributes: - s3_resource_path (Union[Unset, str]): - """ - - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - s3_resource_path = d.pop("s3_resource_path", UNSET) - - duckdb_connection_settings_v2_json_body = cls( - s3_resource_path=s3_resource_path, - ) - - duckdb_connection_settings_v2_json_body.additional_properties = d - return duckdb_connection_settings_v2_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_v2_response_200.py b/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_v2_response_200.py deleted file mode 100644 index 3e62905570..0000000000 --- a/python-client/windmill-api/windmill_api/models/duckdb_connection_settings_v2_response_200.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="DuckdbConnectionSettingsV2Response200") - - -@_attrs_define -class DuckdbConnectionSettingsV2Response200: - """ - Attributes: - connection_settings_str (str): - """ - - connection_settings_str: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - connection_settings_str = self.connection_settings_str - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "connection_settings_str": connection_settings_str, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - connection_settings_str = d.pop("connection_settings_str") - - duckdb_connection_settings_v2_response_200 = cls( - connection_settings_str=connection_settings_str, - ) - - duckdb_connection_settings_v2_response_200.additional_properties = d - return duckdb_connection_settings_v2_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_auto_invite_json_body.py b/python-client/windmill-api/windmill_api/models/edit_auto_invite_json_body.py deleted file mode 100644 index a560d98e77..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_auto_invite_json_body.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditAutoInviteJsonBody") - - -@_attrs_define -class EditAutoInviteJsonBody: - """ - Attributes: - operator (Union[Unset, bool]): - invite_all (Union[Unset, bool]): - """ - - operator: Union[Unset, bool] = UNSET - invite_all: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - operator = self.operator - invite_all = self.invite_all - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if operator is not UNSET: - field_dict["operator"] = operator - if invite_all is not UNSET: - field_dict["invite_all"] = invite_all - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - operator = d.pop("operator", UNSET) - - invite_all = d.pop("invite_all", UNSET) - - edit_auto_invite_json_body = cls( - operator=operator, - invite_all=invite_all, - ) - - edit_auto_invite_json_body.additional_properties = d - return edit_auto_invite_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_copilot_config_json_body.py b/python-client/windmill-api/windmill_api/models/edit_copilot_config_json_body.py deleted file mode 100644 index cbf9c7b3dc..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_copilot_config_json_body.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditCopilotConfigJsonBody") - - -@_attrs_define -class EditCopilotConfigJsonBody: - """ - Attributes: - code_completion_enabled (bool): - openai_resource_path (Union[Unset, str]): - """ - - code_completion_enabled: bool - openai_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - code_completion_enabled = self.code_completion_enabled - openai_resource_path = self.openai_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "code_completion_enabled": code_completion_enabled, - }) - if openai_resource_path is not UNSET: - field_dict["openai_resource_path"] = openai_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - code_completion_enabled = d.pop("code_completion_enabled") - - openai_resource_path = d.pop("openai_resource_path", UNSET) - - edit_copilot_config_json_body = cls( - code_completion_enabled=code_completion_enabled, - openai_resource_path=openai_resource_path, - ) - - edit_copilot_config_json_body.additional_properties = d - return edit_copilot_config_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_deploy_to_json_body.py b/python-client/windmill-api/windmill_api/models/edit_deploy_to_json_body.py deleted file mode 100644 index 70d24529cb..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_deploy_to_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditDeployToJsonBody") - - -@_attrs_define -class EditDeployToJsonBody: - """ - Attributes: - deploy_to (Union[Unset, str]): - """ - - deploy_to: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - deploy_to = self.deploy_to - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if deploy_to is not UNSET: - field_dict["deploy_to"] = deploy_to - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - deploy_to = d.pop("deploy_to", UNSET) - - edit_deploy_to_json_body = cls( - deploy_to=deploy_to, - ) - - edit_deploy_to_json_body.additional_properties = d - return edit_deploy_to_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_error_handler_json_body.py b/python-client/windmill-api/windmill_api/models/edit_error_handler_json_body.py deleted file mode 100644 index bdf0772569..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_error_handler_json_body.py +++ /dev/null @@ -1,106 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.edit_error_handler_json_body_error_handler_extra_args import EditErrorHandlerJsonBodyErrorHandlerExtraArgs - - - - - -T = TypeVar("T", bound="EditErrorHandlerJsonBody") - - -@_attrs_define -class EditErrorHandlerJsonBody: - """ - Attributes: - error_handler (Union[Unset, str]): - error_handler_extra_args (Union[Unset, EditErrorHandlerJsonBodyErrorHandlerExtraArgs]): - error_handler_muted_on_cancel (Union[Unset, bool]): - """ - - error_handler: Union[Unset, str] = UNSET - error_handler_extra_args: Union[Unset, 'EditErrorHandlerJsonBodyErrorHandlerExtraArgs'] = UNSET - error_handler_muted_on_cancel: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.edit_error_handler_json_body_error_handler_extra_args import EditErrorHandlerJsonBodyErrorHandlerExtraArgs - error_handler = self.error_handler - error_handler_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.error_handler_extra_args, Unset): - error_handler_extra_args = self.error_handler_extra_args.to_dict() - - error_handler_muted_on_cancel = self.error_handler_muted_on_cancel - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if error_handler is not UNSET: - field_dict["error_handler"] = error_handler - if error_handler_extra_args is not UNSET: - field_dict["error_handler_extra_args"] = error_handler_extra_args - if error_handler_muted_on_cancel is not UNSET: - field_dict["error_handler_muted_on_cancel"] = error_handler_muted_on_cancel - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.edit_error_handler_json_body_error_handler_extra_args import EditErrorHandlerJsonBodyErrorHandlerExtraArgs - d = src_dict.copy() - error_handler = d.pop("error_handler", UNSET) - - _error_handler_extra_args = d.pop("error_handler_extra_args", UNSET) - error_handler_extra_args: Union[Unset, EditErrorHandlerJsonBodyErrorHandlerExtraArgs] - if isinstance(_error_handler_extra_args, Unset): - error_handler_extra_args = UNSET - else: - error_handler_extra_args = EditErrorHandlerJsonBodyErrorHandlerExtraArgs.from_dict(_error_handler_extra_args) - - - - - error_handler_muted_on_cancel = d.pop("error_handler_muted_on_cancel", UNSET) - - edit_error_handler_json_body = cls( - error_handler=error_handler, - error_handler_extra_args=error_handler_extra_args, - error_handler_muted_on_cancel=error_handler_muted_on_cancel, - ) - - edit_error_handler_json_body.additional_properties = d - return edit_error_handler_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_error_handler_json_body_error_handler_extra_args.py b/python-client/windmill-api/windmill_api/models/edit_error_handler_json_body_error_handler_extra_args.py deleted file mode 100644 index e424e67e98..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_error_handler_json_body_error_handler_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="EditErrorHandlerJsonBodyErrorHandlerExtraArgs") - - -@_attrs_define -class EditErrorHandlerJsonBodyErrorHandlerExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - edit_error_handler_json_body_error_handler_extra_args = cls( - ) - - edit_error_handler_json_body_error_handler_extra_args.additional_properties = d - return edit_error_handler_json_body_error_handler_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body.py b/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body.py deleted file mode 100644 index dbe9af42c0..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.edit_large_file_storage_config_json_body_large_file_storage import EditLargeFileStorageConfigJsonBodyLargeFileStorage - - - - - -T = TypeVar("T", bound="EditLargeFileStorageConfigJsonBody") - - -@_attrs_define -class EditLargeFileStorageConfigJsonBody: - """ - Attributes: - large_file_storage (Union[Unset, EditLargeFileStorageConfigJsonBodyLargeFileStorage]): - """ - - large_file_storage: Union[Unset, 'EditLargeFileStorageConfigJsonBodyLargeFileStorage'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.edit_large_file_storage_config_json_body_large_file_storage import EditLargeFileStorageConfigJsonBodyLargeFileStorage - large_file_storage: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.large_file_storage, Unset): - large_file_storage = self.large_file_storage.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if large_file_storage is not UNSET: - field_dict["large_file_storage"] = large_file_storage - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.edit_large_file_storage_config_json_body_large_file_storage import EditLargeFileStorageConfigJsonBodyLargeFileStorage - d = src_dict.copy() - _large_file_storage = d.pop("large_file_storage", UNSET) - large_file_storage: Union[Unset, EditLargeFileStorageConfigJsonBodyLargeFileStorage] - if isinstance(_large_file_storage, Unset): - large_file_storage = UNSET - else: - large_file_storage = EditLargeFileStorageConfigJsonBodyLargeFileStorage.from_dict(_large_file_storage) - - - - - edit_large_file_storage_config_json_body = cls( - large_file_storage=large_file_storage, - ) - - edit_large_file_storage_config_json_body.additional_properties = d - return edit_large_file_storage_config_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage.py b/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage.py deleted file mode 100644 index 7380e5a793..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage.py +++ /dev/null @@ -1,93 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.edit_large_file_storage_config_json_body_large_file_storage_type import EditLargeFileStorageConfigJsonBodyLargeFileStorageType - - - - - - -T = TypeVar("T", bound="EditLargeFileStorageConfigJsonBodyLargeFileStorage") - - -@_attrs_define -class EditLargeFileStorageConfigJsonBodyLargeFileStorage: - """ - Attributes: - type (Union[Unset, EditLargeFileStorageConfigJsonBodyLargeFileStorageType]): - s3_resource_path (Union[Unset, str]): - """ - - type: Union[Unset, EditLargeFileStorageConfigJsonBodyLargeFileStorageType] = UNSET - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, EditLargeFileStorageConfigJsonBodyLargeFileStorageType] - if isinstance(_type, Unset): - type = UNSET - else: - type = EditLargeFileStorageConfigJsonBodyLargeFileStorageType(_type) - - - - - s3_resource_path = d.pop("s3_resource_path", UNSET) - - edit_large_file_storage_config_json_body_large_file_storage = cls( - type=type, - s3_resource_path=s3_resource_path, - ) - - edit_large_file_storage_config_json_body_large_file_storage.additional_properties = d - return edit_large_file_storage_config_json_body_large_file_storage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage_type.py b/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage_type.py deleted file mode 100644 index b640861fca..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_large_file_storage_config_json_body_large_file_storage_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class EditLargeFileStorageConfigJsonBodyLargeFileStorageType(str, Enum): - S3STORAGE = "S3Storage" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/edit_resource.py b/python-client/windmill-api/windmill_api/models/edit_resource.py deleted file mode 100644 index d17c35199e..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_resource.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditResource") - - -@_attrs_define -class EditResource: - """ - Attributes: - path (Union[Unset, str]): - description (Union[Unset, str]): - value (Union[Unset, Any]): - """ - - path: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - description = self.description - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if description is not UNSET: - field_dict["description"] = description - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path", UNSET) - - description = d.pop("description", UNSET) - - value = d.pop("value", UNSET) - - edit_resource = cls( - path=path, - description=description, - value=value, - ) - - edit_resource.additional_properties = d - return edit_resource - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_resource_type.py b/python-client/windmill-api/windmill_api/models/edit_resource_type.py deleted file mode 100644 index be1a4c4836..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_resource_type.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditResourceType") - - -@_attrs_define -class EditResourceType: - """ - Attributes: - schema (Union[Unset, Any]): - description (Union[Unset, str]): - """ - - schema: Union[Unset, Any] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - schema = self.schema - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schema = d.pop("schema", UNSET) - - description = d.pop("description", UNSET) - - edit_resource_type = cls( - schema=schema, - description=description, - ) - - edit_resource_type.additional_properties = d - return edit_resource_type - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_schedule.py b/python-client/windmill-api/windmill_api/models/edit_schedule.py deleted file mode 100644 index 1e60581921..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_schedule.py +++ /dev/null @@ -1,234 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.edit_schedule_on_recovery_extra_args import EditScheduleOnRecoveryExtraArgs - from ..models.edit_schedule_retry import EditScheduleRetry - from ..models.edit_schedule_args import EditScheduleArgs - from ..models.edit_schedule_on_failure_extra_args import EditScheduleOnFailureExtraArgs - - - - - -T = TypeVar("T", bound="EditSchedule") - - -@_attrs_define -class EditSchedule: - """ - Attributes: - schedule (str): - timezone (str): - args (EditScheduleArgs): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, EditScheduleOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, EditScheduleOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, EditScheduleRetry]): - no_flow_overlap (Union[Unset, bool]): - summary (Union[Unset, str]): - tag (Union[Unset, str]): - """ - - schedule: str - timezone: str - args: 'EditScheduleArgs' - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'EditScheduleOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'EditScheduleOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'EditScheduleRetry'] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.edit_schedule_on_recovery_extra_args import EditScheduleOnRecoveryExtraArgs - from ..models.edit_schedule_retry import EditScheduleRetry - from ..models.edit_schedule_args import EditScheduleArgs - from ..models.edit_schedule_on_failure_extra_args import EditScheduleOnFailureExtraArgs - schedule = self.schedule - timezone = self.timezone - args = self.args.to_dict() - - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - no_flow_overlap = self.no_flow_overlap - summary = self.summary - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "schedule": schedule, - "timezone": timezone, - "args": args, - }) - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if summary is not UNSET: - field_dict["summary"] = summary - if tag is not UNSET: - field_dict["tag"] = tag - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.edit_schedule_on_recovery_extra_args import EditScheduleOnRecoveryExtraArgs - from ..models.edit_schedule_retry import EditScheduleRetry - from ..models.edit_schedule_args import EditScheduleArgs - from ..models.edit_schedule_on_failure_extra_args import EditScheduleOnFailureExtraArgs - d = src_dict.copy() - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - args = EditScheduleArgs.from_dict(d.pop("args")) - - - - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, EditScheduleOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = EditScheduleOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, EditScheduleOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = EditScheduleOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, EditScheduleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = EditScheduleRetry.from_dict(_retry) - - - - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - summary = d.pop("summary", UNSET) - - tag = d.pop("tag", UNSET) - - edit_schedule = cls( - schedule=schedule, - timezone=timezone, - args=args, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - no_flow_overlap=no_flow_overlap, - summary=summary, - tag=tag, - ) - - edit_schedule.additional_properties = d - return edit_schedule - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_schedule_args.py b/python-client/windmill-api/windmill_api/models/edit_schedule_args.py deleted file mode 100644 index 4e8237b3d9..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_schedule_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="EditScheduleArgs") - - -@_attrs_define -class EditScheduleArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - edit_schedule_args = cls( - ) - - edit_schedule_args.additional_properties = d - return edit_schedule_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_schedule_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/edit_schedule_on_failure_extra_args.py deleted file mode 100644 index 3f82878029..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_schedule_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="EditScheduleOnFailureExtraArgs") - - -@_attrs_define -class EditScheduleOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - edit_schedule_on_failure_extra_args = cls( - ) - - edit_schedule_on_failure_extra_args.additional_properties = d - return edit_schedule_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_schedule_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/edit_schedule_on_recovery_extra_args.py deleted file mode 100644 index 46f331f581..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_schedule_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="EditScheduleOnRecoveryExtraArgs") - - -@_attrs_define -class EditScheduleOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - edit_schedule_on_recovery_extra_args = cls( - ) - - edit_schedule_on_recovery_extra_args.additional_properties = d - return edit_schedule_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_schedule_retry.py b/python-client/windmill-api/windmill_api/models/edit_schedule_retry.py deleted file mode 100644 index 07adef5a48..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_schedule_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.edit_schedule_retry_constant import EditScheduleRetryConstant - from ..models.edit_schedule_retry_exponential import EditScheduleRetryExponential - - - - - -T = TypeVar("T", bound="EditScheduleRetry") - - -@_attrs_define -class EditScheduleRetry: - """ - Attributes: - constant (Union[Unset, EditScheduleRetryConstant]): - exponential (Union[Unset, EditScheduleRetryExponential]): - """ - - constant: Union[Unset, 'EditScheduleRetryConstant'] = UNSET - exponential: Union[Unset, 'EditScheduleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.edit_schedule_retry_constant import EditScheduleRetryConstant - from ..models.edit_schedule_retry_exponential import EditScheduleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.edit_schedule_retry_constant import EditScheduleRetryConstant - from ..models.edit_schedule_retry_exponential import EditScheduleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, EditScheduleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = EditScheduleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, EditScheduleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = EditScheduleRetryExponential.from_dict(_exponential) - - - - - edit_schedule_retry = cls( - constant=constant, - exponential=exponential, - ) - - edit_schedule_retry.additional_properties = d - return edit_schedule_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_schedule_retry_constant.py b/python-client/windmill-api/windmill_api/models/edit_schedule_retry_constant.py deleted file mode 100644 index 6e9489b3db..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_schedule_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditScheduleRetryConstant") - - -@_attrs_define -class EditScheduleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - edit_schedule_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - edit_schedule_retry_constant.additional_properties = d - return edit_schedule_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_schedule_retry_exponential.py b/python-client/windmill-api/windmill_api/models/edit_schedule_retry_exponential.py deleted file mode 100644 index f7876ee389..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_schedule_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditScheduleRetryExponential") - - -@_attrs_define -class EditScheduleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - edit_schedule_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - edit_schedule_retry_exponential.additional_properties = d - return edit_schedule_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_slack_command_json_body.py b/python-client/windmill-api/windmill_api/models/edit_slack_command_json_body.py deleted file mode 100644 index f44a65b2b6..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_slack_command_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditSlackCommandJsonBody") - - -@_attrs_define -class EditSlackCommandJsonBody: - """ - Attributes: - slack_command_script (Union[Unset, str]): - """ - - slack_command_script: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - slack_command_script = self.slack_command_script - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if slack_command_script is not UNSET: - field_dict["slack_command_script"] = slack_command_script - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - slack_command_script = d.pop("slack_command_script", UNSET) - - edit_slack_command_json_body = cls( - slack_command_script=slack_command_script, - ) - - edit_slack_command_json_body.additional_properties = d - return edit_slack_command_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_variable.py b/python-client/windmill-api/windmill_api/models/edit_variable.py deleted file mode 100644 index a16a3a5095..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_variable.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditVariable") - - -@_attrs_define -class EditVariable: - """ - Attributes: - path (Union[Unset, str]): - value (Union[Unset, str]): - is_secret (Union[Unset, bool]): - description (Union[Unset, str]): - """ - - path: Union[Unset, str] = UNSET - value: Union[Unset, str] = UNSET - is_secret: Union[Unset, bool] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - is_secret = self.is_secret - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if value is not UNSET: - field_dict["value"] = value - if is_secret is not UNSET: - field_dict["is_secret"] = is_secret - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path", UNSET) - - value = d.pop("value", UNSET) - - is_secret = d.pop("is_secret", UNSET) - - description = d.pop("description", UNSET) - - edit_variable = cls( - path=path, - value=value, - is_secret=is_secret, - description=description, - ) - - edit_variable.additional_properties = d - return edit_variable - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_webhook_json_body.py b/python-client/windmill-api/windmill_api/models/edit_webhook_json_body.py deleted file mode 100644 index 6976645a57..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_webhook_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditWebhookJsonBody") - - -@_attrs_define -class EditWebhookJsonBody: - """ - Attributes: - webhook (Union[Unset, str]): - """ - - webhook: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - webhook = self.webhook - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if webhook is not UNSET: - field_dict["webhook"] = webhook - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - webhook = d.pop("webhook", UNSET) - - edit_webhook_json_body = cls( - webhook=webhook, - ) - - edit_webhook_json_body.additional_properties = d - return edit_webhook_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_workspace_git_sync_config_json_body.py b/python-client/windmill-api/windmill_api/models/edit_workspace_git_sync_config_json_body.py deleted file mode 100644 index d6e529aa1a..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_workspace_git_sync_config_json_body.py +++ /dev/null @@ -1,98 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.edit_workspace_git_sync_config_json_body_git_sync_settings_item import EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem - - - - - -T = TypeVar("T", bound="EditWorkspaceGitSyncConfigJsonBody") - - -@_attrs_define -class EditWorkspaceGitSyncConfigJsonBody: - """ - Attributes: - git_sync_settings (Union[Unset, List['EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem']]): - """ - - git_sync_settings: Union[Unset, List['EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.edit_workspace_git_sync_config_json_body_git_sync_settings_item import EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem - git_sync_settings: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.git_sync_settings, Unset): - git_sync_settings = [] - for git_sync_settings_item_data in self.git_sync_settings: - git_sync_settings_item = git_sync_settings_item_data.to_dict() - - git_sync_settings.append(git_sync_settings_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if git_sync_settings is not UNSET: - field_dict["git_sync_settings"] = git_sync_settings - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.edit_workspace_git_sync_config_json_body_git_sync_settings_item import EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem - d = src_dict.copy() - git_sync_settings = [] - _git_sync_settings = d.pop("git_sync_settings", UNSET) - for git_sync_settings_item_data in (_git_sync_settings or []): - git_sync_settings_item = EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem.from_dict(git_sync_settings_item_data) - - - - git_sync_settings.append(git_sync_settings_item) - - - edit_workspace_git_sync_config_json_body = cls( - git_sync_settings=git_sync_settings, - ) - - edit_workspace_git_sync_config_json_body.additional_properties = d - return edit_workspace_git_sync_config_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_item.py b/python-client/windmill-api/windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_item.py deleted file mode 100644 index 497f60040f..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_workspace_git_sync_config_json_body_git_sync_settings_item.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem") - - -@_attrs_define -class EditWorkspaceGitSyncConfigJsonBodyGitSyncSettingsItem: - """ - Attributes: - script_path (str): - git_repo_resource_path (str): - use_individual_branch (Union[Unset, bool]): - """ - - script_path: str - git_repo_resource_path: str - use_individual_branch: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - script_path = self.script_path - git_repo_resource_path = self.git_repo_resource_path - use_individual_branch = self.use_individual_branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "script_path": script_path, - "git_repo_resource_path": git_repo_resource_path, - }) - if use_individual_branch is not UNSET: - field_dict["use_individual_branch"] = use_individual_branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_path = d.pop("script_path") - - git_repo_resource_path = d.pop("git_repo_resource_path") - - use_individual_branch = d.pop("use_individual_branch", UNSET) - - edit_workspace_git_sync_config_json_body_git_sync_settings_item = cls( - script_path=script_path, - git_repo_resource_path=git_repo_resource_path, - use_individual_branch=use_individual_branch, - ) - - edit_workspace_git_sync_config_json_body_git_sync_settings_item.additional_properties = d - return edit_workspace_git_sync_config_json_body_git_sync_settings_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/edit_workspace_user.py b/python-client/windmill-api/windmill_api/models/edit_workspace_user.py deleted file mode 100644 index a10d643076..0000000000 --- a/python-client/windmill-api/windmill_api/models/edit_workspace_user.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="EditWorkspaceUser") - - -@_attrs_define -class EditWorkspaceUser: - """ - Attributes: - is_admin (Union[Unset, bool]): - operator (Union[Unset, bool]): - disabled (Union[Unset, bool]): - """ - - is_admin: Union[Unset, bool] = UNSET - operator: Union[Unset, bool] = UNSET - disabled: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - is_admin = self.is_admin - operator = self.operator - disabled = self.disabled - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if is_admin is not UNSET: - field_dict["is_admin"] = is_admin - if operator is not UNSET: - field_dict["operator"] = operator - if disabled is not UNSET: - field_dict["disabled"] = disabled - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - is_admin = d.pop("is_admin", UNSET) - - operator = d.pop("operator", UNSET) - - disabled = d.pop("disabled", UNSET) - - edit_workspace_user = cls( - is_admin=is_admin, - operator=operator, - disabled=disabled, - ) - - edit_workspace_user.additional_properties = d - return edit_workspace_user - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/execute_component_json_body.py b/python-client/windmill-api/windmill_api/models/execute_component_json_body.py deleted file mode 100644 index 591ff2eb8c..0000000000 --- a/python-client/windmill-api/windmill_api/models/execute_component_json_body.py +++ /dev/null @@ -1,134 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.execute_component_json_body_raw_code import ExecuteComponentJsonBodyRawCode - from ..models.execute_component_json_body_force_viewer_static_fields import ExecuteComponentJsonBodyForceViewerStaticFields - - - - - -T = TypeVar("T", bound="ExecuteComponentJsonBody") - - -@_attrs_define -class ExecuteComponentJsonBody: - """ - Attributes: - component (str): - args (Any): - path (Union[Unset, str]): - raw_code (Union[Unset, ExecuteComponentJsonBodyRawCode]): - force_viewer_static_fields (Union[Unset, ExecuteComponentJsonBodyForceViewerStaticFields]): - """ - - component: str - args: Any - path: Union[Unset, str] = UNSET - raw_code: Union[Unset, 'ExecuteComponentJsonBodyRawCode'] = UNSET - force_viewer_static_fields: Union[Unset, 'ExecuteComponentJsonBodyForceViewerStaticFields'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.execute_component_json_body_raw_code import ExecuteComponentJsonBodyRawCode - from ..models.execute_component_json_body_force_viewer_static_fields import ExecuteComponentJsonBodyForceViewerStaticFields - component = self.component - args = self.args - path = self.path - raw_code: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.raw_code, Unset): - raw_code = self.raw_code.to_dict() - - force_viewer_static_fields: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.force_viewer_static_fields, Unset): - force_viewer_static_fields = self.force_viewer_static_fields.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "component": component, - "args": args, - }) - if path is not UNSET: - field_dict["path"] = path - if raw_code is not UNSET: - field_dict["raw_code"] = raw_code - if force_viewer_static_fields is not UNSET: - field_dict["force_viewer_static_fields"] = force_viewer_static_fields - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.execute_component_json_body_raw_code import ExecuteComponentJsonBodyRawCode - from ..models.execute_component_json_body_force_viewer_static_fields import ExecuteComponentJsonBodyForceViewerStaticFields - d = src_dict.copy() - component = d.pop("component") - - args = d.pop("args") - - path = d.pop("path", UNSET) - - _raw_code = d.pop("raw_code", UNSET) - raw_code: Union[Unset, ExecuteComponentJsonBodyRawCode] - if isinstance(_raw_code, Unset): - raw_code = UNSET - else: - raw_code = ExecuteComponentJsonBodyRawCode.from_dict(_raw_code) - - - - - _force_viewer_static_fields = d.pop("force_viewer_static_fields", UNSET) - force_viewer_static_fields: Union[Unset, ExecuteComponentJsonBodyForceViewerStaticFields] - if isinstance(_force_viewer_static_fields, Unset): - force_viewer_static_fields = UNSET - else: - force_viewer_static_fields = ExecuteComponentJsonBodyForceViewerStaticFields.from_dict(_force_viewer_static_fields) - - - - - execute_component_json_body = cls( - component=component, - args=args, - path=path, - raw_code=raw_code, - force_viewer_static_fields=force_viewer_static_fields, - ) - - execute_component_json_body.additional_properties = d - return execute_component_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/execute_component_json_body_force_viewer_static_fields.py b/python-client/windmill-api/windmill_api/models/execute_component_json_body_force_viewer_static_fields.py deleted file mode 100644 index 33728af4ce..0000000000 --- a/python-client/windmill-api/windmill_api/models/execute_component_json_body_force_viewer_static_fields.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ExecuteComponentJsonBodyForceViewerStaticFields") - - -@_attrs_define -class ExecuteComponentJsonBodyForceViewerStaticFields: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - execute_component_json_body_force_viewer_static_fields = cls( - ) - - execute_component_json_body_force_viewer_static_fields.additional_properties = d - return execute_component_json_body_force_viewer_static_fields - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/execute_component_json_body_raw_code.py b/python-client/windmill-api/windmill_api/models/execute_component_json_body_raw_code.py deleted file mode 100644 index 13c50fe1be..0000000000 --- a/python-client/windmill-api/windmill_api/models/execute_component_json_body_raw_code.py +++ /dev/null @@ -1,95 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ExecuteComponentJsonBodyRawCode") - - -@_attrs_define -class ExecuteComponentJsonBodyRawCode: - """ - Attributes: - content (str): - language (str): - path (Union[Unset, str]): - cache_ttl (Union[Unset, int]): - """ - - content: str - language: str - path: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - content = self.content - language = self.language - path = self.path - cache_ttl = self.cache_ttl - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "content": content, - "language": language, - }) - if path is not UNSET: - field_dict["path"] = path - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - content = d.pop("content") - - language = d.pop("language") - - path = d.pop("path", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - execute_component_json_body_raw_code = cls( - content=content, - language=language, - path=path, - cache_ttl=cache_ttl, - ) - - execute_component_json_body_raw_code.additional_properties = d - return execute_component_json_body_raw_code - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/exists_username_json_body.py b/python-client/windmill-api/windmill_api/models/exists_username_json_body.py deleted file mode 100644 index 808b3d120c..0000000000 --- a/python-client/windmill-api/windmill_api/models/exists_username_json_body.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ExistsUsernameJsonBody") - - -@_attrs_define -class ExistsUsernameJsonBody: - """ - Attributes: - id (str): - username (str): - """ - - id: str - username: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "username": username, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - username = d.pop("username") - - exists_username_json_body = cls( - id=id, - username=username, - ) - - exists_username_json_body.additional_properties = d - return exists_username_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/exists_workspace_json_body.py b/python-client/windmill-api/windmill_api/models/exists_workspace_json_body.py deleted file mode 100644 index 3bd8b036a5..0000000000 --- a/python-client/windmill-api/windmill_api/models/exists_workspace_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ExistsWorkspaceJsonBody") - - -@_attrs_define -class ExistsWorkspaceJsonBody: - """ - Attributes: - id (str): - """ - - id: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - exists_workspace_json_body = cls( - id=id, - ) - - exists_workspace_json_body.additional_properties = d - return exists_workspace_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_metadata.py b/python-client/windmill-api/windmill_api/models/flow_metadata.py deleted file mode 100644 index 5f07b049bb..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_metadata.py +++ /dev/null @@ -1,188 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_metadata_extra_perms import FlowMetadataExtraPerms - - - - - -T = TypeVar("T", bound="FlowMetadata") - - -@_attrs_define -class FlowMetadata: - """ - Attributes: - path (str): - edited_by (str): - edited_at (datetime.datetime): - archived (bool): - extra_perms (FlowMetadataExtraPerms): - workspace_id (Union[Unset, str]): - additional_properties (Union[Unset, bool]): - starred (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - tag (Union[Unset, str]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - dedicated_worker (Union[Unset, bool]): - timeout (Union[Unset, float]): - """ - - path: str - edited_by: str - edited_at: datetime.datetime - archived: bool - extra_perms: 'FlowMetadataExtraPerms' - workspace_id: Union[Unset, str] = UNSET - additional_properties: Union[Unset, bool] = UNSET - starred: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - timeout: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_metadata_extra_perms import FlowMetadataExtraPerms - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - archived = self.archived - extra_perms = self.extra_perms.to_dict() - - workspace_id = self.workspace_id - additional_properties = self.additional_properties - starred = self.starred - draft_only = self.draft_only - tag = self.tag - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - dedicated_worker = self.dedicated_worker - timeout = self.timeout - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "archived": archived, - "extra_perms": extra_perms, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if additional_properties is not UNSET: - field_dict["additionalProperties"] = additional_properties - if starred is not UNSET: - field_dict["starred"] = starred - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if tag is not UNSET: - field_dict["tag"] = tag - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if timeout is not UNSET: - field_dict["timeout"] = timeout - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_metadata_extra_perms import FlowMetadataExtraPerms - d = src_dict.copy() - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - archived = d.pop("archived") - - extra_perms = FlowMetadataExtraPerms.from_dict(d.pop("extra_perms")) - - - - - workspace_id = d.pop("workspace_id", UNSET) - - additional_properties = d.pop("additionalProperties", UNSET) - - starred = d.pop("starred", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - tag = d.pop("tag", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - timeout = d.pop("timeout", UNSET) - - flow_metadata = cls( - path=path, - edited_by=edited_by, - edited_at=edited_at, - archived=archived, - extra_perms=extra_perms, - workspace_id=workspace_id, - additional_properties=additional_properties, - starred=starred, - draft_only=draft_only, - tag=tag, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - dedicated_worker=dedicated_worker, - timeout=timeout, - ) - - flow_metadata.additional_properties = d - return flow_metadata - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_metadata_extra_perms.py b/python-client/windmill-api/windmill_api/models/flow_metadata_extra_perms.py deleted file mode 100644 index 734446e6b1..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_metadata_extra_perms.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowMetadataExtraPerms") - - -@_attrs_define -class FlowMetadataExtraPerms: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_metadata_extra_perms = cls( - ) - - flow_metadata_extra_perms.additional_properties = d - return flow_metadata_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module.py b/python-client/windmill-api/windmill_api/models/flow_module.py deleted file mode 100644 index cfad262649..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_module_sleep_type_0 import FlowModuleSleepType0 - from ..models.flow_module_retry import FlowModuleRetry - from ..models.flow_module_suspend import FlowModuleSuspend - from ..models.flow_module_stop_after_if import FlowModuleStopAfterIf - from ..models.flow_module_mock import FlowModuleMock - from ..models.flow_module_sleep_type_1 import FlowModuleSleepType1 - - - - - -T = TypeVar("T", bound="FlowModule") - - -@_attrs_define -class FlowModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, FlowModuleStopAfterIf]): - sleep (Union['FlowModuleSleepType0', 'FlowModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, FlowModuleMock]): - suspend (Union[Unset, FlowModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, FlowModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'FlowModuleStopAfterIf'] = UNSET - sleep: Union['FlowModuleSleepType0', 'FlowModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'FlowModuleMock'] = UNSET - suspend: Union[Unset, 'FlowModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'FlowModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_module_sleep_type_0 import FlowModuleSleepType0 - from ..models.flow_module_retry import FlowModuleRetry - from ..models.flow_module_suspend import FlowModuleSuspend - from ..models.flow_module_stop_after_if import FlowModuleStopAfterIf - from ..models.flow_module_mock import FlowModuleMock - from ..models.flow_module_sleep_type_1 import FlowModuleSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, FlowModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_module_sleep_type_0 import FlowModuleSleepType0 - from ..models.flow_module_retry import FlowModuleRetry - from ..models.flow_module_suspend import FlowModuleSuspend - from ..models.flow_module_stop_after_if import FlowModuleStopAfterIf - from ..models.flow_module_mock import FlowModuleMock - from ..models.flow_module_sleep_type_1 import FlowModuleSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, FlowModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = FlowModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['FlowModuleSleepType0', 'FlowModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, FlowModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = FlowModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, FlowModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = FlowModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, FlowModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = FlowModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, FlowModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = FlowModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, FlowModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = FlowModuleRetry.from_dict(_retry) - - - - - flow_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - flow_module.additional_properties = d - return flow_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_mock.py b/python-client/windmill-api/windmill_api/models/flow_module_mock.py deleted file mode 100644 index 942ac042da..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleMock") - - -@_attrs_define -class FlowModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - flow_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - flow_module_mock.additional_properties = d - return flow_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_retry.py b/python-client/windmill-api/windmill_api/models/flow_module_retry.py deleted file mode 100644 index 5384f67365..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.flow_module_retry_constant import FlowModuleRetryConstant - from ..models.flow_module_retry_exponential import FlowModuleRetryExponential - - - - - -T = TypeVar("T", bound="FlowModuleRetry") - - -@_attrs_define -class FlowModuleRetry: - """ - Attributes: - constant (Union[Unset, FlowModuleRetryConstant]): - exponential (Union[Unset, FlowModuleRetryExponential]): - """ - - constant: Union[Unset, 'FlowModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'FlowModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_module_retry_constant import FlowModuleRetryConstant - from ..models.flow_module_retry_exponential import FlowModuleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_module_retry_constant import FlowModuleRetryConstant - from ..models.flow_module_retry_exponential import FlowModuleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, FlowModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = FlowModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, FlowModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = FlowModuleRetryExponential.from_dict(_exponential) - - - - - flow_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - flow_module_retry.additional_properties = d - return flow_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/flow_module_retry_constant.py deleted file mode 100644 index c54e983322..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleRetryConstant") - - -@_attrs_define -class FlowModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - flow_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - flow_module_retry_constant.additional_properties = d - return flow_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/flow_module_retry_exponential.py deleted file mode 100644 index 8e8d232d09..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleRetryExponential") - - -@_attrs_define -class FlowModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - flow_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - flow_module_retry_exponential.additional_properties = d - return flow_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_0.py deleted file mode 100644 index e75c768a6e..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_sleep_type_0_type import FlowModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleSleepType0") - - -@_attrs_define -class FlowModuleSleepType0: - """ - Attributes: - type (FlowModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_module_sleep_type_0.additional_properties = d - return flow_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_0_type.py deleted file mode 100644 index c227b79a8d..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_1.py deleted file mode 100644 index 0882d69595..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_sleep_type_1_type import FlowModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleSleepType1") - - -@_attrs_define -class FlowModuleSleepType1: - """ - Attributes: - expr (str): - type (FlowModuleSleepType1Type): - """ - - expr: str - type: FlowModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleSleepType1Type(d.pop("type")) - - - - - flow_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_sleep_type_1.additional_properties = d - return flow_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_1_type.py deleted file mode 100644 index 98cdcbf100..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/flow_module_stop_after_if.py deleted file mode 100644 index afe9ffcce6..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleStopAfterIf") - - -@_attrs_define -class FlowModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - flow_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - flow_module_stop_after_if.additional_properties = d - return flow_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_suspend.py b/python-client/windmill-api/windmill_api/models/flow_module_suspend.py deleted file mode 100644 index 6a08689b67..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_module_suspend_user_groups_required_type_0 import FlowModuleSuspendUserGroupsRequiredType0 - from ..models.flow_module_suspend_resume_form import FlowModuleSuspendResumeForm - from ..models.flow_module_suspend_user_groups_required_type_1 import FlowModuleSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="FlowModuleSuspend") - - -@_attrs_define -class FlowModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, FlowModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['FlowModuleSuspendUserGroupsRequiredType0', - 'FlowModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'FlowModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['FlowModuleSuspendUserGroupsRequiredType0', 'FlowModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_module_suspend_user_groups_required_type_0 import FlowModuleSuspendUserGroupsRequiredType0 - from ..models.flow_module_suspend_resume_form import FlowModuleSuspendResumeForm - from ..models.flow_module_suspend_user_groups_required_type_1 import FlowModuleSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, FlowModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_module_suspend_user_groups_required_type_0 import FlowModuleSuspendUserGroupsRequiredType0 - from ..models.flow_module_suspend_resume_form import FlowModuleSuspendResumeForm - from ..models.flow_module_suspend_user_groups_required_type_1 import FlowModuleSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, FlowModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = FlowModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['FlowModuleSuspendUserGroupsRequiredType0', 'FlowModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, FlowModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = FlowModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, FlowModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = FlowModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - flow_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - flow_module_suspend.additional_properties = d - return flow_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/flow_module_suspend_resume_form.py deleted file mode 100644 index bce2e6a4e5..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.flow_module_suspend_resume_form_schema import FlowModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="FlowModuleSuspendResumeForm") - - -@_attrs_define -class FlowModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, FlowModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'FlowModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_module_suspend_resume_form_schema import FlowModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_module_suspend_resume_form_schema import FlowModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, FlowModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = FlowModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - flow_module_suspend_resume_form = cls( - schema=schema, - ) - - flow_module_suspend_resume_form.additional_properties = d - return flow_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/flow_module_suspend_resume_form_schema.py deleted file mode 100644 index 2293a861e8..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowModuleSuspendResumeFormSchema") - - -@_attrs_define -class FlowModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_module_suspend_resume_form_schema = cls( - ) - - flow_module_suspend_resume_form_schema.additional_properties = d - return flow_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 79b0ab654c..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_suspend_user_groups_required_type_0_type import FlowModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_module_suspend_user_groups_required_type_0.additional_properties = d - return flow_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index b63cdc0d58..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 95a7d525aa..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_suspend_user_groups_required_type_1_type import FlowModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_suspend_user_groups_required_type_1.additional_properties = d - return flow_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index ea46285e62..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_0.py deleted file mode 100644 index b8cb62f203..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_0_input_transforms_additional_property_type_0_type import FlowModuleValue2Type0InputTransformsAdditionalPropertyType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type0InputTransformsAdditionalPropertyType0") - - -@_attrs_define -class FlowModuleValue2Type0InputTransformsAdditionalPropertyType0: - """ - Attributes: - type (FlowModuleValue2Type0InputTransformsAdditionalPropertyType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type0InputTransformsAdditionalPropertyType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type0InputTransformsAdditionalPropertyType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_0_input_transforms_additional_property_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_0_input_transforms_additional_property_type_0.additional_properties = d - return flow_module_value_2_type_0_input_transforms_additional_property_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_0_type.py deleted file mode 100644 index f84e45d182..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type0InputTransformsAdditionalPropertyType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_1.py deleted file mode 100644 index 0337f68515..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_0_input_transforms_additional_property_type_1_type import FlowModuleValue2Type0InputTransformsAdditionalPropertyType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type0InputTransformsAdditionalPropertyType1") - - -@_attrs_define -class FlowModuleValue2Type0InputTransformsAdditionalPropertyType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type0InputTransformsAdditionalPropertyType1Type): - """ - - expr: str - type: FlowModuleValue2Type0InputTransformsAdditionalPropertyType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type0InputTransformsAdditionalPropertyType1Type(d.pop("type")) - - - - - flow_module_value_2_type_0_input_transforms_additional_property_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_0_input_transforms_additional_property_type_1.additional_properties = d - return flow_module_value_2_type_0_input_transforms_additional_property_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_1_type.py deleted file mode 100644 index c9abeac7e5..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_input_transforms_additional_property_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type0InputTransformsAdditionalPropertyType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_language.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_language.py deleted file mode 100644 index c54714a360..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type0Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_type.py deleted file mode 100644 index 8d0839d15f..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type0Type(str, Enum): - RAWSCRIPT = "rawscript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_0.py deleted file mode 100644 index 4c53b79c29..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_1_input_transforms_additional_property_type_0_type import FlowModuleValue2Type1InputTransformsAdditionalPropertyType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type1InputTransformsAdditionalPropertyType0") - - -@_attrs_define -class FlowModuleValue2Type1InputTransformsAdditionalPropertyType0: - """ - Attributes: - type (FlowModuleValue2Type1InputTransformsAdditionalPropertyType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type1InputTransformsAdditionalPropertyType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type1InputTransformsAdditionalPropertyType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_1_input_transforms_additional_property_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_1_input_transforms_additional_property_type_0.additional_properties = d - return flow_module_value_2_type_1_input_transforms_additional_property_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_0_type.py deleted file mode 100644 index 51f41f33b7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type1InputTransformsAdditionalPropertyType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_1.py deleted file mode 100644 index a73b836c36..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_1_input_transforms_additional_property_type_1_type import FlowModuleValue2Type1InputTransformsAdditionalPropertyType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type1InputTransformsAdditionalPropertyType1") - - -@_attrs_define -class FlowModuleValue2Type1InputTransformsAdditionalPropertyType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type1InputTransformsAdditionalPropertyType1Type): - """ - - expr: str - type: FlowModuleValue2Type1InputTransformsAdditionalPropertyType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type1InputTransformsAdditionalPropertyType1Type(d.pop("type")) - - - - - flow_module_value_2_type_1_input_transforms_additional_property_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_1_input_transforms_additional_property_type_1.additional_properties = d - return flow_module_value_2_type_1_input_transforms_additional_property_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_1_type.py deleted file mode 100644 index 77db9eed5e..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_input_transforms_additional_property_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type1InputTransformsAdditionalPropertyType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_type.py deleted file mode 100644 index adf394c546..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type1Type(str, Enum): - SCRIPT = "script" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_0.py deleted file mode 100644 index 25102beea4..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_2_input_transforms_additional_property_type_0_type import FlowModuleValue2Type2InputTransformsAdditionalPropertyType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type2InputTransformsAdditionalPropertyType0") - - -@_attrs_define -class FlowModuleValue2Type2InputTransformsAdditionalPropertyType0: - """ - Attributes: - type (FlowModuleValue2Type2InputTransformsAdditionalPropertyType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type2InputTransformsAdditionalPropertyType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type2InputTransformsAdditionalPropertyType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_2_input_transforms_additional_property_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_2_input_transforms_additional_property_type_0.additional_properties = d - return flow_module_value_2_type_2_input_transforms_additional_property_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_0_type.py deleted file mode 100644 index 2a526e5b10..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type2InputTransformsAdditionalPropertyType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_1.py deleted file mode 100644 index 42285f46eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_2_input_transforms_additional_property_type_1_type import FlowModuleValue2Type2InputTransformsAdditionalPropertyType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type2InputTransformsAdditionalPropertyType1") - - -@_attrs_define -class FlowModuleValue2Type2InputTransformsAdditionalPropertyType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type2InputTransformsAdditionalPropertyType1Type): - """ - - expr: str - type: FlowModuleValue2Type2InputTransformsAdditionalPropertyType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type2InputTransformsAdditionalPropertyType1Type(d.pop("type")) - - - - - flow_module_value_2_type_2_input_transforms_additional_property_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_2_input_transforms_additional_property_type_1.additional_properties = d - return flow_module_value_2_type_2_input_transforms_additional_property_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_1_type.py deleted file mode 100644 index 701e23b084..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_input_transforms_additional_property_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type2InputTransformsAdditionalPropertyType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_type.py deleted file mode 100644 index becacab923..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_2_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type2Type(str, Enum): - FLOW = "flow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_0.py deleted file mode 100644 index 7c42277a63..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_3_iterator_type_0_type import FlowModuleValue2Type3IteratorType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3IteratorType0") - - -@_attrs_define -class FlowModuleValue2Type3IteratorType0: - """ - Attributes: - type (FlowModuleValue2Type3IteratorType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type3IteratorType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type3IteratorType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_3_iterator_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_3_iterator_type_0.additional_properties = d - return flow_module_value_2_type_3_iterator_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_0_type.py deleted file mode 100644 index a169c476b6..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type3IteratorType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_1.py deleted file mode 100644 index 5dca16032a..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_3_iterator_type_1_type import FlowModuleValue2Type3IteratorType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3IteratorType1") - - -@_attrs_define -class FlowModuleValue2Type3IteratorType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type3IteratorType1Type): - """ - - expr: str - type: FlowModuleValue2Type3IteratorType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type3IteratorType1Type(d.pop("type")) - - - - - flow_module_value_2_type_3_iterator_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_3_iterator_type_1.additional_properties = d - return flow_module_value_2_type_3_iterator_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_1_type.py deleted file mode 100644 index 1848f4f8b8..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_iterator_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type3IteratorType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_mock.py deleted file mode 100644 index 28ea650429..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemMock") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - flow_module_value_2_type_3_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - flow_module_value_2_type_3_modules_item_mock.additional_properties = d - return flow_module_value_2_type_3_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_retry_constant.py deleted file mode 100644 index b17f092859..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemRetryConstant") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - flow_module_value_2_type_3_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - flow_module_value_2_type_3_modules_item_retry_constant.additional_properties = d - return flow_module_value_2_type_3_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_retry_exponential.py deleted file mode 100644 index 4fbe207016..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemRetryExponential") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - flow_module_value_2_type_3_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - flow_module_value_2_type_3_modules_item_retry_exponential.additional_properties = d - return flow_module_value_2_type_3_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_0.py deleted file mode 100644 index d76a4690c9..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_3_modules_item_sleep_type_0_type import FlowModuleValue2Type3ModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemSleepType0") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemSleepType0: - """ - Attributes: - type (FlowModuleValue2Type3ModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type3ModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type3ModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_3_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_3_modules_item_sleep_type_0.additional_properties = d - return flow_module_value_2_type_3_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_0_type.py deleted file mode 100644 index 76bd7b8534..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type3ModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_1.py deleted file mode 100644 index 2566cbe046..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_3_modules_item_sleep_type_1_type import FlowModuleValue2Type3ModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemSleepType1") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemSleepType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type3ModulesItemSleepType1Type): - """ - - expr: str - type: FlowModuleValue2Type3ModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type3ModulesItemSleepType1Type(d.pop("type")) - - - - - flow_module_value_2_type_3_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_3_modules_item_sleep_type_1.additional_properties = d - return flow_module_value_2_type_3_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_1_type.py deleted file mode 100644 index 2296ef50a8..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type3ModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_stop_after_if.py deleted file mode 100644 index a4797d6a36..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemStopAfterIf") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - flow_module_value_2_type_3_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - flow_module_value_2_type_3_modules_item_stop_after_if.additional_properties = d - return flow_module_value_2_type_3_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 954318e975..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_module_value_2_type_3_modules_item_suspend_resume_form_schema = cls( - ) - - flow_module_value_2_type_3_modules_item_suspend_resume_form_schema.additional_properties = d - return flow_module_value_2_type_3_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 285403a836..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0_type import FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 9939883cfc..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 4d8d6831e1..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1_type import FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index ce4c369133..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type3ModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_type.py deleted file mode 100644 index 0a2a61898a..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_3_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type3Type(str, Enum): - FORLOOPFLOW = "forloopflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_mock.py deleted file mode 100644 index d6e020b952..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemMock") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - flow_module_value_2_type_4_branches_item_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - flow_module_value_2_type_4_branches_item_modules_item_mock.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_retry_constant.py deleted file mode 100644 index 76cbde2697..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemRetryConstant") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - flow_module_value_2_type_4_branches_item_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - flow_module_value_2_type_4_branches_item_modules_item_retry_constant.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_retry_exponential.py deleted file mode 100644 index aad9ca63ff..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemRetryExponential") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - flow_module_value_2_type_4_branches_item_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - flow_module_value_2_type_4_branches_item_modules_item_retry_exponential.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0.py deleted file mode 100644 index 33d1045d3e..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0_type import FlowModuleValue2Type4BranchesItemModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemSleepType0") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemSleepType0: - """ - Attributes: - type (FlowModuleValue2Type4BranchesItemModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type4BranchesItemModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type4BranchesItemModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0_type.py deleted file mode 100644 index 3eed7577ee..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4BranchesItemModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1.py deleted file mode 100644 index c50e8497a4..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1_type import FlowModuleValue2Type4BranchesItemModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemSleepType1") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemSleepType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type4BranchesItemModulesItemSleepType1Type): - """ - - expr: str - type: FlowModuleValue2Type4BranchesItemModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type4BranchesItemModulesItemSleepType1Type(d.pop("type")) - - - - - flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1_type.py deleted file mode 100644 index 6e7ff5dae2..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4BranchesItemModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_stop_after_if.py deleted file mode 100644 index b00b824c45..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemStopAfterIf") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - flow_module_value_2_type_4_branches_item_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - flow_module_value_2_type_4_branches_item_modules_item_stop_after_if.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index bd3d35fb09..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_module_value_2_type_4_branches_item_modules_item_suspend_resume_form_schema = cls( - ) - - flow_module_value_2_type_4_branches_item_modules_item_suspend_resume_form_schema.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 4c726c812c..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0_type import FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 1fad9f88b5..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 9220299867..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1_type import FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 297fea4efa..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_branches_item_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4BranchesItemModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_mock.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_mock.py deleted file mode 100644 index 5d8ccd9042..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemMock") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - flow_module_value_2_type_4_default_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - flow_module_value_2_type_4_default_item_mock.additional_properties = d - return flow_module_value_2_type_4_default_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_retry_constant.py deleted file mode 100644 index 8188e9fab3..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemRetryConstant") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - flow_module_value_2_type_4_default_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - flow_module_value_2_type_4_default_item_retry_constant.additional_properties = d - return flow_module_value_2_type_4_default_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_retry_exponential.py deleted file mode 100644 index 4e98b9b525..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemRetryExponential") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - flow_module_value_2_type_4_default_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - flow_module_value_2_type_4_default_item_retry_exponential.additional_properties = d - return flow_module_value_2_type_4_default_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_0.py deleted file mode 100644 index c12a8b27be..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_4_default_item_sleep_type_0_type import FlowModuleValue2Type4DefaultItemSleepType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemSleepType0") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemSleepType0: - """ - Attributes: - type (FlowModuleValue2Type4DefaultItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type4DefaultItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type4DefaultItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_4_default_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_4_default_item_sleep_type_0.additional_properties = d - return flow_module_value_2_type_4_default_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_0_type.py deleted file mode 100644 index f5b5597aaa..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4DefaultItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_1.py deleted file mode 100644 index ded6c07ec1..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_4_default_item_sleep_type_1_type import FlowModuleValue2Type4DefaultItemSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemSleepType1") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemSleepType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type4DefaultItemSleepType1Type): - """ - - expr: str - type: FlowModuleValue2Type4DefaultItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type4DefaultItemSleepType1Type(d.pop("type")) - - - - - flow_module_value_2_type_4_default_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_4_default_item_sleep_type_1.additional_properties = d - return flow_module_value_2_type_4_default_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_1_type.py deleted file mode 100644 index 50f685b43f..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4DefaultItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_stop_after_if.py deleted file mode 100644 index 7a92eb9dc7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemStopAfterIf") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - flow_module_value_2_type_4_default_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - flow_module_value_2_type_4_default_item_stop_after_if.additional_properties = d - return flow_module_value_2_type_4_default_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_resume_form_schema.py deleted file mode 100644 index e4e2a896fa..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemSuspendResumeFormSchema") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_module_value_2_type_4_default_item_suspend_resume_form_schema = cls( - ) - - flow_module_value_2_type_4_default_item_suspend_resume_form_schema.additional_properties = d - return flow_module_value_2_type_4_default_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 6526e06fb4..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0_type import FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0.additional_properties = d - return flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index f24aeb2616..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index c1e5532f57..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1_type import FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1.additional_properties = d - return flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 5d2ad6714d..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_default_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4DefaultItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_type.py deleted file mode 100644 index 86c405ec71..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_4_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type4Type(str, Enum): - BRANCHONE = "branchone" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_mock.py deleted file mode 100644 index c67a6fae67..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemMock") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - flow_module_value_2_type_5_branches_item_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - flow_module_value_2_type_5_branches_item_modules_item_mock.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_retry_constant.py deleted file mode 100644 index fc1479df4c..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemRetryConstant") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - flow_module_value_2_type_5_branches_item_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - flow_module_value_2_type_5_branches_item_modules_item_retry_constant.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_retry_exponential.py deleted file mode 100644 index d12c579351..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemRetryExponential") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - flow_module_value_2_type_5_branches_item_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - flow_module_value_2_type_5_branches_item_modules_item_retry_exponential.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0.py deleted file mode 100644 index fbe82af952..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0_type import FlowModuleValue2Type5BranchesItemModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemSleepType0") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemSleepType0: - """ - Attributes: - type (FlowModuleValue2Type5BranchesItemModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type5BranchesItemModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type5BranchesItemModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0_type.py deleted file mode 100644 index ac331ca635..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type5BranchesItemModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1.py deleted file mode 100644 index a7009fb202..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1_type import FlowModuleValue2Type5BranchesItemModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemSleepType1") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemSleepType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type5BranchesItemModulesItemSleepType1Type): - """ - - expr: str - type: FlowModuleValue2Type5BranchesItemModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type5BranchesItemModulesItemSleepType1Type(d.pop("type")) - - - - - flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1_type.py deleted file mode 100644 index 7fac8bd961..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type5BranchesItemModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_stop_after_if.py deleted file mode 100644 index e1c002187d..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemStopAfterIf") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - flow_module_value_2_type_5_branches_item_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - flow_module_value_2_type_5_branches_item_modules_item_stop_after_if.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index aac3170a0b..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_module_value_2_type_5_branches_item_modules_item_suspend_resume_form_schema = cls( - ) - - flow_module_value_2_type_5_branches_item_modules_item_suspend_resume_form_schema.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 16d0fb56e7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0_type import FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 53c4694756..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 43d5055663..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1_type import FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 83aa09401f..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_branches_item_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type5BranchesItemModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_type.py deleted file mode 100644 index 106640cbaf..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_5_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type5Type(str, Enum): - BRANCHALL = "branchall" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_6.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_6.py deleted file mode 100644 index a79182a4ed..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_6.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_module_value_2_type_6_type import FlowModuleValue2Type6Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type6") - - -@_attrs_define -class FlowModuleValue2Type6: - """ - Attributes: - type (FlowModuleValue2Type6Type): - flow (Union[Unset, bool]): - """ - - type: FlowModuleValue2Type6Type - flow: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - flow = self.flow - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if flow is not UNSET: - field_dict["flow"] = flow - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type6Type(d.pop("type")) - - - - - flow = d.pop("flow", UNSET) - - flow_module_value_2_type_6 = cls( - type=type, - flow=flow, - ) - - flow_module_value_2_type_6.additional_properties = d - return flow_module_value_2_type_6 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_6_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_6_type.py deleted file mode 100644 index d2895606a8..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_6_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type6Type(str, Enum): - IDENTITY = "identity" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_7.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_7.py deleted file mode 100644 index d1faa8063f..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_7.py +++ /dev/null @@ -1,75 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_module_value_2_type_7_type import FlowModuleValue2Type7Type - - - - - - -T = TypeVar("T", bound="FlowModuleValue2Type7") - - -@_attrs_define -class FlowModuleValue2Type7: - """ - Attributes: - type (FlowModuleValue2Type7Type): - """ - - type: FlowModuleValue2Type7Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowModuleValue2Type7Type(d.pop("type")) - - - - - flow_module_value_2_type_7 = cls( - type=type, - ) - - flow_module_value_2_type_7.additional_properties = d - return flow_module_value_2_type_7 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_7_type.py b/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_7_type.py deleted file mode 100644 index 47cad1bf38..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_module_value_2_type_7_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowModuleValue2Type7Type(str, Enum): - GRAPHQL = "graphql" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview.py b/python-client/windmill-api/windmill_api/models/flow_preview.py deleted file mode 100644 index 4bcc4f3565..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview.py +++ /dev/null @@ -1,134 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.flow_preview_value import FlowPreviewValue - from ..models.flow_preview_restarted_from import FlowPreviewRestartedFrom - from ..models.flow_preview_args import FlowPreviewArgs - - - - - -T = TypeVar("T", bound="FlowPreview") - - -@_attrs_define -class FlowPreview: - """ - Attributes: - value (FlowPreviewValue): - args (FlowPreviewArgs): - path (Union[Unset, str]): - tag (Union[Unset, str]): - restarted_from (Union[Unset, FlowPreviewRestartedFrom]): - """ - - value: 'FlowPreviewValue' - args: 'FlowPreviewArgs' - path: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - restarted_from: Union[Unset, 'FlowPreviewRestartedFrom'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value import FlowPreviewValue - from ..models.flow_preview_restarted_from import FlowPreviewRestartedFrom - from ..models.flow_preview_args import FlowPreviewArgs - value = self.value.to_dict() - - args = self.args.to_dict() - - path = self.path - tag = self.tag - restarted_from: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.restarted_from, Unset): - restarted_from = self.restarted_from.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "value": value, - "args": args, - }) - if path is not UNSET: - field_dict["path"] = path - if tag is not UNSET: - field_dict["tag"] = tag - if restarted_from is not UNSET: - field_dict["restarted_from"] = restarted_from - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value import FlowPreviewValue - from ..models.flow_preview_restarted_from import FlowPreviewRestartedFrom - from ..models.flow_preview_args import FlowPreviewArgs - d = src_dict.copy() - value = FlowPreviewValue.from_dict(d.pop("value")) - - - - - args = FlowPreviewArgs.from_dict(d.pop("args")) - - - - - path = d.pop("path", UNSET) - - tag = d.pop("tag", UNSET) - - _restarted_from = d.pop("restarted_from", UNSET) - restarted_from: Union[Unset, FlowPreviewRestartedFrom] - if isinstance(_restarted_from, Unset): - restarted_from = UNSET - else: - restarted_from = FlowPreviewRestartedFrom.from_dict(_restarted_from) - - - - - flow_preview = cls( - value=value, - args=args, - path=path, - tag=tag, - restarted_from=restarted_from, - ) - - flow_preview.additional_properties = d - return flow_preview - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_args.py b/python-client/windmill-api/windmill_api/models/flow_preview_args.py deleted file mode 100644 index 30d8ac600a..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowPreviewArgs") - - -@_attrs_define -class FlowPreviewArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_preview_args = cls( - ) - - flow_preview_args.additional_properties = d - return flow_preview_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_restarted_from.py b/python-client/windmill-api/windmill_api/models/flow_preview_restarted_from.py deleted file mode 100644 index 5772fc1cb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_restarted_from.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewRestartedFrom") - - -@_attrs_define -class FlowPreviewRestartedFrom: - """ - Attributes: - flow_job_id (Union[Unset, str]): - step_id (Union[Unset, str]): - branch_or_iteration_n (Union[Unset, int]): - """ - - flow_job_id: Union[Unset, str] = UNSET - step_id: Union[Unset, str] = UNSET - branch_or_iteration_n: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - flow_job_id = self.flow_job_id - step_id = self.step_id - branch_or_iteration_n = self.branch_or_iteration_n - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if flow_job_id is not UNSET: - field_dict["flow_job_id"] = flow_job_id - if step_id is not UNSET: - field_dict["step_id"] = step_id - if branch_or_iteration_n is not UNSET: - field_dict["branch_or_iteration_n"] = branch_or_iteration_n - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_job_id = d.pop("flow_job_id", UNSET) - - step_id = d.pop("step_id", UNSET) - - branch_or_iteration_n = d.pop("branch_or_iteration_n", UNSET) - - flow_preview_restarted_from = cls( - flow_job_id=flow_job_id, - step_id=step_id, - branch_or_iteration_n=branch_or_iteration_n, - ) - - flow_preview_restarted_from.additional_properties = d - return flow_preview_restarted_from - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value.py b/python-client/windmill-api/windmill_api/models/flow_preview_value.py deleted file mode 100644 index 31e5878ca4..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_preview_value_failure_module import FlowPreviewValueFailureModule - from ..models.flow_preview_value_modules_item import FlowPreviewValueModulesItem - - - - - -T = TypeVar("T", bound="FlowPreviewValue") - - -@_attrs_define -class FlowPreviewValue: - """ - Attributes: - modules (List['FlowPreviewValueModulesItem']): - failure_module (Union[Unset, FlowPreviewValueFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['FlowPreviewValueModulesItem'] - failure_module: Union[Unset, 'FlowPreviewValueFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_failure_module import FlowPreviewValueFailureModule - from ..models.flow_preview_value_modules_item import FlowPreviewValueModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_failure_module import FlowPreviewValueFailureModule - from ..models.flow_preview_value_modules_item import FlowPreviewValueModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = FlowPreviewValueModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, FlowPreviewValueFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = FlowPreviewValueFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - flow_preview_value = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - flow_preview_value.additional_properties = d - return flow_preview_value - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module.py deleted file mode 100644 index b8109a615e..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_preview_value_failure_module_suspend import FlowPreviewValueFailureModuleSuspend - from ..models.flow_preview_value_failure_module_sleep_type_0 import FlowPreviewValueFailureModuleSleepType0 - from ..models.flow_preview_value_failure_module_stop_after_if import FlowPreviewValueFailureModuleStopAfterIf - from ..models.flow_preview_value_failure_module_sleep_type_1 import FlowPreviewValueFailureModuleSleepType1 - from ..models.flow_preview_value_failure_module_retry import FlowPreviewValueFailureModuleRetry - from ..models.flow_preview_value_failure_module_mock import FlowPreviewValueFailureModuleMock - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModule") - - -@_attrs_define -class FlowPreviewValueFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, FlowPreviewValueFailureModuleStopAfterIf]): - sleep (Union['FlowPreviewValueFailureModuleSleepType0', 'FlowPreviewValueFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, FlowPreviewValueFailureModuleMock]): - suspend (Union[Unset, FlowPreviewValueFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, FlowPreviewValueFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'FlowPreviewValueFailureModuleStopAfterIf'] = UNSET - sleep: Union['FlowPreviewValueFailureModuleSleepType0', 'FlowPreviewValueFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'FlowPreviewValueFailureModuleMock'] = UNSET - suspend: Union[Unset, 'FlowPreviewValueFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'FlowPreviewValueFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_failure_module_suspend import FlowPreviewValueFailureModuleSuspend - from ..models.flow_preview_value_failure_module_sleep_type_0 import FlowPreviewValueFailureModuleSleepType0 - from ..models.flow_preview_value_failure_module_stop_after_if import FlowPreviewValueFailureModuleStopAfterIf - from ..models.flow_preview_value_failure_module_sleep_type_1 import FlowPreviewValueFailureModuleSleepType1 - from ..models.flow_preview_value_failure_module_retry import FlowPreviewValueFailureModuleRetry - from ..models.flow_preview_value_failure_module_mock import FlowPreviewValueFailureModuleMock - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, FlowPreviewValueFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_failure_module_suspend import FlowPreviewValueFailureModuleSuspend - from ..models.flow_preview_value_failure_module_sleep_type_0 import FlowPreviewValueFailureModuleSleepType0 - from ..models.flow_preview_value_failure_module_stop_after_if import FlowPreviewValueFailureModuleStopAfterIf - from ..models.flow_preview_value_failure_module_sleep_type_1 import FlowPreviewValueFailureModuleSleepType1 - from ..models.flow_preview_value_failure_module_retry import FlowPreviewValueFailureModuleRetry - from ..models.flow_preview_value_failure_module_mock import FlowPreviewValueFailureModuleMock - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, FlowPreviewValueFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = FlowPreviewValueFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['FlowPreviewValueFailureModuleSleepType0', 'FlowPreviewValueFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, FlowPreviewValueFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = FlowPreviewValueFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, FlowPreviewValueFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = FlowPreviewValueFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, FlowPreviewValueFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = FlowPreviewValueFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, FlowPreviewValueFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = FlowPreviewValueFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, FlowPreviewValueFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = FlowPreviewValueFailureModuleRetry.from_dict(_retry) - - - - - flow_preview_value_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - flow_preview_value_failure_module.additional_properties = d - return flow_preview_value_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_mock.py deleted file mode 100644 index 65b656dff7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleMock") - - -@_attrs_define -class FlowPreviewValueFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - flow_preview_value_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - flow_preview_value_failure_module_mock.additional_properties = d - return flow_preview_value_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry.py deleted file mode 100644 index cae7f89df6..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.flow_preview_value_failure_module_retry_exponential import FlowPreviewValueFailureModuleRetryExponential - from ..models.flow_preview_value_failure_module_retry_constant import FlowPreviewValueFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleRetry") - - -@_attrs_define -class FlowPreviewValueFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, FlowPreviewValueFailureModuleRetryConstant]): - exponential (Union[Unset, FlowPreviewValueFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'FlowPreviewValueFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'FlowPreviewValueFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_failure_module_retry_exponential import FlowPreviewValueFailureModuleRetryExponential - from ..models.flow_preview_value_failure_module_retry_constant import FlowPreviewValueFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_failure_module_retry_exponential import FlowPreviewValueFailureModuleRetryExponential - from ..models.flow_preview_value_failure_module_retry_constant import FlowPreviewValueFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, FlowPreviewValueFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = FlowPreviewValueFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, FlowPreviewValueFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = FlowPreviewValueFailureModuleRetryExponential.from_dict(_exponential) - - - - - flow_preview_value_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - flow_preview_value_failure_module_retry.additional_properties = d - return flow_preview_value_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry_constant.py deleted file mode 100644 index 3a15eaf9f6..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleRetryConstant") - - -@_attrs_define -class FlowPreviewValueFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - flow_preview_value_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - flow_preview_value_failure_module_retry_constant.additional_properties = d - return flow_preview_value_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry_exponential.py deleted file mode 100644 index c11b4358b4..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleRetryExponential") - - -@_attrs_define -class FlowPreviewValueFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - flow_preview_value_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - flow_preview_value_failure_module_retry_exponential.additional_properties = d - return flow_preview_value_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_0.py deleted file mode 100644 index 718db73287..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_preview_value_failure_module_sleep_type_0_type import FlowPreviewValueFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleSleepType0") - - -@_attrs_define -class FlowPreviewValueFailureModuleSleepType0: - """ - Attributes: - type (FlowPreviewValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowPreviewValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowPreviewValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_preview_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_preview_value_failure_module_sleep_type_0.additional_properties = d - return flow_preview_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index 0446625d7c..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_1.py deleted file mode 100644 index 09754f3965..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_preview_value_failure_module_sleep_type_1_type import FlowPreviewValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleSleepType1") - - -@_attrs_define -class FlowPreviewValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (FlowPreviewValueFailureModuleSleepType1Type): - """ - - expr: str - type: FlowPreviewValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowPreviewValueFailureModuleSleepType1Type(d.pop("type")) - - - - - flow_preview_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_preview_value_failure_module_sleep_type_1.additional_properties = d - return flow_preview_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index c66a8033c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_stop_after_if.py deleted file mode 100644 index 433352fec6..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleStopAfterIf") - - -@_attrs_define -class FlowPreviewValueFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - flow_preview_value_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - flow_preview_value_failure_module_stop_after_if.additional_properties = d - return flow_preview_value_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend.py deleted file mode 100644 index a08ec70ce6..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_0 import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_1 import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.flow_preview_value_failure_module_suspend_resume_form import FlowPreviewValueFailureModuleSuspendResumeForm - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleSuspend") - - -@_attrs_define -class FlowPreviewValueFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, FlowPreviewValueFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0', - 'FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'FlowPreviewValueFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0', 'FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_0 import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_1 import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.flow_preview_value_failure_module_suspend_resume_form import FlowPreviewValueFailureModuleSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_0 import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_1 import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.flow_preview_value_failure_module_suspend_resume_form import FlowPreviewValueFailureModuleSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, FlowPreviewValueFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = FlowPreviewValueFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0', 'FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - flow_preview_value_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - flow_preview_value_failure_module_suspend.additional_properties = d - return flow_preview_value_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_resume_form.py deleted file mode 100644 index d33d476b20..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.flow_preview_value_failure_module_suspend_resume_form_schema import FlowPreviewValueFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleSuspendResumeForm") - - -@_attrs_define -class FlowPreviewValueFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, FlowPreviewValueFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'FlowPreviewValueFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_failure_module_suspend_resume_form_schema import FlowPreviewValueFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_failure_module_suspend_resume_form_schema import FlowPreviewValueFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, FlowPreviewValueFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = FlowPreviewValueFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - flow_preview_value_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - flow_preview_value_failure_module_suspend_resume_form.additional_properties = d - return flow_preview_value_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index ec27cbf947..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class FlowPreviewValueFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_preview_value_failure_module_suspend_resume_form_schema = cls( - ) - - flow_preview_value_failure_module_suspend_resume_form_schema.additional_properties = d - return flow_preview_value_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index d02afb6e58..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_0_type import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_preview_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_preview_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return flow_preview_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 32a9759c39..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index d4d7ed701d..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_preview_value_failure_module_suspend_user_groups_required_type_1_type import FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_preview_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_preview_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return flow_preview_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 37139b0806..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item.py deleted file mode 100644 index ae8cd052c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_preview_value_modules_item_retry import FlowPreviewValueModulesItemRetry - from ..models.flow_preview_value_modules_item_stop_after_if import FlowPreviewValueModulesItemStopAfterIf - from ..models.flow_preview_value_modules_item_suspend import FlowPreviewValueModulesItemSuspend - from ..models.flow_preview_value_modules_item_sleep_type_0 import FlowPreviewValueModulesItemSleepType0 - from ..models.flow_preview_value_modules_item_mock import FlowPreviewValueModulesItemMock - from ..models.flow_preview_value_modules_item_sleep_type_1 import FlowPreviewValueModulesItemSleepType1 - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItem") - - -@_attrs_define -class FlowPreviewValueModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, FlowPreviewValueModulesItemStopAfterIf]): - sleep (Union['FlowPreviewValueModulesItemSleepType0', 'FlowPreviewValueModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, FlowPreviewValueModulesItemMock]): - suspend (Union[Unset, FlowPreviewValueModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, FlowPreviewValueModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'FlowPreviewValueModulesItemStopAfterIf'] = UNSET - sleep: Union['FlowPreviewValueModulesItemSleepType0', 'FlowPreviewValueModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'FlowPreviewValueModulesItemMock'] = UNSET - suspend: Union[Unset, 'FlowPreviewValueModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'FlowPreviewValueModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_modules_item_retry import FlowPreviewValueModulesItemRetry - from ..models.flow_preview_value_modules_item_stop_after_if import FlowPreviewValueModulesItemStopAfterIf - from ..models.flow_preview_value_modules_item_suspend import FlowPreviewValueModulesItemSuspend - from ..models.flow_preview_value_modules_item_sleep_type_0 import FlowPreviewValueModulesItemSleepType0 - from ..models.flow_preview_value_modules_item_mock import FlowPreviewValueModulesItemMock - from ..models.flow_preview_value_modules_item_sleep_type_1 import FlowPreviewValueModulesItemSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, FlowPreviewValueModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_modules_item_retry import FlowPreviewValueModulesItemRetry - from ..models.flow_preview_value_modules_item_stop_after_if import FlowPreviewValueModulesItemStopAfterIf - from ..models.flow_preview_value_modules_item_suspend import FlowPreviewValueModulesItemSuspend - from ..models.flow_preview_value_modules_item_sleep_type_0 import FlowPreviewValueModulesItemSleepType0 - from ..models.flow_preview_value_modules_item_mock import FlowPreviewValueModulesItemMock - from ..models.flow_preview_value_modules_item_sleep_type_1 import FlowPreviewValueModulesItemSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, FlowPreviewValueModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = FlowPreviewValueModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['FlowPreviewValueModulesItemSleepType0', 'FlowPreviewValueModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, FlowPreviewValueModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = FlowPreviewValueModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, FlowPreviewValueModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = FlowPreviewValueModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, FlowPreviewValueModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = FlowPreviewValueModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, FlowPreviewValueModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = FlowPreviewValueModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, FlowPreviewValueModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = FlowPreviewValueModulesItemRetry.from_dict(_retry) - - - - - flow_preview_value_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - flow_preview_value_modules_item.additional_properties = d - return flow_preview_value_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_mock.py deleted file mode 100644 index 18e298cf2e..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemMock") - - -@_attrs_define -class FlowPreviewValueModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - flow_preview_value_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - flow_preview_value_modules_item_mock.additional_properties = d - return flow_preview_value_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry.py deleted file mode 100644 index d14f80b342..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.flow_preview_value_modules_item_retry_constant import FlowPreviewValueModulesItemRetryConstant - from ..models.flow_preview_value_modules_item_retry_exponential import FlowPreviewValueModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemRetry") - - -@_attrs_define -class FlowPreviewValueModulesItemRetry: - """ - Attributes: - constant (Union[Unset, FlowPreviewValueModulesItemRetryConstant]): - exponential (Union[Unset, FlowPreviewValueModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'FlowPreviewValueModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'FlowPreviewValueModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_modules_item_retry_constant import FlowPreviewValueModulesItemRetryConstant - from ..models.flow_preview_value_modules_item_retry_exponential import FlowPreviewValueModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_modules_item_retry_constant import FlowPreviewValueModulesItemRetryConstant - from ..models.flow_preview_value_modules_item_retry_exponential import FlowPreviewValueModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, FlowPreviewValueModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = FlowPreviewValueModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, FlowPreviewValueModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = FlowPreviewValueModulesItemRetryExponential.from_dict(_exponential) - - - - - flow_preview_value_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - flow_preview_value_modules_item_retry.additional_properties = d - return flow_preview_value_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry_constant.py deleted file mode 100644 index ecbc73ff1d..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemRetryConstant") - - -@_attrs_define -class FlowPreviewValueModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - flow_preview_value_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - flow_preview_value_modules_item_retry_constant.additional_properties = d - return flow_preview_value_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry_exponential.py deleted file mode 100644 index 9db10c367f..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemRetryExponential") - - -@_attrs_define -class FlowPreviewValueModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - flow_preview_value_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - flow_preview_value_modules_item_retry_exponential.additional_properties = d - return flow_preview_value_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_0.py deleted file mode 100644 index bd057e890f..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.flow_preview_value_modules_item_sleep_type_0_type import FlowPreviewValueModulesItemSleepType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemSleepType0") - - -@_attrs_define -class FlowPreviewValueModulesItemSleepType0: - """ - Attributes: - type (FlowPreviewValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowPreviewValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowPreviewValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_preview_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_preview_value_modules_item_sleep_type_0.additional_properties = d - return flow_preview_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index 3b393e82e2..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_1.py deleted file mode 100644 index 078f7eb298..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_preview_value_modules_item_sleep_type_1_type import FlowPreviewValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemSleepType1") - - -@_attrs_define -class FlowPreviewValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (FlowPreviewValueModulesItemSleepType1Type): - """ - - expr: str - type: FlowPreviewValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowPreviewValueModulesItemSleepType1Type(d.pop("type")) - - - - - flow_preview_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_preview_value_modules_item_sleep_type_1.additional_properties = d - return flow_preview_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index ad8db91404..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_stop_after_if.py deleted file mode 100644 index 83f5b7be45..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemStopAfterIf") - - -@_attrs_define -class FlowPreviewValueModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - flow_preview_value_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - flow_preview_value_modules_item_stop_after_if.additional_properties = d - return flow_preview_value_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend.py deleted file mode 100644 index 7b4f56400a..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_0 import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_1 import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.flow_preview_value_modules_item_suspend_resume_form import FlowPreviewValueModulesItemSuspendResumeForm - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemSuspend") - - -@_attrs_define -class FlowPreviewValueModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, FlowPreviewValueModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0', - 'FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'FlowPreviewValueModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0', 'FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_0 import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_1 import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.flow_preview_value_modules_item_suspend_resume_form import FlowPreviewValueModulesItemSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_0 import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_1 import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.flow_preview_value_modules_item_suspend_resume_form import FlowPreviewValueModulesItemSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, FlowPreviewValueModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = FlowPreviewValueModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0', 'FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - flow_preview_value_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - flow_preview_value_modules_item_suspend.additional_properties = d - return flow_preview_value_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_resume_form.py deleted file mode 100644 index e904a7e8d2..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.flow_preview_value_modules_item_suspend_resume_form_schema import FlowPreviewValueModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemSuspendResumeForm") - - -@_attrs_define -class FlowPreviewValueModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, FlowPreviewValueModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'FlowPreviewValueModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_preview_value_modules_item_suspend_resume_form_schema import FlowPreviewValueModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_preview_value_modules_item_suspend_resume_form_schema import FlowPreviewValueModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, FlowPreviewValueModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = FlowPreviewValueModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - flow_preview_value_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - flow_preview_value_modules_item_suspend_resume_form.additional_properties = d - return flow_preview_value_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index b88a909ba4..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class FlowPreviewValueModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_preview_value_modules_item_suspend_resume_form_schema = cls( - ) - - flow_preview_value_modules_item_suspend_resume_form_schema.additional_properties = d - return flow_preview_value_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 3f784a08a4..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_0_type import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_preview_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_preview_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return flow_preview_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 21997d86e6..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 469ec09a76..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_preview_value_modules_item_suspend_user_groups_required_type_1_type import FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_preview_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_preview_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return flow_preview_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index fc506cb01d..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_preview_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowPreviewValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_status.py b/python-client/windmill-api/windmill_api/models/flow_status.py deleted file mode 100644 index a0c18dec75..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status.py +++ /dev/null @@ -1,138 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_status_retry import FlowStatusRetry - from ..models.flow_status_failure_module import FlowStatusFailureModule - from ..models.flow_status_modules_item import FlowStatusModulesItem - - - - - -T = TypeVar("T", bound="FlowStatus") - - -@_attrs_define -class FlowStatus: - """ - Attributes: - step (int): - modules (List['FlowStatusModulesItem']): - failure_module (FlowStatusFailureModule): - retry (Union[Unset, FlowStatusRetry]): - """ - - step: int - modules: List['FlowStatusModulesItem'] - failure_module: 'FlowStatusFailureModule' - retry: Union[Unset, 'FlowStatusRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_status_retry import FlowStatusRetry - from ..models.flow_status_failure_module import FlowStatusFailureModule - from ..models.flow_status_modules_item import FlowStatusModulesItem - step = self.step - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module = self.failure_module.to_dict() - - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "step": step, - "modules": modules, - "failure_module": failure_module, - }) - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_status_retry import FlowStatusRetry - from ..models.flow_status_failure_module import FlowStatusFailureModule - from ..models.flow_status_modules_item import FlowStatusModulesItem - d = src_dict.copy() - step = d.pop("step") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = FlowStatusModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - failure_module = FlowStatusFailureModule.from_dict(d.pop("failure_module")) - - - - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, FlowStatusRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = FlowStatusRetry.from_dict(_retry) - - - - - flow_status = cls( - step=step, - modules=modules, - failure_module=failure_module, - retry=retry, - ) - - flow_status.additional_properties = d - return flow_status - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_failure_module.py b/python-client/windmill-api/windmill_api/models/flow_status_failure_module.py deleted file mode 100644 index 00f2cd86f3..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_failure_module.py +++ /dev/null @@ -1,223 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.flow_status_failure_module_type import FlowStatusFailureModuleType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_status_failure_module_branchall import FlowStatusFailureModuleBranchall - from ..models.flow_status_failure_module_branch_chosen import FlowStatusFailureModuleBranchChosen - from ..models.flow_status_failure_module_approvers_item import FlowStatusFailureModuleApproversItem - from ..models.flow_status_failure_module_iterator import FlowStatusFailureModuleIterator - - - - - -T = TypeVar("T", bound="FlowStatusFailureModule") - - -@_attrs_define -class FlowStatusFailureModule: - """ - Attributes: - type (FlowStatusFailureModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, FlowStatusFailureModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, FlowStatusFailureModuleBranchChosen]): - branchall (Union[Unset, FlowStatusFailureModuleBranchall]): - approvers (Union[Unset, List['FlowStatusFailureModuleApproversItem']]): - parent_module (Union[Unset, str]): - """ - - type: FlowStatusFailureModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'FlowStatusFailureModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'FlowStatusFailureModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'FlowStatusFailureModuleBranchall'] = UNSET - approvers: Union[Unset, List['FlowStatusFailureModuleApproversItem']] = UNSET - parent_module: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_status_failure_module_branchall import FlowStatusFailureModuleBranchall - from ..models.flow_status_failure_module_branch_chosen import FlowStatusFailureModuleBranchChosen - from ..models.flow_status_failure_module_approvers_item import FlowStatusFailureModuleApproversItem - from ..models.flow_status_failure_module_iterator import FlowStatusFailureModuleIterator - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - parent_module = self.parent_module - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - if parent_module is not UNSET: - field_dict["parent_module"] = parent_module - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_status_failure_module_branchall import FlowStatusFailureModuleBranchall - from ..models.flow_status_failure_module_branch_chosen import FlowStatusFailureModuleBranchChosen - from ..models.flow_status_failure_module_approvers_item import FlowStatusFailureModuleApproversItem - from ..models.flow_status_failure_module_iterator import FlowStatusFailureModuleIterator - d = src_dict.copy() - type = FlowStatusFailureModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, FlowStatusFailureModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = FlowStatusFailureModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, FlowStatusFailureModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = FlowStatusFailureModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, FlowStatusFailureModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = FlowStatusFailureModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = FlowStatusFailureModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - parent_module = d.pop("parent_module", UNSET) - - flow_status_failure_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - parent_module=parent_module, - ) - - flow_status_failure_module.additional_properties = d - return flow_status_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/flow_status_failure_module_approvers_item.py deleted file mode 100644 index 2b9f5eb087..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowStatusFailureModuleApproversItem") - - -@_attrs_define -class FlowStatusFailureModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - flow_status_failure_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - flow_status_failure_module_approvers_item.additional_properties = d - return flow_status_failure_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branch_chosen.py deleted file mode 100644 index bf61ebe947..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.flow_status_failure_module_branch_chosen_type import FlowStatusFailureModuleBranchChosenType -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowStatusFailureModuleBranchChosen") - - -@_attrs_define -class FlowStatusFailureModuleBranchChosen: - """ - Attributes: - type (FlowStatusFailureModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: FlowStatusFailureModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowStatusFailureModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - flow_status_failure_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - flow_status_failure_module_branch_chosen.additional_properties = d - return flow_status_failure_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branch_chosen_type.py deleted file mode 100644 index 6661843c8f..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class FlowStatusFailureModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branchall.py b/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branchall.py deleted file mode 100644 index be0d600d0b..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowStatusFailureModuleBranchall") - - -@_attrs_define -class FlowStatusFailureModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - flow_status_failure_module_branchall = cls( - branch=branch, - len_=len_, - ) - - flow_status_failure_module_branchall.additional_properties = d - return flow_status_failure_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_iterator.py b/python-client/windmill-api/windmill_api/models/flow_status_failure_module_iterator.py deleted file mode 100644 index 5339048cff..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="FlowStatusFailureModuleIterator") - - -@_attrs_define -class FlowStatusFailureModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - flow_status_failure_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - flow_status_failure_module_iterator.additional_properties = d - return flow_status_failure_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_type.py b/python-client/windmill-api/windmill_api/models/flow_status_failure_module_type.py deleted file mode 100644 index 7d0bddd874..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_failure_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class FlowStatusFailureModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_status_module.py b/python-client/windmill-api/windmill_api/models/flow_status_module.py deleted file mode 100644 index 8074c8f056..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_module.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset -from ..models.flow_status_module_type import FlowStatusModuleType - -if TYPE_CHECKING: - from ..models.flow_status_module_branchall import FlowStatusModuleBranchall - from ..models.flow_status_module_branch_chosen import FlowStatusModuleBranchChosen - from ..models.flow_status_module_iterator import FlowStatusModuleIterator - from ..models.flow_status_module_approvers_item import FlowStatusModuleApproversItem - - - - - -T = TypeVar("T", bound="FlowStatusModule") - - -@_attrs_define -class FlowStatusModule: - """ - Attributes: - type (FlowStatusModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, FlowStatusModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, FlowStatusModuleBranchChosen]): - branchall (Union[Unset, FlowStatusModuleBranchall]): - approvers (Union[Unset, List['FlowStatusModuleApproversItem']]): - """ - - type: FlowStatusModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'FlowStatusModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'FlowStatusModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'FlowStatusModuleBranchall'] = UNSET - approvers: Union[Unset, List['FlowStatusModuleApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_status_module_branchall import FlowStatusModuleBranchall - from ..models.flow_status_module_branch_chosen import FlowStatusModuleBranchChosen - from ..models.flow_status_module_iterator import FlowStatusModuleIterator - from ..models.flow_status_module_approvers_item import FlowStatusModuleApproversItem - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_status_module_branchall import FlowStatusModuleBranchall - from ..models.flow_status_module_branch_chosen import FlowStatusModuleBranchChosen - from ..models.flow_status_module_iterator import FlowStatusModuleIterator - from ..models.flow_status_module_approvers_item import FlowStatusModuleApproversItem - d = src_dict.copy() - type = FlowStatusModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, FlowStatusModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = FlowStatusModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, FlowStatusModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = FlowStatusModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, FlowStatusModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = FlowStatusModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = FlowStatusModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - flow_status_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - flow_status_module.additional_properties = d - return flow_status_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/flow_status_module_approvers_item.py deleted file mode 100644 index 96533f1255..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowStatusModuleApproversItem") - - -@_attrs_define -class FlowStatusModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - flow_status_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - flow_status_module_approvers_item.additional_properties = d - return flow_status_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/flow_status_module_branch_chosen.py deleted file mode 100644 index 90a9ea65b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_status_module_branch_chosen_type import FlowStatusModuleBranchChosenType -from ..types import UNSET, Unset -from typing import Union - - - - - - -T = TypeVar("T", bound="FlowStatusModuleBranchChosen") - - -@_attrs_define -class FlowStatusModuleBranchChosen: - """ - Attributes: - type (FlowStatusModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: FlowStatusModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowStatusModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - flow_status_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - flow_status_module_branch_chosen.additional_properties = d - return flow_status_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/flow_status_module_branch_chosen_type.py deleted file mode 100644 index 6f22a839cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class FlowStatusModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_status_module_branchall.py b/python-client/windmill-api/windmill_api/models/flow_status_module_branchall.py deleted file mode 100644 index f4c2b107cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowStatusModuleBranchall") - - -@_attrs_define -class FlowStatusModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - flow_status_module_branchall = cls( - branch=branch, - len_=len_, - ) - - flow_status_module_branchall.additional_properties = d - return flow_status_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_module_iterator.py b/python-client/windmill-api/windmill_api/models/flow_status_module_iterator.py deleted file mode 100644 index ff9f93fc16..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="FlowStatusModuleIterator") - - -@_attrs_define -class FlowStatusModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - flow_status_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - flow_status_module_iterator.additional_properties = d - return flow_status_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_module_type.py b/python-client/windmill-api/windmill_api/models/flow_status_module_type.py deleted file mode 100644 index 31f0825de1..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class FlowStatusModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_status_modules_item.py b/python-client/windmill-api/windmill_api/models/flow_status_modules_item.py deleted file mode 100644 index 168022c217..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_modules_item.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.flow_status_modules_item_type import FlowStatusModulesItemType -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.flow_status_modules_item_branch_chosen import FlowStatusModulesItemBranchChosen - from ..models.flow_status_modules_item_approvers_item import FlowStatusModulesItemApproversItem - from ..models.flow_status_modules_item_branchall import FlowStatusModulesItemBranchall - from ..models.flow_status_modules_item_iterator import FlowStatusModulesItemIterator - - - - - -T = TypeVar("T", bound="FlowStatusModulesItem") - - -@_attrs_define -class FlowStatusModulesItem: - """ - Attributes: - type (FlowStatusModulesItemType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, FlowStatusModulesItemIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, FlowStatusModulesItemBranchChosen]): - branchall (Union[Unset, FlowStatusModulesItemBranchall]): - approvers (Union[Unset, List['FlowStatusModulesItemApproversItem']]): - """ - - type: FlowStatusModulesItemType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'FlowStatusModulesItemIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'FlowStatusModulesItemBranchChosen'] = UNSET - branchall: Union[Unset, 'FlowStatusModulesItemBranchall'] = UNSET - approvers: Union[Unset, List['FlowStatusModulesItemApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.flow_status_modules_item_branch_chosen import FlowStatusModulesItemBranchChosen - from ..models.flow_status_modules_item_approvers_item import FlowStatusModulesItemApproversItem - from ..models.flow_status_modules_item_branchall import FlowStatusModulesItemBranchall - from ..models.flow_status_modules_item_iterator import FlowStatusModulesItemIterator - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.flow_status_modules_item_branch_chosen import FlowStatusModulesItemBranchChosen - from ..models.flow_status_modules_item_approvers_item import FlowStatusModulesItemApproversItem - from ..models.flow_status_modules_item_branchall import FlowStatusModulesItemBranchall - from ..models.flow_status_modules_item_iterator import FlowStatusModulesItemIterator - d = src_dict.copy() - type = FlowStatusModulesItemType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, FlowStatusModulesItemIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = FlowStatusModulesItemIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, FlowStatusModulesItemBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = FlowStatusModulesItemBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, FlowStatusModulesItemBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = FlowStatusModulesItemBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = FlowStatusModulesItemApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - flow_status_modules_item = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - flow_status_modules_item.additional_properties = d - return flow_status_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_approvers_item.py b/python-client/windmill-api/windmill_api/models/flow_status_modules_item_approvers_item.py deleted file mode 100644 index 5e92897578..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowStatusModulesItemApproversItem") - - -@_attrs_define -class FlowStatusModulesItemApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - flow_status_modules_item_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - flow_status_modules_item_approvers_item.additional_properties = d - return flow_status_modules_item_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branch_chosen.py b/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branch_chosen.py deleted file mode 100644 index 130832e4ac..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_status_modules_item_branch_chosen_type import FlowStatusModulesItemBranchChosenType - - - - - - -T = TypeVar("T", bound="FlowStatusModulesItemBranchChosen") - - -@_attrs_define -class FlowStatusModulesItemBranchChosen: - """ - Attributes: - type (FlowStatusModulesItemBranchChosenType): - branch (Union[Unset, int]): - """ - - type: FlowStatusModulesItemBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowStatusModulesItemBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - flow_status_modules_item_branch_chosen = cls( - type=type, - branch=branch, - ) - - flow_status_modules_item_branch_chosen.additional_properties = d - return flow_status_modules_item_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branch_chosen_type.py deleted file mode 100644 index 725cc25250..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class FlowStatusModulesItemBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branchall.py b/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branchall.py deleted file mode 100644 index e7ac317ab9..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FlowStatusModulesItemBranchall") - - -@_attrs_define -class FlowStatusModulesItemBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - flow_status_modules_item_branchall = cls( - branch=branch, - len_=len_, - ) - - flow_status_modules_item_branchall.additional_properties = d - return flow_status_modules_item_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_iterator.py b/python-client/windmill-api/windmill_api/models/flow_status_modules_item_iterator.py deleted file mode 100644 index 7f51544bda..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="FlowStatusModulesItemIterator") - - -@_attrs_define -class FlowStatusModulesItemIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - flow_status_modules_item_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - flow_status_modules_item_iterator.additional_properties = d - return flow_status_modules_item_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_type.py b/python-client/windmill-api/windmill_api/models/flow_status_modules_item_type.py deleted file mode 100644 index fd6d714eba..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_modules_item_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class FlowStatusModulesItemType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_status_retry.py b/python-client/windmill-api/windmill_api/models/flow_status_retry.py deleted file mode 100644 index 3d96f75e27..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_status_retry.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="FlowStatusRetry") - - -@_attrs_define -class FlowStatusRetry: - """ - Attributes: - fail_count (Union[Unset, int]): - failed_jobs (Union[Unset, List[str]]): - """ - - fail_count: Union[Unset, int] = UNSET - failed_jobs: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - fail_count = self.fail_count - failed_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.failed_jobs, Unset): - failed_jobs = self.failed_jobs - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if fail_count is not UNSET: - field_dict["fail_count"] = fail_count - if failed_jobs is not UNSET: - field_dict["failed_jobs"] = failed_jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - fail_count = d.pop("fail_count", UNSET) - - failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET)) - - - flow_status_retry = cls( - fail_count=fail_count, - failed_jobs=failed_jobs, - ) - - flow_status_retry.additional_properties = d - return flow_status_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_0.py deleted file mode 100644 index 2ccf6fa8b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_value_failure_module_sleep_type_0_type import FlowValueFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="FlowValueFailureModuleSleepType0") - - -@_attrs_define -class FlowValueFailureModuleSleepType0: - """ - Attributes: - type (FlowValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_value_failure_module_sleep_type_0.additional_properties = d - return flow_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index 03d2db13d3..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_1.py deleted file mode 100644 index d6f38f02b2..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_value_failure_module_sleep_type_1_type import FlowValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowValueFailureModuleSleepType1") - - -@_attrs_define -class FlowValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (FlowValueFailureModuleSleepType1Type): - """ - - expr: str - type: FlowValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowValueFailureModuleSleepType1Type(d.pop("type")) - - - - - flow_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_value_failure_module_sleep_type_1.additional_properties = d - return flow_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index 0b1611de79..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 9e57f97932..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.flow_value_failure_module_suspend_user_groups_required_type_0_type import FlowValueFailureModuleSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return flow_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 24db0470f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index c40b43f36b..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_value_failure_module_suspend_user_groups_required_type_1_type import FlowValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return flow_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index a62f3590c3..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_0.py deleted file mode 100644 index a72fd425a0..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.flow_value_modules_item_sleep_type_0_type import FlowValueModulesItemSleepType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="FlowValueModulesItemSleepType0") - - -@_attrs_define -class FlowValueModulesItemSleepType0: - """ - Attributes: - type (FlowValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: FlowValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - flow_value_modules_item_sleep_type_0.additional_properties = d - return flow_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index 6da230b3b7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_1.py deleted file mode 100644 index fe1b94f9b7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_value_modules_item_sleep_type_1_type import FlowValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="FlowValueModulesItemSleepType1") - - -@_attrs_define -class FlowValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (FlowValueModulesItemSleepType1Type): - """ - - expr: str - type: FlowValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowValueModulesItemSleepType1Type(d.pop("type")) - - - - - flow_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - flow_value_modules_item_sleep_type_1.additional_properties = d - return flow_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index fb9e188199..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index fe5830b3e7..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.flow_value_modules_item_suspend_user_groups_required_type_0_type import FlowValueModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="FlowValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class FlowValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (FlowValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: FlowValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = FlowValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - flow_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - flow_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return flow_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 5214c4199e..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index b58da6c3b2..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.flow_value_modules_item_suspend_user_groups_required_type_1_type import FlowValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="FlowValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class FlowValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (FlowValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: FlowValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = FlowValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - flow_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - flow_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return flow_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index fa58d28454..0000000000 --- a/python-client/windmill-api/windmill_api/models/flow_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class FlowValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/folder.py b/python-client/windmill-api/windmill_api/models/folder.py deleted file mode 100644 index 7367da773e..0000000000 --- a/python-client/windmill-api/windmill_api/models/folder.py +++ /dev/null @@ -1,100 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from typing import Dict - -if TYPE_CHECKING: - from ..models.folder_extra_perms import FolderExtraPerms - - - - - -T = TypeVar("T", bound="Folder") - - -@_attrs_define -class Folder: - """ - Attributes: - name (str): - owners (List[str]): - extra_perms (FolderExtraPerms): - """ - - name: str - owners: List[str] - extra_perms: 'FolderExtraPerms' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.folder_extra_perms import FolderExtraPerms - name = self.name - owners = self.owners - - - - - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "owners": owners, - "extra_perms": extra_perms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.folder_extra_perms import FolderExtraPerms - d = src_dict.copy() - name = d.pop("name") - - owners = cast(List[str], d.pop("owners")) - - - extra_perms = FolderExtraPerms.from_dict(d.pop("extra_perms")) - - - - - folder = cls( - name=name, - owners=owners, - extra_perms=extra_perms, - ) - - folder.additional_properties = d - return folder - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/folder_extra_perms.py b/python-client/windmill-api/windmill_api/models/folder_extra_perms.py deleted file mode 100644 index 0d1261a5a5..0000000000 --- a/python-client/windmill-api/windmill_api/models/folder_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="FolderExtraPerms") - - -@_attrs_define -class FolderExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - folder_extra_perms = cls( - ) - - - folder_extra_perms.additional_properties = d - return folder_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/force_cancel_queued_job_json_body.py b/python-client/windmill-api/windmill_api/models/force_cancel_queued_job_json_body.py deleted file mode 100644 index 821414dd20..0000000000 --- a/python-client/windmill-api/windmill_api/models/force_cancel_queued_job_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ForceCancelQueuedJobJsonBody") - - -@_attrs_define -class ForceCancelQueuedJobJsonBody: - """ - Attributes: - reason (Union[Unset, str]): - """ - - reason: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - reason = self.reason - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if reason is not UNSET: - field_dict["reason"] = reason - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - reason = d.pop("reason", UNSET) - - force_cancel_queued_job_json_body = cls( - reason=reason, - ) - - force_cancel_queued_job_json_body.additional_properties = d - return force_cancel_queued_job_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow.py b/python-client/windmill-api/windmill_api/models/forloop_flow.py deleted file mode 100644 index ada953c269..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset -from ..models.forloop_flow_type import ForloopFlowType - -if TYPE_CHECKING: - from ..models.forloop_flow_iterator_type_1 import ForloopFlowIteratorType1 - from ..models.forloop_flow_modules_item import ForloopFlowModulesItem - from ..models.forloop_flow_iterator_type_0 import ForloopFlowIteratorType0 - - - - - -T = TypeVar("T", bound="ForloopFlow") - - -@_attrs_define -class ForloopFlow: - """ - Attributes: - modules (List['ForloopFlowModulesItem']): - iterator (Union['ForloopFlowIteratorType0', 'ForloopFlowIteratorType1']): - skip_failures (bool): - type (ForloopFlowType): - parallel (Union[Unset, bool]): - parallelism (Union[Unset, int]): - """ - - modules: List['ForloopFlowModulesItem'] - iterator: Union['ForloopFlowIteratorType0', 'ForloopFlowIteratorType1'] - skip_failures: bool - type: ForloopFlowType - parallel: Union[Unset, bool] = UNSET - parallelism: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.forloop_flow_iterator_type_1 import ForloopFlowIteratorType1 - from ..models.forloop_flow_modules_item import ForloopFlowModulesItem - from ..models.forloop_flow_iterator_type_0 import ForloopFlowIteratorType0 - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - iterator: Dict[str, Any] - - if isinstance(self.iterator, ForloopFlowIteratorType0): - iterator = self.iterator.to_dict() - - else: - iterator = self.iterator.to_dict() - - - - skip_failures = self.skip_failures - type = self.type.value - - parallel = self.parallel - parallelism = self.parallelism - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - "iterator": iterator, - "skip_failures": skip_failures, - "type": type, - }) - if parallel is not UNSET: - field_dict["parallel"] = parallel - if parallelism is not UNSET: - field_dict["parallelism"] = parallelism - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.forloop_flow_iterator_type_1 import ForloopFlowIteratorType1 - from ..models.forloop_flow_modules_item import ForloopFlowModulesItem - from ..models.forloop_flow_iterator_type_0 import ForloopFlowIteratorType0 - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = ForloopFlowModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - def _parse_iterator(data: object) -> Union['ForloopFlowIteratorType0', 'ForloopFlowIteratorType1']: - try: - if not isinstance(data, dict): - raise TypeError() - iterator_type_0 = ForloopFlowIteratorType0.from_dict(data) - - - - return iterator_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - iterator_type_1 = ForloopFlowIteratorType1.from_dict(data) - - - - return iterator_type_1 - - iterator = _parse_iterator(d.pop("iterator")) - - - skip_failures = d.pop("skip_failures") - - type = ForloopFlowType(d.pop("type")) - - - - - parallel = d.pop("parallel", UNSET) - - parallelism = d.pop("parallelism", UNSET) - - forloop_flow = cls( - modules=modules, - iterator=iterator, - skip_failures=skip_failures, - type=type, - parallel=parallel, - parallelism=parallelism, - ) - - forloop_flow.additional_properties = d - return forloop_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_0.py b/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_0.py deleted file mode 100644 index ed9375e5c9..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.forloop_flow_iterator_type_0_type import ForloopFlowIteratorType0Type - - - - - - -T = TypeVar("T", bound="ForloopFlowIteratorType0") - - -@_attrs_define -class ForloopFlowIteratorType0: - """ - Attributes: - type (ForloopFlowIteratorType0Type): - value (Union[Unset, Any]): - """ - - type: ForloopFlowIteratorType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ForloopFlowIteratorType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - forloop_flow_iterator_type_0 = cls( - type=type, - value=value, - ) - - forloop_flow_iterator_type_0.additional_properties = d - return forloop_flow_iterator_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_0_type.py b/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_0_type.py deleted file mode 100644 index a9675fa1ce..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ForloopFlowIteratorType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_1.py b/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_1.py deleted file mode 100644 index 3f607cf808..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.forloop_flow_iterator_type_1_type import ForloopFlowIteratorType1Type - - - - - - -T = TypeVar("T", bound="ForloopFlowIteratorType1") - - -@_attrs_define -class ForloopFlowIteratorType1: - """ - Attributes: - expr (str): - type (ForloopFlowIteratorType1Type): - """ - - expr: str - type: ForloopFlowIteratorType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ForloopFlowIteratorType1Type(d.pop("type")) - - - - - forloop_flow_iterator_type_1 = cls( - expr=expr, - type=type, - ) - - forloop_flow_iterator_type_1.additional_properties = d - return forloop_flow_iterator_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_1_type.py b/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_1_type.py deleted file mode 100644 index e84ff853c9..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_iterator_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ForloopFlowIteratorType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item.py deleted file mode 100644 index ffd13e00b6..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.forloop_flow_modules_item_suspend import ForloopFlowModulesItemSuspend - from ..models.forloop_flow_modules_item_retry import ForloopFlowModulesItemRetry - from ..models.forloop_flow_modules_item_sleep_type_1 import ForloopFlowModulesItemSleepType1 - from ..models.forloop_flow_modules_item_mock import ForloopFlowModulesItemMock - from ..models.forloop_flow_modules_item_stop_after_if import ForloopFlowModulesItemStopAfterIf - from ..models.forloop_flow_modules_item_sleep_type_0 import ForloopFlowModulesItemSleepType0 - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItem") - - -@_attrs_define -class ForloopFlowModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, ForloopFlowModulesItemStopAfterIf]): - sleep (Union['ForloopFlowModulesItemSleepType0', 'ForloopFlowModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, ForloopFlowModulesItemMock]): - suspend (Union[Unset, ForloopFlowModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, ForloopFlowModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'ForloopFlowModulesItemStopAfterIf'] = UNSET - sleep: Union['ForloopFlowModulesItemSleepType0', 'ForloopFlowModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'ForloopFlowModulesItemMock'] = UNSET - suspend: Union[Unset, 'ForloopFlowModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'ForloopFlowModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.forloop_flow_modules_item_suspend import ForloopFlowModulesItemSuspend - from ..models.forloop_flow_modules_item_retry import ForloopFlowModulesItemRetry - from ..models.forloop_flow_modules_item_sleep_type_1 import ForloopFlowModulesItemSleepType1 - from ..models.forloop_flow_modules_item_mock import ForloopFlowModulesItemMock - from ..models.forloop_flow_modules_item_stop_after_if import ForloopFlowModulesItemStopAfterIf - from ..models.forloop_flow_modules_item_sleep_type_0 import ForloopFlowModulesItemSleepType0 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, ForloopFlowModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.forloop_flow_modules_item_suspend import ForloopFlowModulesItemSuspend - from ..models.forloop_flow_modules_item_retry import ForloopFlowModulesItemRetry - from ..models.forloop_flow_modules_item_sleep_type_1 import ForloopFlowModulesItemSleepType1 - from ..models.forloop_flow_modules_item_mock import ForloopFlowModulesItemMock - from ..models.forloop_flow_modules_item_stop_after_if import ForloopFlowModulesItemStopAfterIf - from ..models.forloop_flow_modules_item_sleep_type_0 import ForloopFlowModulesItemSleepType0 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, ForloopFlowModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = ForloopFlowModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['ForloopFlowModulesItemSleepType0', 'ForloopFlowModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, ForloopFlowModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = ForloopFlowModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, ForloopFlowModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = ForloopFlowModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, ForloopFlowModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = ForloopFlowModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, ForloopFlowModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = ForloopFlowModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ForloopFlowModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ForloopFlowModulesItemRetry.from_dict(_retry) - - - - - forloop_flow_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - forloop_flow_modules_item.additional_properties = d - return forloop_flow_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_mock.py deleted file mode 100644 index f54602307a..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemMock") - - -@_attrs_define -class ForloopFlowModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - forloop_flow_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - forloop_flow_modules_item_mock.additional_properties = d - return forloop_flow_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry.py deleted file mode 100644 index ede5663eb7..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.forloop_flow_modules_item_retry_constant import ForloopFlowModulesItemRetryConstant - from ..models.forloop_flow_modules_item_retry_exponential import ForloopFlowModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemRetry") - - -@_attrs_define -class ForloopFlowModulesItemRetry: - """ - Attributes: - constant (Union[Unset, ForloopFlowModulesItemRetryConstant]): - exponential (Union[Unset, ForloopFlowModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'ForloopFlowModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'ForloopFlowModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.forloop_flow_modules_item_retry_constant import ForloopFlowModulesItemRetryConstant - from ..models.forloop_flow_modules_item_retry_exponential import ForloopFlowModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.forloop_flow_modules_item_retry_constant import ForloopFlowModulesItemRetryConstant - from ..models.forloop_flow_modules_item_retry_exponential import ForloopFlowModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ForloopFlowModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ForloopFlowModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ForloopFlowModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ForloopFlowModulesItemRetryExponential.from_dict(_exponential) - - - - - forloop_flow_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - forloop_flow_modules_item_retry.additional_properties = d - return forloop_flow_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry_constant.py deleted file mode 100644 index 194fbecaaf..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemRetryConstant") - - -@_attrs_define -class ForloopFlowModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - forloop_flow_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - forloop_flow_modules_item_retry_constant.additional_properties = d - return forloop_flow_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry_exponential.py deleted file mode 100644 index fee888fbb0..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemRetryExponential") - - -@_attrs_define -class ForloopFlowModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - forloop_flow_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - forloop_flow_modules_item_retry_exponential.additional_properties = d - return forloop_flow_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_0.py deleted file mode 100644 index 8551f4bec1..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.forloop_flow_modules_item_sleep_type_0_type import ForloopFlowModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemSleepType0") - - -@_attrs_define -class ForloopFlowModulesItemSleepType0: - """ - Attributes: - type (ForloopFlowModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: ForloopFlowModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ForloopFlowModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - forloop_flow_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - forloop_flow_modules_item_sleep_type_0.additional_properties = d - return forloop_flow_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_0_type.py deleted file mode 100644 index 2f80d1be3c..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ForloopFlowModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_1.py deleted file mode 100644 index e36d38f12a..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.forloop_flow_modules_item_sleep_type_1_type import ForloopFlowModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemSleepType1") - - -@_attrs_define -class ForloopFlowModulesItemSleepType1: - """ - Attributes: - expr (str): - type (ForloopFlowModulesItemSleepType1Type): - """ - - expr: str - type: ForloopFlowModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ForloopFlowModulesItemSleepType1Type(d.pop("type")) - - - - - forloop_flow_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - forloop_flow_modules_item_sleep_type_1.additional_properties = d - return forloop_flow_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_1_type.py deleted file mode 100644 index 79c6e33b68..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ForloopFlowModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_stop_after_if.py deleted file mode 100644 index 663ed87993..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemStopAfterIf") - - -@_attrs_define -class ForloopFlowModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - forloop_flow_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - forloop_flow_modules_item_stop_after_if.additional_properties = d - return forloop_flow_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend.py deleted file mode 100644 index ffaedcd8c8..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_0 import ForloopFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_1 import ForloopFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.forloop_flow_modules_item_suspend_resume_form import ForloopFlowModulesItemSuspendResumeForm - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemSuspend") - - -@_attrs_define -class ForloopFlowModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, ForloopFlowModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['ForloopFlowModulesItemSuspendUserGroupsRequiredType0', - 'ForloopFlowModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'ForloopFlowModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['ForloopFlowModulesItemSuspendUserGroupsRequiredType0', 'ForloopFlowModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_0 import ForloopFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_1 import ForloopFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.forloop_flow_modules_item_suspend_resume_form import ForloopFlowModulesItemSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, ForloopFlowModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_0 import ForloopFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_1 import ForloopFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.forloop_flow_modules_item_suspend_resume_form import ForloopFlowModulesItemSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, ForloopFlowModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = ForloopFlowModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['ForloopFlowModulesItemSuspendUserGroupsRequiredType0', 'ForloopFlowModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, ForloopFlowModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = ForloopFlowModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, ForloopFlowModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = ForloopFlowModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - forloop_flow_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - forloop_flow_modules_item_suspend.additional_properties = d - return forloop_flow_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_resume_form.py deleted file mode 100644 index 2e06fdbf6f..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.forloop_flow_modules_item_suspend_resume_form_schema import ForloopFlowModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemSuspendResumeForm") - - -@_attrs_define -class ForloopFlowModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, ForloopFlowModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'ForloopFlowModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.forloop_flow_modules_item_suspend_resume_form_schema import ForloopFlowModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.forloop_flow_modules_item_suspend_resume_form_schema import ForloopFlowModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ForloopFlowModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ForloopFlowModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - forloop_flow_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - forloop_flow_modules_item_suspend_resume_form.additional_properties = d - return forloop_flow_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index e7baaf508e..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class ForloopFlowModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - forloop_flow_modules_item_suspend_resume_form_schema = cls( - ) - - forloop_flow_modules_item_suspend_resume_form_schema.additional_properties = d - return forloop_flow_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 836170d942..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_0_type import ForloopFlowModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class ForloopFlowModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (ForloopFlowModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: ForloopFlowModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ForloopFlowModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - forloop_flow_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - forloop_flow_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return forloop_flow_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index ecb07daf02..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ForloopFlowModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 2ed9e6e78b..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.forloop_flow_modules_item_suspend_user_groups_required_type_1_type import ForloopFlowModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="ForloopFlowModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class ForloopFlowModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (ForloopFlowModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: ForloopFlowModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ForloopFlowModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - forloop_flow_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - forloop_flow_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return forloop_flow_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 8b5ab76e37..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ForloopFlowModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/forloop_flow_type.py b/python-client/windmill-api/windmill_api/models/forloop_flow_type.py deleted file mode 100644 index a9a1a6bdf7..0000000000 --- a/python-client/windmill-api/windmill_api/models/forloop_flow_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ForloopFlowType(str, Enum): - FORLOOPFLOW = "forloopflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200.py deleted file mode 100644 index 92557a6277..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200.py +++ /dev/null @@ -1,174 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from ..models.get_app_by_path_response_200_execution_mode import GetAppByPathResponse200ExecutionMode -from dateutil.parser import isoparse - -if TYPE_CHECKING: - from ..models.get_app_by_path_response_200_policy import GetAppByPathResponse200Policy - from ..models.get_app_by_path_response_200_extra_perms import GetAppByPathResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetAppByPathResponse200") - - -@_attrs_define -class GetAppByPathResponse200: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - versions (List[int]): - created_by (str): - created_at (datetime.datetime): - value (Any): - policy (GetAppByPathResponse200Policy): - execution_mode (GetAppByPathResponse200ExecutionMode): - extra_perms (GetAppByPathResponse200ExtraPerms): - """ - - id: int - workspace_id: str - path: str - summary: str - versions: List[int] - created_by: str - created_at: datetime.datetime - value: Any - policy: 'GetAppByPathResponse200Policy' - execution_mode: GetAppByPathResponse200ExecutionMode - extra_perms: 'GetAppByPathResponse200ExtraPerms' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_path_response_200_policy import GetAppByPathResponse200Policy - from ..models.get_app_by_path_response_200_extra_perms import GetAppByPathResponse200ExtraPerms - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - versions = self.versions - - - - - created_by = self.created_by - created_at = self.created_at.isoformat() - - value = self.value - policy = self.policy.to_dict() - - execution_mode = self.execution_mode.value - - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "versions": versions, - "created_by": created_by, - "created_at": created_at, - "value": value, - "policy": policy, - "execution_mode": execution_mode, - "extra_perms": extra_perms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_path_response_200_policy import GetAppByPathResponse200Policy - from ..models.get_app_by_path_response_200_extra_perms import GetAppByPathResponse200ExtraPerms - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - versions = cast(List[int], d.pop("versions")) - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - value = d.pop("value") - - policy = GetAppByPathResponse200Policy.from_dict(d.pop("policy")) - - - - - execution_mode = GetAppByPathResponse200ExecutionMode(d.pop("execution_mode")) - - - - - extra_perms = GetAppByPathResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - get_app_by_path_response_200 = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - versions=versions, - created_by=created_by, - created_at=created_at, - value=value, - policy=policy, - execution_mode=execution_mode, - extra_perms=extra_perms, - ) - - get_app_by_path_response_200.additional_properties = d - return get_app_by_path_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_execution_mode.py deleted file mode 100644 index 8cf0512dfa..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetAppByPathResponse200ExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_extra_perms.py deleted file mode 100644 index 101aff3578..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetAppByPathResponse200ExtraPerms") - - -@_attrs_define -class GetAppByPathResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_app_by_path_response_200_extra_perms = cls( - ) - - - get_app_by_path_response_200_extra_perms.additional_properties = d - return get_app_by_path_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy.py deleted file mode 100644 index a3d39633be..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.get_app_by_path_response_200_policy_execution_mode import GetAppByPathResponse200PolicyExecutionMode -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_app_by_path_response_200_policy_triggerables import GetAppByPathResponse200PolicyTriggerables - - - - - -T = TypeVar("T", bound="GetAppByPathResponse200Policy") - - -@_attrs_define -class GetAppByPathResponse200Policy: - """ - Attributes: - triggerables (Union[Unset, GetAppByPathResponse200PolicyTriggerables]): - execution_mode (Union[Unset, GetAppByPathResponse200PolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'GetAppByPathResponse200PolicyTriggerables'] = UNSET - execution_mode: Union[Unset, GetAppByPathResponse200PolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_path_response_200_policy_triggerables import GetAppByPathResponse200PolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_path_response_200_policy_triggerables import GetAppByPathResponse200PolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, GetAppByPathResponse200PolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = GetAppByPathResponse200PolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, GetAppByPathResponse200PolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = GetAppByPathResponse200PolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - get_app_by_path_response_200_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - get_app_by_path_response_200_policy.additional_properties = d - return get_app_by_path_response_200_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_execution_mode.py deleted file mode 100644 index 49881d4209..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetAppByPathResponse200PolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_triggerables.py deleted file mode 100644 index 309989263a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_app_by_path_response_200_policy_triggerables_additional_property import GetAppByPathResponse200PolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="GetAppByPathResponse200PolicyTriggerables") - - -@_attrs_define -class GetAppByPathResponse200PolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'GetAppByPathResponse200PolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_path_response_200_policy_triggerables_additional_property import GetAppByPathResponse200PolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_path_response_200_policy_triggerables_additional_property import GetAppByPathResponse200PolicyTriggerablesAdditionalProperty - d = src_dict.copy() - get_app_by_path_response_200_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = GetAppByPathResponse200PolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - get_app_by_path_response_200_policy_triggerables.additional_properties = additional_properties - return get_app_by_path_response_200_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'GetAppByPathResponse200PolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'GetAppByPathResponse200PolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_triggerables_additional_property.py deleted file mode 100644 index 5908ea2b02..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_response_200_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetAppByPathResponse200PolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class GetAppByPathResponse200PolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_app_by_path_response_200_policy_triggerables_additional_property = cls( - ) - - get_app_by_path_response_200_policy_triggerables_additional_property.additional_properties = d - return get_app_by_path_response_200_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200.py deleted file mode 100644 index b6c3553a5a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200.py +++ /dev/null @@ -1,192 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.get_app_by_path_with_draft_response_200_execution_mode import GetAppByPathWithDraftResponse200ExecutionMode -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_app_by_path_with_draft_response_200_policy import GetAppByPathWithDraftResponse200Policy - from ..models.get_app_by_path_with_draft_response_200_extra_perms import GetAppByPathWithDraftResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetAppByPathWithDraftResponse200") - - -@_attrs_define -class GetAppByPathWithDraftResponse200: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - versions (List[int]): - created_by (str): - created_at (datetime.datetime): - value (Any): - policy (GetAppByPathWithDraftResponse200Policy): - execution_mode (GetAppByPathWithDraftResponse200ExecutionMode): - extra_perms (GetAppByPathWithDraftResponse200ExtraPerms): - draft_only (Union[Unset, bool]): - draft (Union[Unset, Any]): - """ - - id: int - workspace_id: str - path: str - summary: str - versions: List[int] - created_by: str - created_at: datetime.datetime - value: Any - policy: 'GetAppByPathWithDraftResponse200Policy' - execution_mode: GetAppByPathWithDraftResponse200ExecutionMode - extra_perms: 'GetAppByPathWithDraftResponse200ExtraPerms' - draft_only: Union[Unset, bool] = UNSET - draft: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_path_with_draft_response_200_policy import GetAppByPathWithDraftResponse200Policy - from ..models.get_app_by_path_with_draft_response_200_extra_perms import GetAppByPathWithDraftResponse200ExtraPerms - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - versions = self.versions - - - - - created_by = self.created_by - created_at = self.created_at.isoformat() - - value = self.value - policy = self.policy.to_dict() - - execution_mode = self.execution_mode.value - - extra_perms = self.extra_perms.to_dict() - - draft_only = self.draft_only - draft = self.draft - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "versions": versions, - "created_by": created_by, - "created_at": created_at, - "value": value, - "policy": policy, - "execution_mode": execution_mode, - "extra_perms": extra_perms, - }) - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if draft is not UNSET: - field_dict["draft"] = draft - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_path_with_draft_response_200_policy import GetAppByPathWithDraftResponse200Policy - from ..models.get_app_by_path_with_draft_response_200_extra_perms import GetAppByPathWithDraftResponse200ExtraPerms - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - versions = cast(List[int], d.pop("versions")) - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - value = d.pop("value") - - policy = GetAppByPathWithDraftResponse200Policy.from_dict(d.pop("policy")) - - - - - execution_mode = GetAppByPathWithDraftResponse200ExecutionMode(d.pop("execution_mode")) - - - - - extra_perms = GetAppByPathWithDraftResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - draft_only = d.pop("draft_only", UNSET) - - draft = d.pop("draft", UNSET) - - get_app_by_path_with_draft_response_200 = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - versions=versions, - created_by=created_by, - created_at=created_at, - value=value, - policy=policy, - execution_mode=execution_mode, - extra_perms=extra_perms, - draft_only=draft_only, - draft=draft, - ) - - get_app_by_path_with_draft_response_200.additional_properties = d - return get_app_by_path_with_draft_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_execution_mode.py deleted file mode 100644 index d6a797bf22..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetAppByPathWithDraftResponse200ExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_extra_perms.py deleted file mode 100644 index 5d04ae380f..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetAppByPathWithDraftResponse200ExtraPerms") - - -@_attrs_define -class GetAppByPathWithDraftResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_app_by_path_with_draft_response_200_extra_perms = cls( - ) - - - get_app_by_path_with_draft_response_200_extra_perms.additional_properties = d - return get_app_by_path_with_draft_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy.py deleted file mode 100644 index 7517e0fc8c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.get_app_by_path_with_draft_response_200_policy_execution_mode import GetAppByPathWithDraftResponse200PolicyExecutionMode -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_app_by_path_with_draft_response_200_policy_triggerables import GetAppByPathWithDraftResponse200PolicyTriggerables - - - - - -T = TypeVar("T", bound="GetAppByPathWithDraftResponse200Policy") - - -@_attrs_define -class GetAppByPathWithDraftResponse200Policy: - """ - Attributes: - triggerables (Union[Unset, GetAppByPathWithDraftResponse200PolicyTriggerables]): - execution_mode (Union[Unset, GetAppByPathWithDraftResponse200PolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'GetAppByPathWithDraftResponse200PolicyTriggerables'] = UNSET - execution_mode: Union[Unset, GetAppByPathWithDraftResponse200PolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_path_with_draft_response_200_policy_triggerables import GetAppByPathWithDraftResponse200PolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_path_with_draft_response_200_policy_triggerables import GetAppByPathWithDraftResponse200PolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, GetAppByPathWithDraftResponse200PolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = GetAppByPathWithDraftResponse200PolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, GetAppByPathWithDraftResponse200PolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = GetAppByPathWithDraftResponse200PolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - get_app_by_path_with_draft_response_200_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - get_app_by_path_with_draft_response_200_policy.additional_properties = d - return get_app_by_path_with_draft_response_200_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_execution_mode.py deleted file mode 100644 index 74dfdff7a4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetAppByPathWithDraftResponse200PolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_triggerables.py deleted file mode 100644 index 07e854ac04..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_app_by_path_with_draft_response_200_policy_triggerables_additional_property import GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="GetAppByPathWithDraftResponse200PolicyTriggerables") - - -@_attrs_define -class GetAppByPathWithDraftResponse200PolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_path_with_draft_response_200_policy_triggerables_additional_property import GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_path_with_draft_response_200_policy_triggerables_additional_property import GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty - d = src_dict.copy() - get_app_by_path_with_draft_response_200_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - get_app_by_path_with_draft_response_200_policy_triggerables.additional_properties = additional_properties - return get_app_by_path_with_draft_response_200_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_triggerables_additional_property.py deleted file mode 100644 index 3b25741e90..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_path_with_draft_response_200_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class GetAppByPathWithDraftResponse200PolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_app_by_path_with_draft_response_200_policy_triggerables_additional_property = cls( - ) - - get_app_by_path_with_draft_response_200_policy_triggerables_additional_property.additional_properties = d - return get_app_by_path_with_draft_response_200_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200.py b/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200.py deleted file mode 100644 index ba2a3c1cfd..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200.py +++ /dev/null @@ -1,174 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..models.get_app_by_version_response_200_execution_mode import GetAppByVersionResponse200ExecutionMode - -if TYPE_CHECKING: - from ..models.get_app_by_version_response_200_policy import GetAppByVersionResponse200Policy - from ..models.get_app_by_version_response_200_extra_perms import GetAppByVersionResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetAppByVersionResponse200") - - -@_attrs_define -class GetAppByVersionResponse200: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - versions (List[int]): - created_by (str): - created_at (datetime.datetime): - value (Any): - policy (GetAppByVersionResponse200Policy): - execution_mode (GetAppByVersionResponse200ExecutionMode): - extra_perms (GetAppByVersionResponse200ExtraPerms): - """ - - id: int - workspace_id: str - path: str - summary: str - versions: List[int] - created_by: str - created_at: datetime.datetime - value: Any - policy: 'GetAppByVersionResponse200Policy' - execution_mode: GetAppByVersionResponse200ExecutionMode - extra_perms: 'GetAppByVersionResponse200ExtraPerms' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_version_response_200_policy import GetAppByVersionResponse200Policy - from ..models.get_app_by_version_response_200_extra_perms import GetAppByVersionResponse200ExtraPerms - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - versions = self.versions - - - - - created_by = self.created_by - created_at = self.created_at.isoformat() - - value = self.value - policy = self.policy.to_dict() - - execution_mode = self.execution_mode.value - - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "versions": versions, - "created_by": created_by, - "created_at": created_at, - "value": value, - "policy": policy, - "execution_mode": execution_mode, - "extra_perms": extra_perms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_version_response_200_policy import GetAppByVersionResponse200Policy - from ..models.get_app_by_version_response_200_extra_perms import GetAppByVersionResponse200ExtraPerms - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - versions = cast(List[int], d.pop("versions")) - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - value = d.pop("value") - - policy = GetAppByVersionResponse200Policy.from_dict(d.pop("policy")) - - - - - execution_mode = GetAppByVersionResponse200ExecutionMode(d.pop("execution_mode")) - - - - - extra_perms = GetAppByVersionResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - get_app_by_version_response_200 = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - versions=versions, - created_by=created_by, - created_at=created_at, - value=value, - policy=policy, - execution_mode=execution_mode, - extra_perms=extra_perms, - ) - - get_app_by_version_response_200.additional_properties = d - return get_app_by_version_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_execution_mode.py deleted file mode 100644 index 1269ec8b21..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetAppByVersionResponse200ExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_extra_perms.py deleted file mode 100644 index 931fbf51f1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetAppByVersionResponse200ExtraPerms") - - -@_attrs_define -class GetAppByVersionResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_app_by_version_response_200_extra_perms = cls( - ) - - - get_app_by_version_response_200_extra_perms.additional_properties = d - return get_app_by_version_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy.py b/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy.py deleted file mode 100644 index e2b5ff0858..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from ..models.get_app_by_version_response_200_policy_execution_mode import GetAppByVersionResponse200PolicyExecutionMode -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_app_by_version_response_200_policy_triggerables import GetAppByVersionResponse200PolicyTriggerables - - - - - -T = TypeVar("T", bound="GetAppByVersionResponse200Policy") - - -@_attrs_define -class GetAppByVersionResponse200Policy: - """ - Attributes: - triggerables (Union[Unset, GetAppByVersionResponse200PolicyTriggerables]): - execution_mode (Union[Unset, GetAppByVersionResponse200PolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'GetAppByVersionResponse200PolicyTriggerables'] = UNSET - execution_mode: Union[Unset, GetAppByVersionResponse200PolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_version_response_200_policy_triggerables import GetAppByVersionResponse200PolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_version_response_200_policy_triggerables import GetAppByVersionResponse200PolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, GetAppByVersionResponse200PolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = GetAppByVersionResponse200PolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, GetAppByVersionResponse200PolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = GetAppByVersionResponse200PolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - get_app_by_version_response_200_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - get_app_by_version_response_200_policy.additional_properties = d - return get_app_by_version_response_200_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_execution_mode.py deleted file mode 100644 index f4ae825a7d..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetAppByVersionResponse200PolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_triggerables.py deleted file mode 100644 index 1d04549a62..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_app_by_version_response_200_policy_triggerables_additional_property import GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="GetAppByVersionResponse200PolicyTriggerables") - - -@_attrs_define -class GetAppByVersionResponse200PolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_app_by_version_response_200_policy_triggerables_additional_property import GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_app_by_version_response_200_policy_triggerables_additional_property import GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty - d = src_dict.copy() - get_app_by_version_response_200_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - get_app_by_version_response_200_policy_triggerables.additional_properties = additional_properties - return get_app_by_version_response_200_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_triggerables_additional_property.py deleted file mode 100644 index 8f6343c0b7..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_by_version_response_200_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class GetAppByVersionResponse200PolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_app_by_version_response_200_policy_triggerables_additional_property = cls( - ) - - get_app_by_version_response_200_policy_triggerables_additional_property.additional_properties = d - return get_app_by_version_response_200_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_app_history_by_path_response_200_item.py b/python-client/windmill-api/windmill_api/models/get_app_history_by_path_response_200_item.py deleted file mode 100644 index b3e123917d..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_app_history_by_path_response_200_item.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetAppHistoryByPathResponse200Item") - - -@_attrs_define -class GetAppHistoryByPathResponse200Item: - """ - Attributes: - version (int): - deployment_msg (Union[Unset, str]): - """ - - version: int - deployment_msg: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - version = self.version - deployment_msg = self.deployment_msg - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "version": version, - }) - if deployment_msg is not UNSET: - field_dict["deployment_msg"] = deployment_msg - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - version = d.pop("version") - - deployment_msg = d.pop("deployment_msg", UNSET) - - get_app_history_by_path_response_200_item = cls( - version=version, - deployment_msg=deployment_msg, - ) - - get_app_history_by_path_response_200_item.additional_properties = d - return get_app_history_by_path_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200.py b/python-client/windmill-api/windmill_api/models/get_audit_log_response_200.py deleted file mode 100644 index 1f3025dcbc..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200.py +++ /dev/null @@ -1,149 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from ..models.get_audit_log_response_200_operation import GetAuditLogResponse200Operation -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset -from ..models.get_audit_log_response_200_action_kind import GetAuditLogResponse200ActionKind - -if TYPE_CHECKING: - from ..models.get_audit_log_response_200_parameters import GetAuditLogResponse200Parameters - - - - - -T = TypeVar("T", bound="GetAuditLogResponse200") - - -@_attrs_define -class GetAuditLogResponse200: - """ - Attributes: - id (int): - timestamp (datetime.datetime): - username (str): - operation (GetAuditLogResponse200Operation): - action_kind (GetAuditLogResponse200ActionKind): - resource (Union[Unset, str]): - parameters (Union[Unset, GetAuditLogResponse200Parameters]): - """ - - id: int - timestamp: datetime.datetime - username: str - operation: GetAuditLogResponse200Operation - action_kind: GetAuditLogResponse200ActionKind - resource: Union[Unset, str] = UNSET - parameters: Union[Unset, 'GetAuditLogResponse200Parameters'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_audit_log_response_200_parameters import GetAuditLogResponse200Parameters - id = self.id - timestamp = self.timestamp.isoformat() - - username = self.username - operation = self.operation.value - - action_kind = self.action_kind.value - - resource = self.resource - parameters: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.parameters, Unset): - parameters = self.parameters.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "timestamp": timestamp, - "username": username, - "operation": operation, - "action_kind": action_kind, - }) - if resource is not UNSET: - field_dict["resource"] = resource - if parameters is not UNSET: - field_dict["parameters"] = parameters - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_audit_log_response_200_parameters import GetAuditLogResponse200Parameters - d = src_dict.copy() - id = d.pop("id") - - timestamp = isoparse(d.pop("timestamp")) - - - - - username = d.pop("username") - - operation = GetAuditLogResponse200Operation(d.pop("operation")) - - - - - action_kind = GetAuditLogResponse200ActionKind(d.pop("action_kind")) - - - - - resource = d.pop("resource", UNSET) - - _parameters = d.pop("parameters", UNSET) - parameters: Union[Unset, GetAuditLogResponse200Parameters] - if isinstance(_parameters, Unset): - parameters = UNSET - else: - parameters = GetAuditLogResponse200Parameters.from_dict(_parameters) - - - - - get_audit_log_response_200 = cls( - id=id, - timestamp=timestamp, - username=username, - operation=operation, - action_kind=action_kind, - resource=resource, - parameters=parameters, - ) - - get_audit_log_response_200.additional_properties = d - return get_audit_log_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_action_kind.py b/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_action_kind.py deleted file mode 100644 index a5e9ee9ce2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_action_kind.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class GetAuditLogResponse200ActionKind(str, Enum): - CREATED = "Created" - DELETE = "Delete" - EXECUTE = "Execute" - UPDATED = "Updated" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_operation.py b/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_operation.py deleted file mode 100644 index 97b9e5bf46..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_operation.py +++ /dev/null @@ -1,89 +0,0 @@ -from enum import Enum - -class GetAuditLogResponse200Operation(str, Enum): - ACCOUNT_DELETE = "account.delete" - APPS_CREATE = "apps.create" - APPS_DELETE = "apps.delete" - APPS_UPDATE = "apps.update" - FLOWS_ARCHIVE = "flows.archive" - FLOWS_CREATE = "flows.create" - FLOWS_DELETE = "flows.delete" - FLOWS_UPDATE = "flows.update" - FOLDER_ADD_OWNER = "folder.add_owner" - FOLDER_CREATE = "folder.create" - FOLDER_DELETE = "folder.delete" - FOLDER_REMOVE_OWNER = "folder.remove_owner" - FOLDER_UPDATE = "folder.update" - GROUP_ADDUSER = "group.adduser" - GROUP_CREATE = "group.create" - GROUP_DELETE = "group.delete" - GROUP_EDIT = "group.edit" - GROUP_REMOVEUSER = "group.removeuser" - IGROUP_ADDUSER = "igroup.adduser" - IGROUP_CREATE = "igroup.create" - IGROUP_DELETE = "igroup.delete" - IGROUP_REMOVEUSER = "igroup.removeuser" - JOBS = "jobs" - JOBS_CANCEL = "jobs.cancel" - JOBS_DELETE = "jobs.delete" - JOBS_DISAPPROVAL = "jobs.disapproval" - JOBS_FLOW_DEPENDENCIES = "jobs.flow_dependencies" - JOBS_FORCE_CANCEL = "jobs.force_cancel" - JOBS_RUN = "jobs.run" - JOBS_RUN_DEPENDENCIES = "jobs.run.dependencies" - JOBS_RUN_FLOW = "jobs.run.flow" - JOBS_RUN_FLOW_PREVIEW = "jobs.run.flow_preview" - JOBS_RUN_IDENTITY = "jobs.run.identity" - JOBS_RUN_NOOP = "jobs.run.noop" - JOBS_RUN_PREVIEW = "jobs.run.preview" - JOBS_RUN_SCRIPT = "jobs.run.script" - JOBS_RUN_SCRIPT_HUB = "jobs.run.script_hub" - OAUTH_LOGIN = "oauth.login" - OAUTH_SIGNUP = "oauth.signup" - OPENAI_REQUEST = "openai.request" - RESOURCES_CREATE = "resources.create" - RESOURCES_DELETE = "resources.delete" - RESOURCES_UPDATE = "resources.update" - RESOURCE_TYPES_CREATE = "resource_types.create" - RESOURCE_TYPES_DELETE = "resource_types.delete" - RESOURCE_TYPES_UPDATE = "resource_types.update" - SCHEDULE_CREATE = "schedule.create" - SCHEDULE_DELETE = "schedule.delete" - SCHEDULE_EDIT = "schedule.edit" - SCHEDULE_SETENABLED = "schedule.setenabled" - SCRIPTS_ARCHIVE = "scripts.archive" - SCRIPTS_CREATE = "scripts.create" - SCRIPTS_DELETE = "scripts.delete" - SCRIPTS_UPDATE = "scripts.update" - USERS_ACCEPT_INVITE = "users.accept_invite" - USERS_ADD_GLOBAL = "users.add_global" - USERS_ADD_TO_WORKSPACE = "users.add_to_workspace" - USERS_CREATE = "users.create" - USERS_DECLINE_INVITE = "users.decline_invite" - USERS_DELETE = "users.delete" - USERS_IMPERSONATE = "users.impersonate" - USERS_LEAVE_WORKSPACE = "users.leave_workspace" - USERS_LOGIN = "users.login" - USERS_LOGOUT = "users.logout" - USERS_SETPASSWORD = "users.setpassword" - USERS_TOKEN_CREATE = "users.token.create" - USERS_TOKEN_DELETE = "users.token.delete" - USERS_UPDATE = "users.update" - VARIABLES_CREATE = "variables.create" - VARIABLES_DECRYPT_SECRET = "variables.decrypt_secret" - VARIABLES_DELETE = "variables.delete" - VARIABLES_UPDATE = "variables.update" - WORKSPACES_ARCHIVE = "workspaces.archive" - WORKSPACES_CREATE = "workspaces.create" - WORKSPACES_DELETE = "workspaces.delete" - WORKSPACES_EDIT_AUTO_INVITE_DOMAIN = "workspaces.edit_auto_invite_domain" - WORKSPACES_EDIT_COMMAND_SCRIPT = "workspaces.edit_command_script" - WORKSPACES_EDIT_COPILOT_CONFIG = "workspaces.edit_copilot_config" - WORKSPACES_EDIT_DEPLOY_TO = "workspaces.edit_deploy_to" - WORKSPACES_EDIT_ERROR_HANDLER = "workspaces.edit_error_handler" - WORKSPACES_EDIT_WEBHOOK = "workspaces.edit_webhook" - WORKSPACES_UNARCHIVE = "workspaces.unarchive" - WORKSPACES_UPDATE = "workspaces.update" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_parameters.py b/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_parameters.py deleted file mode 100644 index f5112f895a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_audit_log_response_200_parameters.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetAuditLogResponse200Parameters") - - -@_attrs_define -class GetAuditLogResponse200Parameters: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_audit_log_response_200_parameters = cls( - ) - - get_audit_log_response_200_parameters.additional_properties = d - return get_audit_log_response_200_parameters - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_count_response_200.py b/python-client/windmill-api/windmill_api/models/get_completed_count_response_200.py deleted file mode 100644 index 6ce70eaeb6..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_count_response_200.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedCountResponse200") - - -@_attrs_define -class GetCompletedCountResponse200: - """ - Attributes: - database_length (int): - """ - - database_length: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - database_length = self.database_length - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "database_length": database_length, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - database_length = d.pop("database_length") - - get_completed_count_response_200 = cls( - database_length=database_length, - ) - - get_completed_count_response_200.additional_properties = d - return get_completed_count_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200.py deleted file mode 100644 index 4b49c09258..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200.py +++ /dev/null @@ -1,372 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from ..models.get_completed_job_response_200_job_kind import GetCompletedJobResponse200JobKind -import datetime -from dateutil.parser import isoparse -from ..models.get_completed_job_response_200_language import GetCompletedJobResponse200Language -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_args import GetCompletedJobResponse200Args - from ..models.get_completed_job_response_200_flow_status import GetCompletedJobResponse200FlowStatus - from ..models.get_completed_job_response_200_raw_flow import GetCompletedJobResponse200RawFlow - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200") - - -@_attrs_define -class GetCompletedJobResponse200: - """ - Attributes: - id (str): - created_by (str): - created_at (datetime.datetime): - started_at (datetime.datetime): - duration_ms (int): - success (bool): - canceled (bool): - job_kind (GetCompletedJobResponse200JobKind): - permissioned_as (str): The user (u/userfoo) or group (g/groupfoo) whom - the execution of this script will be permissioned_as and by extension its DT_TOKEN. - is_flow_step (bool): - is_skipped (bool): - email (str): - visible_to_owner (bool): - tag (str): - workspace_id (Union[Unset, str]): - parent_job (Union[Unset, str]): - script_path (Union[Unset, str]): - script_hash (Union[Unset, str]): - args (Union[Unset, GetCompletedJobResponse200Args]): - result (Union[Unset, Any]): - logs (Union[Unset, str]): - deleted (Union[Unset, bool]): - raw_code (Union[Unset, str]): - canceled_by (Union[Unset, str]): - canceled_reason (Union[Unset, str]): - schedule_path (Union[Unset, str]): - flow_status (Union[Unset, GetCompletedJobResponse200FlowStatus]): - raw_flow (Union[Unset, GetCompletedJobResponse200RawFlow]): - language (Union[Unset, GetCompletedJobResponse200Language]): - mem_peak (Union[Unset, int]): - priority (Union[Unset, int]): - """ - - id: str - created_by: str - created_at: datetime.datetime - started_at: datetime.datetime - duration_ms: int - success: bool - canceled: bool - job_kind: GetCompletedJobResponse200JobKind - permissioned_as: str - is_flow_step: bool - is_skipped: bool - email: str - visible_to_owner: bool - tag: str - workspace_id: Union[Unset, str] = UNSET - parent_job: Union[Unset, str] = UNSET - script_path: Union[Unset, str] = UNSET - script_hash: Union[Unset, str] = UNSET - args: Union[Unset, 'GetCompletedJobResponse200Args'] = UNSET - result: Union[Unset, Any] = UNSET - logs: Union[Unset, str] = UNSET - deleted: Union[Unset, bool] = UNSET - raw_code: Union[Unset, str] = UNSET - canceled_by: Union[Unset, str] = UNSET - canceled_reason: Union[Unset, str] = UNSET - schedule_path: Union[Unset, str] = UNSET - flow_status: Union[Unset, 'GetCompletedJobResponse200FlowStatus'] = UNSET - raw_flow: Union[Unset, 'GetCompletedJobResponse200RawFlow'] = UNSET - language: Union[Unset, GetCompletedJobResponse200Language] = UNSET - mem_peak: Union[Unset, int] = UNSET - priority: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_args import GetCompletedJobResponse200Args - from ..models.get_completed_job_response_200_flow_status import GetCompletedJobResponse200FlowStatus - from ..models.get_completed_job_response_200_raw_flow import GetCompletedJobResponse200RawFlow - id = self.id - created_by = self.created_by - created_at = self.created_at.isoformat() - - started_at = self.started_at.isoformat() - - duration_ms = self.duration_ms - success = self.success - canceled = self.canceled - job_kind = self.job_kind.value - - permissioned_as = self.permissioned_as - is_flow_step = self.is_flow_step - is_skipped = self.is_skipped - email = self.email - visible_to_owner = self.visible_to_owner - tag = self.tag - workspace_id = self.workspace_id - parent_job = self.parent_job - script_path = self.script_path - script_hash = self.script_hash - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - result = self.result - logs = self.logs - deleted = self.deleted - raw_code = self.raw_code - canceled_by = self.canceled_by - canceled_reason = self.canceled_reason - schedule_path = self.schedule_path - flow_status: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.flow_status, Unset): - flow_status = self.flow_status.to_dict() - - raw_flow: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.raw_flow, Unset): - raw_flow = self.raw_flow.to_dict() - - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - mem_peak = self.mem_peak - priority = self.priority - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "created_by": created_by, - "created_at": created_at, - "started_at": started_at, - "duration_ms": duration_ms, - "success": success, - "canceled": canceled, - "job_kind": job_kind, - "permissioned_as": permissioned_as, - "is_flow_step": is_flow_step, - "is_skipped": is_skipped, - "email": email, - "visible_to_owner": visible_to_owner, - "tag": tag, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_job is not UNSET: - field_dict["parent_job"] = parent_job - if script_path is not UNSET: - field_dict["script_path"] = script_path - if script_hash is not UNSET: - field_dict["script_hash"] = script_hash - if args is not UNSET: - field_dict["args"] = args - if result is not UNSET: - field_dict["result"] = result - if logs is not UNSET: - field_dict["logs"] = logs - if deleted is not UNSET: - field_dict["deleted"] = deleted - if raw_code is not UNSET: - field_dict["raw_code"] = raw_code - if canceled_by is not UNSET: - field_dict["canceled_by"] = canceled_by - if canceled_reason is not UNSET: - field_dict["canceled_reason"] = canceled_reason - if schedule_path is not UNSET: - field_dict["schedule_path"] = schedule_path - if flow_status is not UNSET: - field_dict["flow_status"] = flow_status - if raw_flow is not UNSET: - field_dict["raw_flow"] = raw_flow - if language is not UNSET: - field_dict["language"] = language - if mem_peak is not UNSET: - field_dict["mem_peak"] = mem_peak - if priority is not UNSET: - field_dict["priority"] = priority - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_args import GetCompletedJobResponse200Args - from ..models.get_completed_job_response_200_flow_status import GetCompletedJobResponse200FlowStatus - from ..models.get_completed_job_response_200_raw_flow import GetCompletedJobResponse200RawFlow - d = src_dict.copy() - id = d.pop("id") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - started_at = isoparse(d.pop("started_at")) - - - - - duration_ms = d.pop("duration_ms") - - success = d.pop("success") - - canceled = d.pop("canceled") - - job_kind = GetCompletedJobResponse200JobKind(d.pop("job_kind")) - - - - - permissioned_as = d.pop("permissioned_as") - - is_flow_step = d.pop("is_flow_step") - - is_skipped = d.pop("is_skipped") - - email = d.pop("email") - - visible_to_owner = d.pop("visible_to_owner") - - tag = d.pop("tag") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_job = d.pop("parent_job", UNSET) - - script_path = d.pop("script_path", UNSET) - - script_hash = d.pop("script_hash", UNSET) - - _args = d.pop("args", UNSET) - args: Union[Unset, GetCompletedJobResponse200Args] - if isinstance(_args, Unset): - args = UNSET - else: - args = GetCompletedJobResponse200Args.from_dict(_args) - - - - - result = d.pop("result", UNSET) - - logs = d.pop("logs", UNSET) - - deleted = d.pop("deleted", UNSET) - - raw_code = d.pop("raw_code", UNSET) - - canceled_by = d.pop("canceled_by", UNSET) - - canceled_reason = d.pop("canceled_reason", UNSET) - - schedule_path = d.pop("schedule_path", UNSET) - - _flow_status = d.pop("flow_status", UNSET) - flow_status: Union[Unset, GetCompletedJobResponse200FlowStatus] - if isinstance(_flow_status, Unset): - flow_status = UNSET - else: - flow_status = GetCompletedJobResponse200FlowStatus.from_dict(_flow_status) - - - - - _raw_flow = d.pop("raw_flow", UNSET) - raw_flow: Union[Unset, GetCompletedJobResponse200RawFlow] - if isinstance(_raw_flow, Unset): - raw_flow = UNSET - else: - raw_flow = GetCompletedJobResponse200RawFlow.from_dict(_raw_flow) - - - - - _language = d.pop("language", UNSET) - language: Union[Unset, GetCompletedJobResponse200Language] - if isinstance(_language, Unset): - language = UNSET - else: - language = GetCompletedJobResponse200Language(_language) - - - - - mem_peak = d.pop("mem_peak", UNSET) - - priority = d.pop("priority", UNSET) - - get_completed_job_response_200 = cls( - id=id, - created_by=created_by, - created_at=created_at, - started_at=started_at, - duration_ms=duration_ms, - success=success, - canceled=canceled, - job_kind=job_kind, - permissioned_as=permissioned_as, - is_flow_step=is_flow_step, - is_skipped=is_skipped, - email=email, - visible_to_owner=visible_to_owner, - tag=tag, - workspace_id=workspace_id, - parent_job=parent_job, - script_path=script_path, - script_hash=script_hash, - args=args, - result=result, - logs=logs, - deleted=deleted, - raw_code=raw_code, - canceled_by=canceled_by, - canceled_reason=canceled_reason, - schedule_path=schedule_path, - flow_status=flow_status, - raw_flow=raw_flow, - language=language, - mem_peak=mem_peak, - priority=priority, - ) - - get_completed_job_response_200.additional_properties = d - return get_completed_job_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_args.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_args.py deleted file mode 100644 index 5d8b7a818a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200Args") - - -@_attrs_define -class GetCompletedJobResponse200Args: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_completed_job_response_200_args = cls( - ) - - get_completed_job_response_200_args.additional_properties = d - return get_completed_job_response_200_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status.py deleted file mode 100644 index 9678f20018..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status.py +++ /dev/null @@ -1,138 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_flow_status_retry import GetCompletedJobResponse200FlowStatusRetry - from ..models.get_completed_job_response_200_flow_status_failure_module import GetCompletedJobResponse200FlowStatusFailureModule - from ..models.get_completed_job_response_200_flow_status_modules_item import GetCompletedJobResponse200FlowStatusModulesItem - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatus") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatus: - """ - Attributes: - step (int): - modules (List['GetCompletedJobResponse200FlowStatusModulesItem']): - failure_module (GetCompletedJobResponse200FlowStatusFailureModule): - retry (Union[Unset, GetCompletedJobResponse200FlowStatusRetry]): - """ - - step: int - modules: List['GetCompletedJobResponse200FlowStatusModulesItem'] - failure_module: 'GetCompletedJobResponse200FlowStatusFailureModule' - retry: Union[Unset, 'GetCompletedJobResponse200FlowStatusRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_flow_status_retry import GetCompletedJobResponse200FlowStatusRetry - from ..models.get_completed_job_response_200_flow_status_failure_module import GetCompletedJobResponse200FlowStatusFailureModule - from ..models.get_completed_job_response_200_flow_status_modules_item import GetCompletedJobResponse200FlowStatusModulesItem - step = self.step - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module = self.failure_module.to_dict() - - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "step": step, - "modules": modules, - "failure_module": failure_module, - }) - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_flow_status_retry import GetCompletedJobResponse200FlowStatusRetry - from ..models.get_completed_job_response_200_flow_status_failure_module import GetCompletedJobResponse200FlowStatusFailureModule - from ..models.get_completed_job_response_200_flow_status_modules_item import GetCompletedJobResponse200FlowStatusModulesItem - d = src_dict.copy() - step = d.pop("step") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = GetCompletedJobResponse200FlowStatusModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - failure_module = GetCompletedJobResponse200FlowStatusFailureModule.from_dict(d.pop("failure_module")) - - - - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetCompletedJobResponse200FlowStatusRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetCompletedJobResponse200FlowStatusRetry.from_dict(_retry) - - - - - get_completed_job_response_200_flow_status = cls( - step=step, - modules=modules, - failure_module=failure_module, - retry=retry, - ) - - get_completed_job_response_200_flow_status.additional_properties = d - return get_completed_job_response_200_flow_status - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module.py deleted file mode 100644 index 9da0128875..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module.py +++ /dev/null @@ -1,223 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset -from ..models.get_completed_job_response_200_flow_status_failure_module_type import GetCompletedJobResponse200FlowStatusFailureModuleType - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_flow_status_failure_module_approvers_item import GetCompletedJobResponse200FlowStatusFailureModuleApproversItem - from ..models.get_completed_job_response_200_flow_status_failure_module_iterator import GetCompletedJobResponse200FlowStatusFailureModuleIterator - from ..models.get_completed_job_response_200_flow_status_failure_module_branchall import GetCompletedJobResponse200FlowStatusFailureModuleBranchall - from ..models.get_completed_job_response_200_flow_status_failure_module_branch_chosen import GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusFailureModule") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusFailureModule: - """ - Attributes: - type (GetCompletedJobResponse200FlowStatusFailureModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, GetCompletedJobResponse200FlowStatusFailureModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen]): - branchall (Union[Unset, GetCompletedJobResponse200FlowStatusFailureModuleBranchall]): - approvers (Union[Unset, List['GetCompletedJobResponse200FlowStatusFailureModuleApproversItem']]): - parent_module (Union[Unset, str]): - """ - - type: GetCompletedJobResponse200FlowStatusFailureModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'GetCompletedJobResponse200FlowStatusFailureModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'GetCompletedJobResponse200FlowStatusFailureModuleBranchall'] = UNSET - approvers: Union[Unset, List['GetCompletedJobResponse200FlowStatusFailureModuleApproversItem']] = UNSET - parent_module: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_flow_status_failure_module_approvers_item import GetCompletedJobResponse200FlowStatusFailureModuleApproversItem - from ..models.get_completed_job_response_200_flow_status_failure_module_iterator import GetCompletedJobResponse200FlowStatusFailureModuleIterator - from ..models.get_completed_job_response_200_flow_status_failure_module_branchall import GetCompletedJobResponse200FlowStatusFailureModuleBranchall - from ..models.get_completed_job_response_200_flow_status_failure_module_branch_chosen import GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - parent_module = self.parent_module - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - if parent_module is not UNSET: - field_dict["parent_module"] = parent_module - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_flow_status_failure_module_approvers_item import GetCompletedJobResponse200FlowStatusFailureModuleApproversItem - from ..models.get_completed_job_response_200_flow_status_failure_module_iterator import GetCompletedJobResponse200FlowStatusFailureModuleIterator - from ..models.get_completed_job_response_200_flow_status_failure_module_branchall import GetCompletedJobResponse200FlowStatusFailureModuleBranchall - from ..models.get_completed_job_response_200_flow_status_failure_module_branch_chosen import GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen - d = src_dict.copy() - type = GetCompletedJobResponse200FlowStatusFailureModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, GetCompletedJobResponse200FlowStatusFailureModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = GetCompletedJobResponse200FlowStatusFailureModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, GetCompletedJobResponse200FlowStatusFailureModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = GetCompletedJobResponse200FlowStatusFailureModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = GetCompletedJobResponse200FlowStatusFailureModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - parent_module = d.pop("parent_module", UNSET) - - get_completed_job_response_200_flow_status_failure_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - parent_module=parent_module, - ) - - get_completed_job_response_200_flow_status_failure_module.additional_properties = d - return get_completed_job_response_200_flow_status_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_approvers_item.py deleted file mode 100644 index 7b6b298ed7..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusFailureModuleApproversItem") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusFailureModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - get_completed_job_response_200_flow_status_failure_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - get_completed_job_response_200_flow_status_failure_module_approvers_item.additional_properties = d - return get_completed_job_response_200_flow_status_failure_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branch_chosen.py deleted file mode 100644 index b27c1749e3..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_completed_job_response_200_flow_status_failure_module_branch_chosen_type import GetCompletedJobResponse200FlowStatusFailureModuleBranchChosenType - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusFailureModuleBranchChosen: - """ - Attributes: - type (GetCompletedJobResponse200FlowStatusFailureModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: GetCompletedJobResponse200FlowStatusFailureModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetCompletedJobResponse200FlowStatusFailureModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - get_completed_job_response_200_flow_status_failure_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - get_completed_job_response_200_flow_status_failure_module_branch_chosen.additional_properties = d - return get_completed_job_response_200_flow_status_failure_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branch_chosen_type.py deleted file mode 100644 index fad1413f85..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200FlowStatusFailureModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branchall.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branchall.py deleted file mode 100644 index 852c287113..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusFailureModuleBranchall") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusFailureModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - get_completed_job_response_200_flow_status_failure_module_branchall = cls( - branch=branch, - len_=len_, - ) - - get_completed_job_response_200_flow_status_failure_module_branchall.additional_properties = d - return get_completed_job_response_200_flow_status_failure_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_iterator.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_iterator.py deleted file mode 100644 index 0366ff9964..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusFailureModuleIterator") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusFailureModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - get_completed_job_response_200_flow_status_failure_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - get_completed_job_response_200_flow_status_failure_module_iterator.additional_properties = d - return get_completed_job_response_200_flow_status_failure_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_type.py deleted file mode 100644 index 1949b822a3..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_failure_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200FlowStatusFailureModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item.py deleted file mode 100644 index f8928acd8d..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.get_completed_job_response_200_flow_status_modules_item_type import GetCompletedJobResponse200FlowStatusModulesItemType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_flow_status_modules_item_approvers_item import GetCompletedJobResponse200FlowStatusModulesItemApproversItem - from ..models.get_completed_job_response_200_flow_status_modules_item_branch_chosen import GetCompletedJobResponse200FlowStatusModulesItemBranchChosen - from ..models.get_completed_job_response_200_flow_status_modules_item_iterator import GetCompletedJobResponse200FlowStatusModulesItemIterator - from ..models.get_completed_job_response_200_flow_status_modules_item_branchall import GetCompletedJobResponse200FlowStatusModulesItemBranchall - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusModulesItem") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusModulesItem: - """ - Attributes: - type (GetCompletedJobResponse200FlowStatusModulesItemType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, GetCompletedJobResponse200FlowStatusModulesItemIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, GetCompletedJobResponse200FlowStatusModulesItemBranchChosen]): - branchall (Union[Unset, GetCompletedJobResponse200FlowStatusModulesItemBranchall]): - approvers (Union[Unset, List['GetCompletedJobResponse200FlowStatusModulesItemApproversItem']]): - """ - - type: GetCompletedJobResponse200FlowStatusModulesItemType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'GetCompletedJobResponse200FlowStatusModulesItemIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'GetCompletedJobResponse200FlowStatusModulesItemBranchChosen'] = UNSET - branchall: Union[Unset, 'GetCompletedJobResponse200FlowStatusModulesItemBranchall'] = UNSET - approvers: Union[Unset, List['GetCompletedJobResponse200FlowStatusModulesItemApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_flow_status_modules_item_approvers_item import GetCompletedJobResponse200FlowStatusModulesItemApproversItem - from ..models.get_completed_job_response_200_flow_status_modules_item_branch_chosen import GetCompletedJobResponse200FlowStatusModulesItemBranchChosen - from ..models.get_completed_job_response_200_flow_status_modules_item_iterator import GetCompletedJobResponse200FlowStatusModulesItemIterator - from ..models.get_completed_job_response_200_flow_status_modules_item_branchall import GetCompletedJobResponse200FlowStatusModulesItemBranchall - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_flow_status_modules_item_approvers_item import GetCompletedJobResponse200FlowStatusModulesItemApproversItem - from ..models.get_completed_job_response_200_flow_status_modules_item_branch_chosen import GetCompletedJobResponse200FlowStatusModulesItemBranchChosen - from ..models.get_completed_job_response_200_flow_status_modules_item_iterator import GetCompletedJobResponse200FlowStatusModulesItemIterator - from ..models.get_completed_job_response_200_flow_status_modules_item_branchall import GetCompletedJobResponse200FlowStatusModulesItemBranchall - d = src_dict.copy() - type = GetCompletedJobResponse200FlowStatusModulesItemType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, GetCompletedJobResponse200FlowStatusModulesItemIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = GetCompletedJobResponse200FlowStatusModulesItemIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, GetCompletedJobResponse200FlowStatusModulesItemBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = GetCompletedJobResponse200FlowStatusModulesItemBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, GetCompletedJobResponse200FlowStatusModulesItemBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = GetCompletedJobResponse200FlowStatusModulesItemBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = GetCompletedJobResponse200FlowStatusModulesItemApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - get_completed_job_response_200_flow_status_modules_item = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - get_completed_job_response_200_flow_status_modules_item.additional_properties = d - return get_completed_job_response_200_flow_status_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_approvers_item.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_approvers_item.py deleted file mode 100644 index a093ac18fa..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusModulesItemApproversItem") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusModulesItemApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - get_completed_job_response_200_flow_status_modules_item_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - get_completed_job_response_200_flow_status_modules_item_approvers_item.additional_properties = d - return get_completed_job_response_200_flow_status_modules_item_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branch_chosen.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branch_chosen.py deleted file mode 100644 index 55bb7ee580..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_completed_job_response_200_flow_status_modules_item_branch_chosen_type import GetCompletedJobResponse200FlowStatusModulesItemBranchChosenType - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusModulesItemBranchChosen") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusModulesItemBranchChosen: - """ - Attributes: - type (GetCompletedJobResponse200FlowStatusModulesItemBranchChosenType): - branch (Union[Unset, int]): - """ - - type: GetCompletedJobResponse200FlowStatusModulesItemBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetCompletedJobResponse200FlowStatusModulesItemBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - get_completed_job_response_200_flow_status_modules_item_branch_chosen = cls( - type=type, - branch=branch, - ) - - get_completed_job_response_200_flow_status_modules_item_branch_chosen.additional_properties = d - return get_completed_job_response_200_flow_status_modules_item_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branch_chosen_type.py deleted file mode 100644 index 5651653544..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200FlowStatusModulesItemBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branchall.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branchall.py deleted file mode 100644 index 936cf3ef25..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusModulesItemBranchall") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusModulesItemBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - get_completed_job_response_200_flow_status_modules_item_branchall = cls( - branch=branch, - len_=len_, - ) - - get_completed_job_response_200_flow_status_modules_item_branchall.additional_properties = d - return get_completed_job_response_200_flow_status_modules_item_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_iterator.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_iterator.py deleted file mode 100644 index 3e88173ef7..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusModulesItemIterator") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusModulesItemIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - get_completed_job_response_200_flow_status_modules_item_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - get_completed_job_response_200_flow_status_modules_item_iterator.additional_properties = d - return get_completed_job_response_200_flow_status_modules_item_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_type.py deleted file mode 100644 index 457c75c7af..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_modules_item_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200FlowStatusModulesItemType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_retry.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_retry.py deleted file mode 100644 index a1a00a49d2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_flow_status_retry.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200FlowStatusRetry") - - -@_attrs_define -class GetCompletedJobResponse200FlowStatusRetry: - """ - Attributes: - fail_count (Union[Unset, int]): - failed_jobs (Union[Unset, List[str]]): - """ - - fail_count: Union[Unset, int] = UNSET - failed_jobs: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - fail_count = self.fail_count - failed_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.failed_jobs, Unset): - failed_jobs = self.failed_jobs - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if fail_count is not UNSET: - field_dict["fail_count"] = fail_count - if failed_jobs is not UNSET: - field_dict["failed_jobs"] = failed_jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - fail_count = d.pop("fail_count", UNSET) - - failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET)) - - - get_completed_job_response_200_flow_status_retry = cls( - fail_count=fail_count, - failed_jobs=failed_jobs, - ) - - get_completed_job_response_200_flow_status_retry.additional_properties = d - return get_completed_job_response_200_flow_status_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_job_kind.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_job_kind.py deleted file mode 100644 index 8e02096332..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_job_kind.py +++ /dev/null @@ -1,17 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200JobKind(str, Enum): - APPDEPENDENCIES = "appdependencies" - DEPENDENCIES = "dependencies" - DEPLOYMENTCALLBACK = "deploymentcallback" - FLOW = "flow" - FLOWDEPENDENCIES = "flowdependencies" - FLOWPREVIEW = "flowpreview" - IDENTITY = "identity" - PREVIEW = "preview" - SCRIPT = "script" - SCRIPT_HUB = "script_hub" - SINGLESCRIPTFLOW = "singlescriptflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_language.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_language.py deleted file mode 100644 index 4aaa1d0651..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow.py deleted file mode 100644 index 8b97f2bae0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_failure_module import GetCompletedJobResponse200RawFlowFailureModule - from ..models.get_completed_job_response_200_raw_flow_modules_item import GetCompletedJobResponse200RawFlowModulesItem - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlow") - - -@_attrs_define -class GetCompletedJobResponse200RawFlow: - """ - Attributes: - modules (List['GetCompletedJobResponse200RawFlowModulesItem']): - failure_module (Union[Unset, GetCompletedJobResponse200RawFlowFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['GetCompletedJobResponse200RawFlowModulesItem'] - failure_module: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_failure_module import GetCompletedJobResponse200RawFlowFailureModule - from ..models.get_completed_job_response_200_raw_flow_modules_item import GetCompletedJobResponse200RawFlowModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_failure_module import GetCompletedJobResponse200RawFlowFailureModule - from ..models.get_completed_job_response_200_raw_flow_modules_item import GetCompletedJobResponse200RawFlowModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = GetCompletedJobResponse200RawFlowModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, GetCompletedJobResponse200RawFlowFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = GetCompletedJobResponse200RawFlowFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - get_completed_job_response_200_raw_flow = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - get_completed_job_response_200_raw_flow.additional_properties = d - return get_completed_job_response_200_raw_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module.py deleted file mode 100644 index 7d2c531f5c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry import GetCompletedJobResponse200RawFlowFailureModuleRetry - from ..models.get_completed_job_response_200_raw_flow_failure_module_mock import GetCompletedJobResponse200RawFlowFailureModuleMock - from ..models.get_completed_job_response_200_raw_flow_failure_module_stop_after_if import GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf - from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_0 import GetCompletedJobResponse200RawFlowFailureModuleSleepType0 - from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_1 import GetCompletedJobResponse200RawFlowFailureModuleSleepType1 - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend import GetCompletedJobResponse200RawFlowFailureModuleSuspend - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModule") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf]): - sleep (Union['GetCompletedJobResponse200RawFlowFailureModuleSleepType0', - 'GetCompletedJobResponse200RawFlowFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleMock]): - suspend (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf'] = UNSET - sleep: Union['GetCompletedJobResponse200RawFlowFailureModuleSleepType0', 'GetCompletedJobResponse200RawFlowFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleMock'] = UNSET - suspend: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry import GetCompletedJobResponse200RawFlowFailureModuleRetry - from ..models.get_completed_job_response_200_raw_flow_failure_module_mock import GetCompletedJobResponse200RawFlowFailureModuleMock - from ..models.get_completed_job_response_200_raw_flow_failure_module_stop_after_if import GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf - from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_0 import GetCompletedJobResponse200RawFlowFailureModuleSleepType0 - from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_1 import GetCompletedJobResponse200RawFlowFailureModuleSleepType1 - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend import GetCompletedJobResponse200RawFlowFailureModuleSuspend - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetCompletedJobResponse200RawFlowFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry import GetCompletedJobResponse200RawFlowFailureModuleRetry - from ..models.get_completed_job_response_200_raw_flow_failure_module_mock import GetCompletedJobResponse200RawFlowFailureModuleMock - from ..models.get_completed_job_response_200_raw_flow_failure_module_stop_after_if import GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf - from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_0 import GetCompletedJobResponse200RawFlowFailureModuleSleepType0 - from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_1 import GetCompletedJobResponse200RawFlowFailureModuleSleepType1 - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend import GetCompletedJobResponse200RawFlowFailureModuleSuspend - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetCompletedJobResponse200RawFlowFailureModuleSleepType0', 'GetCompletedJobResponse200RawFlowFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetCompletedJobResponse200RawFlowFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetCompletedJobResponse200RawFlowFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetCompletedJobResponse200RawFlowFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetCompletedJobResponse200RawFlowFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetCompletedJobResponse200RawFlowFailureModuleRetry.from_dict(_retry) - - - - - get_completed_job_response_200_raw_flow_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_completed_job_response_200_raw_flow_failure_module.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_mock.py deleted file mode 100644 index 7d2ba91e3a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleMock") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_completed_job_response_200_raw_flow_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_completed_job_response_200_raw_flow_failure_module_mock.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry.py deleted file mode 100644 index 80359f0faf..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry_exponential import GetCompletedJobResponse200RawFlowFailureModuleRetryExponential - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry_constant import GetCompletedJobResponse200RawFlowFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleRetry") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleRetryConstant]): - exponential (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry_exponential import GetCompletedJobResponse200RawFlowFailureModuleRetryExponential - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry_constant import GetCompletedJobResponse200RawFlowFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry_exponential import GetCompletedJobResponse200RawFlowFailureModuleRetryExponential - from ..models.get_completed_job_response_200_raw_flow_failure_module_retry_constant import GetCompletedJobResponse200RawFlowFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetCompletedJobResponse200RawFlowFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetCompletedJobResponse200RawFlowFailureModuleRetryExponential.from_dict(_exponential) - - - - - get_completed_job_response_200_raw_flow_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_completed_job_response_200_raw_flow_failure_module_retry.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry_constant.py deleted file mode 100644 index a148e8c0c8..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleRetryConstant") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_completed_job_response_200_raw_flow_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_completed_job_response_200_raw_flow_failure_module_retry_constant.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry_exponential.py deleted file mode 100644 index 7a63b3c935..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleRetryExponential") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_completed_job_response_200_raw_flow_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_completed_job_response_200_raw_flow_failure_module_retry_exponential.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_0.py deleted file mode 100644 index e6c3ae92ab..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type import GetCompletedJobResponse200RawFlowFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleSleepType0") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleSleepType0: - """ - Attributes: - type (GetCompletedJobResponse200RawFlowFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetCompletedJobResponse200RawFlowFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetCompletedJobResponse200RawFlowFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_completed_job_response_200_raw_flow_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_completed_job_response_200_raw_flow_failure_module_sleep_type_0.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type.py deleted file mode 100644 index 627bd00afc..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_1.py deleted file mode 100644 index 4bd91ba0a4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type import GetCompletedJobResponse200RawFlowFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleSleepType1") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (GetCompletedJobResponse200RawFlowFailureModuleSleepType1Type): - """ - - expr: str - type: GetCompletedJobResponse200RawFlowFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetCompletedJobResponse200RawFlowFailureModuleSleepType1Type(d.pop("type")) - - - - - get_completed_job_response_200_raw_flow_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_completed_job_response_200_raw_flow_failure_module_sleep_type_1.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type.py deleted file mode 100644 index 0d24abf5c2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_stop_after_if.py deleted file mode 100644 index 3f2f0a5ba0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_completed_job_response_200_raw_flow_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_completed_job_response_200_raw_flow_failure_module_stop_after_if.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend.py deleted file mode 100644 index 4d8c0143f2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form import GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleSuspend") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0', - 'GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0', 'GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form import GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form import GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0', 'GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_completed_job_response_200_raw_flow_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_completed_job_response_200_raw_flow_failure_module_suspend.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.py deleted file mode 100644 index d39dad6ed8..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema import GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema import GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema import GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index bd37db6d68..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema = cls( - ) - - get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 7594f408df..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 4782b6ee25..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 64722dcc61..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type import GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 45e92e8829..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item.py deleted file mode 100644 index 262e0199c6..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry import GetCompletedJobResponse200RawFlowModulesItemRetry - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend import GetCompletedJobResponse200RawFlowModulesItemSuspend - from ..models.get_completed_job_response_200_raw_flow_modules_item_stop_after_if import GetCompletedJobResponse200RawFlowModulesItemStopAfterIf - from ..models.get_completed_job_response_200_raw_flow_modules_item_mock import GetCompletedJobResponse200RawFlowModulesItemMock - from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_0 import GetCompletedJobResponse200RawFlowModulesItemSleepType0 - from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import GetCompletedJobResponse200RawFlowModulesItemSleepType1 - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItem") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemStopAfterIf]): - sleep (Union['GetCompletedJobResponse200RawFlowModulesItemSleepType0', - 'GetCompletedJobResponse200RawFlowModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemMock]): - suspend (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemStopAfterIf'] = UNSET - sleep: Union['GetCompletedJobResponse200RawFlowModulesItemSleepType0', 'GetCompletedJobResponse200RawFlowModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemMock'] = UNSET - suspend: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry import GetCompletedJobResponse200RawFlowModulesItemRetry - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend import GetCompletedJobResponse200RawFlowModulesItemSuspend - from ..models.get_completed_job_response_200_raw_flow_modules_item_stop_after_if import GetCompletedJobResponse200RawFlowModulesItemStopAfterIf - from ..models.get_completed_job_response_200_raw_flow_modules_item_mock import GetCompletedJobResponse200RawFlowModulesItemMock - from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_0 import GetCompletedJobResponse200RawFlowModulesItemSleepType0 - from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import GetCompletedJobResponse200RawFlowModulesItemSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetCompletedJobResponse200RawFlowModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry import GetCompletedJobResponse200RawFlowModulesItemRetry - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend import GetCompletedJobResponse200RawFlowModulesItemSuspend - from ..models.get_completed_job_response_200_raw_flow_modules_item_stop_after_if import GetCompletedJobResponse200RawFlowModulesItemStopAfterIf - from ..models.get_completed_job_response_200_raw_flow_modules_item_mock import GetCompletedJobResponse200RawFlowModulesItemMock - from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_0 import GetCompletedJobResponse200RawFlowModulesItemSleepType0 - from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_1 import GetCompletedJobResponse200RawFlowModulesItemSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetCompletedJobResponse200RawFlowModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetCompletedJobResponse200RawFlowModulesItemSleepType0', 'GetCompletedJobResponse200RawFlowModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetCompletedJobResponse200RawFlowModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetCompletedJobResponse200RawFlowModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetCompletedJobResponse200RawFlowModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetCompletedJobResponse200RawFlowModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetCompletedJobResponse200RawFlowModulesItemRetry.from_dict(_retry) - - - - - get_completed_job_response_200_raw_flow_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_completed_job_response_200_raw_flow_modules_item.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_mock.py deleted file mode 100644 index a3a903943f..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemMock") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_completed_job_response_200_raw_flow_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_completed_job_response_200_raw_flow_modules_item_mock.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry.py deleted file mode 100644 index 49b4f7ebe2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry_constant import GetCompletedJobResponse200RawFlowModulesItemRetryConstant - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry_exponential import GetCompletedJobResponse200RawFlowModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemRetry") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemRetry: - """ - Attributes: - constant (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemRetryConstant]): - exponential (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry_constant import GetCompletedJobResponse200RawFlowModulesItemRetryConstant - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry_exponential import GetCompletedJobResponse200RawFlowModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry_constant import GetCompletedJobResponse200RawFlowModulesItemRetryConstant - from ..models.get_completed_job_response_200_raw_flow_modules_item_retry_exponential import GetCompletedJobResponse200RawFlowModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetCompletedJobResponse200RawFlowModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetCompletedJobResponse200RawFlowModulesItemRetryExponential.from_dict(_exponential) - - - - - get_completed_job_response_200_raw_flow_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_completed_job_response_200_raw_flow_modules_item_retry.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry_constant.py deleted file mode 100644 index d48cd93890..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemRetryConstant") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_completed_job_response_200_raw_flow_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_completed_job_response_200_raw_flow_modules_item_retry_constant.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry_exponential.py deleted file mode 100644 index 3981da9271..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemRetryExponential") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_completed_job_response_200_raw_flow_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_completed_job_response_200_raw_flow_modules_item_retry_exponential.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_0.py deleted file mode 100644 index 24afe1c4c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type import GetCompletedJobResponse200RawFlowModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemSleepType0") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemSleepType0: - """ - Attributes: - type (GetCompletedJobResponse200RawFlowModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetCompletedJobResponse200RawFlowModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetCompletedJobResponse200RawFlowModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_completed_job_response_200_raw_flow_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_completed_job_response_200_raw_flow_modules_item_sleep_type_0.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type.py deleted file mode 100644 index 50f09ee714..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_1.py deleted file mode 100644 index de783cb11a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type import GetCompletedJobResponse200RawFlowModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemSleepType1") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemSleepType1: - """ - Attributes: - expr (str): - type (GetCompletedJobResponse200RawFlowModulesItemSleepType1Type): - """ - - expr: str - type: GetCompletedJobResponse200RawFlowModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetCompletedJobResponse200RawFlowModulesItemSleepType1Type(d.pop("type")) - - - - - get_completed_job_response_200_raw_flow_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_completed_job_response_200_raw_flow_modules_item_sleep_type_1.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type.py deleted file mode 100644 index f0932bafdb..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_stop_after_if.py deleted file mode 100644 index 1eb4967bbc..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemStopAfterIf") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_completed_job_response_200_raw_flow_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_completed_job_response_200_raw_flow_modules_item_stop_after_if.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend.py deleted file mode 100644 index e9e7aae334..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form import GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemSuspend") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0', - 'GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0', 'GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form import GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form import GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0', 'GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_completed_job_response_200_raw_flow_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_completed_job_response_200_raw_flow_modules_item_suspend.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.py deleted file mode 100644 index 3e89e6138a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema import GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema import GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema import GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 92171b8d26..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema = cls( - ) - - get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index d74c4f0c5b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 88d6f13b17..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 6a3f57ef2a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type import GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 6555ae73f4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_response_200_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetCompletedJobResponse200RawFlowModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_completed_job_result_maybe_response_200.py b/python-client/windmill-api/windmill_api/models/get_completed_job_result_maybe_response_200.py deleted file mode 100644 index 454e90c375..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_completed_job_result_maybe_response_200.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetCompletedJobResultMaybeResponse200") - - -@_attrs_define -class GetCompletedJobResultMaybeResponse200: - """ - Attributes: - completed (bool): - result (Any): - started (Union[Unset, bool]): - """ - - completed: bool - result: Any - started: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - completed = self.completed - result = self.result - started = self.started - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "completed": completed, - "result": result, - }) - if started is not UNSET: - field_dict["started"] = started - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - completed = d.pop("completed") - - result = d.pop("result") - - started = d.pop("started", UNSET) - - get_completed_job_result_maybe_response_200 = cls( - completed=completed, - result=result, - started=started, - ) - - get_completed_job_result_maybe_response_200.additional_properties = d - return get_completed_job_result_maybe_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_deploy_to_response_200.py b/python-client/windmill-api/windmill_api/models/get_deploy_to_response_200.py deleted file mode 100644 index d7f65dbd87..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_deploy_to_response_200.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetDeployToResponse200") - - -@_attrs_define -class GetDeployToResponse200: - """ - Attributes: - deploy_to (Union[Unset, str]): - """ - - deploy_to: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - deploy_to = self.deploy_to - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if deploy_to is not UNSET: - field_dict["deploy_to"] = deploy_to - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - deploy_to = d.pop("deploy_to", UNSET) - - get_deploy_to_response_200 = cls( - deploy_to=deploy_to, - ) - - get_deploy_to_response_200.additional_properties = d - return get_deploy_to_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200.py deleted file mode 100644 index b70b1ab7c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200.py +++ /dev/null @@ -1,239 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_extra_perms import GetFlowByPathResponse200ExtraPerms - from ..models.get_flow_by_path_response_200_schema import GetFlowByPathResponse200Schema - from ..models.get_flow_by_path_response_200_value import GetFlowByPathResponse200Value - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200") - - -@_attrs_define -class GetFlowByPathResponse200: - """ - Attributes: - summary (str): - value (GetFlowByPathResponse200Value): - path (str): - edited_by (str): - edited_at (datetime.datetime): - archived (bool): - extra_perms (GetFlowByPathResponse200ExtraPerms): - description (Union[Unset, str]): - schema (Union[Unset, GetFlowByPathResponse200Schema]): - workspace_id (Union[Unset, str]): - additional_properties (Union[Unset, bool]): - starred (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - tag (Union[Unset, str]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - dedicated_worker (Union[Unset, bool]): - timeout (Union[Unset, float]): - """ - - summary: str - value: 'GetFlowByPathResponse200Value' - path: str - edited_by: str - edited_at: datetime.datetime - archived: bool - extra_perms: 'GetFlowByPathResponse200ExtraPerms' - description: Union[Unset, str] = UNSET - schema: Union[Unset, 'GetFlowByPathResponse200Schema'] = UNSET - workspace_id: Union[Unset, str] = UNSET - additional_properties: Union[Unset, bool] = UNSET - starred: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - timeout: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_extra_perms import GetFlowByPathResponse200ExtraPerms - from ..models.get_flow_by_path_response_200_schema import GetFlowByPathResponse200Schema - from ..models.get_flow_by_path_response_200_value import GetFlowByPathResponse200Value - summary = self.summary - value = self.value.to_dict() - - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - archived = self.archived - extra_perms = self.extra_perms.to_dict() - - description = self.description - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - workspace_id = self.workspace_id - additional_properties = self.additional_properties - starred = self.starred - draft_only = self.draft_only - tag = self.tag - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - dedicated_worker = self.dedicated_worker - timeout = self.timeout - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "summary": summary, - "value": value, - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "archived": archived, - "extra_perms": extra_perms, - }) - if description is not UNSET: - field_dict["description"] = description - if schema is not UNSET: - field_dict["schema"] = schema - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if additional_properties is not UNSET: - field_dict["additionalProperties"] = additional_properties - if starred is not UNSET: - field_dict["starred"] = starred - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if tag is not UNSET: - field_dict["tag"] = tag - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if timeout is not UNSET: - field_dict["timeout"] = timeout - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_extra_perms import GetFlowByPathResponse200ExtraPerms - from ..models.get_flow_by_path_response_200_schema import GetFlowByPathResponse200Schema - from ..models.get_flow_by_path_response_200_value import GetFlowByPathResponse200Value - d = src_dict.copy() - summary = d.pop("summary") - - value = GetFlowByPathResponse200Value.from_dict(d.pop("value")) - - - - - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - archived = d.pop("archived") - - extra_perms = GetFlowByPathResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - description = d.pop("description", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetFlowByPathResponse200Schema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetFlowByPathResponse200Schema.from_dict(_schema) - - - - - workspace_id = d.pop("workspace_id", UNSET) - - additional_properties = d.pop("additionalProperties", UNSET) - - starred = d.pop("starred", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - tag = d.pop("tag", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - timeout = d.pop("timeout", UNSET) - - get_flow_by_path_response_200 = cls( - summary=summary, - value=value, - path=path, - edited_by=edited_by, - edited_at=edited_at, - archived=archived, - extra_perms=extra_perms, - description=description, - schema=schema, - workspace_id=workspace_id, - additional_properties=additional_properties, - starred=starred, - draft_only=draft_only, - tag=tag, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - dedicated_worker=dedicated_worker, - timeout=timeout, - ) - - get_flow_by_path_response_200.additional_properties = d - return get_flow_by_path_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_extra_perms.py deleted file mode 100644 index 5470d70781..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_extra_perms.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ExtraPerms") - - -@_attrs_define -class GetFlowByPathResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_response_200_extra_perms = cls( - ) - - get_flow_by_path_response_200_extra_perms.additional_properties = d - return get_flow_by_path_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_schema.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_schema.py deleted file mode 100644 index f37e96d678..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200Schema") - - -@_attrs_define -class GetFlowByPathResponse200Schema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_response_200_schema = cls( - ) - - get_flow_by_path_response_200_schema.additional_properties = d - return get_flow_by_path_response_200_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value.py deleted file mode 100644 index 44a4fe7445..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_failure_module import GetFlowByPathResponse200ValueFailureModule - from ..models.get_flow_by_path_response_200_value_modules_item import GetFlowByPathResponse200ValueModulesItem - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200Value") - - -@_attrs_define -class GetFlowByPathResponse200Value: - """ - Attributes: - modules (List['GetFlowByPathResponse200ValueModulesItem']): - failure_module (Union[Unset, GetFlowByPathResponse200ValueFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['GetFlowByPathResponse200ValueModulesItem'] - failure_module: Union[Unset, 'GetFlowByPathResponse200ValueFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_failure_module import GetFlowByPathResponse200ValueFailureModule - from ..models.get_flow_by_path_response_200_value_modules_item import GetFlowByPathResponse200ValueModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_failure_module import GetFlowByPathResponse200ValueFailureModule - from ..models.get_flow_by_path_response_200_value_modules_item import GetFlowByPathResponse200ValueModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = GetFlowByPathResponse200ValueModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, GetFlowByPathResponse200ValueFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = GetFlowByPathResponse200ValueFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - get_flow_by_path_response_200_value = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - get_flow_by_path_response_200_value.additional_properties = d - return get_flow_by_path_response_200_value - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module.py deleted file mode 100644 index 90b10531c4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_failure_module_mock import GetFlowByPathResponse200ValueFailureModuleMock - from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_1 import GetFlowByPathResponse200ValueFailureModuleSleepType1 - from ..models.get_flow_by_path_response_200_value_failure_module_suspend import GetFlowByPathResponse200ValueFailureModuleSuspend - from ..models.get_flow_by_path_response_200_value_failure_module_retry import GetFlowByPathResponse200ValueFailureModuleRetry - from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_0 import GetFlowByPathResponse200ValueFailureModuleSleepType0 - from ..models.get_flow_by_path_response_200_value_failure_module_stop_after_if import GetFlowByPathResponse200ValueFailureModuleStopAfterIf - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModule") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetFlowByPathResponse200ValueFailureModuleStopAfterIf]): - sleep (Union['GetFlowByPathResponse200ValueFailureModuleSleepType0', - 'GetFlowByPathResponse200ValueFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetFlowByPathResponse200ValueFailureModuleMock]): - suspend (Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetFlowByPathResponse200ValueFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleStopAfterIf'] = UNSET - sleep: Union['GetFlowByPathResponse200ValueFailureModuleSleepType0', 'GetFlowByPathResponse200ValueFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleMock'] = UNSET - suspend: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_failure_module_mock import GetFlowByPathResponse200ValueFailureModuleMock - from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_1 import GetFlowByPathResponse200ValueFailureModuleSleepType1 - from ..models.get_flow_by_path_response_200_value_failure_module_suspend import GetFlowByPathResponse200ValueFailureModuleSuspend - from ..models.get_flow_by_path_response_200_value_failure_module_retry import GetFlowByPathResponse200ValueFailureModuleRetry - from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_0 import GetFlowByPathResponse200ValueFailureModuleSleepType0 - from ..models.get_flow_by_path_response_200_value_failure_module_stop_after_if import GetFlowByPathResponse200ValueFailureModuleStopAfterIf - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetFlowByPathResponse200ValueFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_failure_module_mock import GetFlowByPathResponse200ValueFailureModuleMock - from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_1 import GetFlowByPathResponse200ValueFailureModuleSleepType1 - from ..models.get_flow_by_path_response_200_value_failure_module_suspend import GetFlowByPathResponse200ValueFailureModuleSuspend - from ..models.get_flow_by_path_response_200_value_failure_module_retry import GetFlowByPathResponse200ValueFailureModuleRetry - from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_0 import GetFlowByPathResponse200ValueFailureModuleSleepType0 - from ..models.get_flow_by_path_response_200_value_failure_module_stop_after_if import GetFlowByPathResponse200ValueFailureModuleStopAfterIf - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetFlowByPathResponse200ValueFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetFlowByPathResponse200ValueFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetFlowByPathResponse200ValueFailureModuleSleepType0', 'GetFlowByPathResponse200ValueFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetFlowByPathResponse200ValueFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetFlowByPathResponse200ValueFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetFlowByPathResponse200ValueFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetFlowByPathResponse200ValueFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetFlowByPathResponse200ValueFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetFlowByPathResponse200ValueFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetFlowByPathResponse200ValueFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetFlowByPathResponse200ValueFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetFlowByPathResponse200ValueFailureModuleRetry.from_dict(_retry) - - - - - get_flow_by_path_response_200_value_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_flow_by_path_response_200_value_failure_module.additional_properties = d - return get_flow_by_path_response_200_value_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_mock.py deleted file mode 100644 index e73bfdc600..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleMock") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_flow_by_path_response_200_value_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_flow_by_path_response_200_value_failure_module_mock.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry.py deleted file mode 100644 index 0506dcbe36..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_failure_module_retry_exponential import GetFlowByPathResponse200ValueFailureModuleRetryExponential - from ..models.get_flow_by_path_response_200_value_failure_module_retry_constant import GetFlowByPathResponse200ValueFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleRetry") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, GetFlowByPathResponse200ValueFailureModuleRetryConstant]): - exponential (Union[Unset, GetFlowByPathResponse200ValueFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_failure_module_retry_exponential import GetFlowByPathResponse200ValueFailureModuleRetryExponential - from ..models.get_flow_by_path_response_200_value_failure_module_retry_constant import GetFlowByPathResponse200ValueFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_failure_module_retry_exponential import GetFlowByPathResponse200ValueFailureModuleRetryExponential - from ..models.get_flow_by_path_response_200_value_failure_module_retry_constant import GetFlowByPathResponse200ValueFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetFlowByPathResponse200ValueFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetFlowByPathResponse200ValueFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetFlowByPathResponse200ValueFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetFlowByPathResponse200ValueFailureModuleRetryExponential.from_dict(_exponential) - - - - - get_flow_by_path_response_200_value_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_flow_by_path_response_200_value_failure_module_retry.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry_constant.py deleted file mode 100644 index afe121cac3..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleRetryConstant") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_flow_by_path_response_200_value_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_flow_by_path_response_200_value_failure_module_retry_constant.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry_exponential.py deleted file mode 100644 index ed300fc47e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleRetryExponential") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_flow_by_path_response_200_value_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_flow_by_path_response_200_value_failure_module_retry_exponential.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_0.py deleted file mode 100644 index a970a35229..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_0_type import GetFlowByPathResponse200ValueFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleSleepType0") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleSleepType0: - """ - Attributes: - type (GetFlowByPathResponse200ValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathResponse200ValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathResponse200ValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_response_200_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_response_200_value_failure_module_sleep_type_0.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index 13eb468a25..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_1.py deleted file mode 100644 index d9d5b8395b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_response_200_value_failure_module_sleep_type_1_type import GetFlowByPathResponse200ValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleSleepType1") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (GetFlowByPathResponse200ValueFailureModuleSleepType1Type): - """ - - expr: str - type: GetFlowByPathResponse200ValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathResponse200ValueFailureModuleSleepType1Type(d.pop("type")) - - - - - get_flow_by_path_response_200_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_response_200_value_failure_module_sleep_type_1.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index 07043d2db8..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_stop_after_if.py deleted file mode 100644 index e301b0dc95..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleStopAfterIf") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_flow_by_path_response_200_value_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_flow_by_path_response_200_value_failure_module_stop_after_if.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend.py deleted file mode 100644 index 34cc5fede9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1 import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_resume_form import GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0 import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleSuspend") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0', - 'GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0', 'GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1 import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_resume_form import GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0 import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1 import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_resume_form import GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0 import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0', 'GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_flow_by_path_response_200_value_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_flow_by_path_response_200_value_failure_module_suspend.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_resume_form.py deleted file mode 100644 index 4fe0a2763c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema import GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema import GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema import GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - get_flow_by_path_response_200_value_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - get_flow_by_path_response_200_value_failure_module_suspend_resume_form.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index fef423a9ad..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema = cls( - ) - - get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 0ff721405c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0_type import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 8c2cd642e5..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 4ff2888bc7..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1_type import GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 3516cafb38..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item.py deleted file mode 100644 index 52b6489dab..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_0 import GetFlowByPathResponse200ValueModulesItemSleepType0 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend import GetFlowByPathResponse200ValueModulesItemSuspend - from ..models.get_flow_by_path_response_200_value_modules_item_retry import GetFlowByPathResponse200ValueModulesItemRetry - from ..models.get_flow_by_path_response_200_value_modules_item_stop_after_if import GetFlowByPathResponse200ValueModulesItemStopAfterIf - from ..models.get_flow_by_path_response_200_value_modules_item_mock import GetFlowByPathResponse200ValueModulesItemMock - from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_1 import GetFlowByPathResponse200ValueModulesItemSleepType1 - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItem") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetFlowByPathResponse200ValueModulesItemStopAfterIf]): - sleep (Union['GetFlowByPathResponse200ValueModulesItemSleepType0', - 'GetFlowByPathResponse200ValueModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetFlowByPathResponse200ValueModulesItemMock]): - suspend (Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetFlowByPathResponse200ValueModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemStopAfterIf'] = UNSET - sleep: Union['GetFlowByPathResponse200ValueModulesItemSleepType0', 'GetFlowByPathResponse200ValueModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemMock'] = UNSET - suspend: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_0 import GetFlowByPathResponse200ValueModulesItemSleepType0 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend import GetFlowByPathResponse200ValueModulesItemSuspend - from ..models.get_flow_by_path_response_200_value_modules_item_retry import GetFlowByPathResponse200ValueModulesItemRetry - from ..models.get_flow_by_path_response_200_value_modules_item_stop_after_if import GetFlowByPathResponse200ValueModulesItemStopAfterIf - from ..models.get_flow_by_path_response_200_value_modules_item_mock import GetFlowByPathResponse200ValueModulesItemMock - from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_1 import GetFlowByPathResponse200ValueModulesItemSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetFlowByPathResponse200ValueModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_0 import GetFlowByPathResponse200ValueModulesItemSleepType0 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend import GetFlowByPathResponse200ValueModulesItemSuspend - from ..models.get_flow_by_path_response_200_value_modules_item_retry import GetFlowByPathResponse200ValueModulesItemRetry - from ..models.get_flow_by_path_response_200_value_modules_item_stop_after_if import GetFlowByPathResponse200ValueModulesItemStopAfterIf - from ..models.get_flow_by_path_response_200_value_modules_item_mock import GetFlowByPathResponse200ValueModulesItemMock - from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_1 import GetFlowByPathResponse200ValueModulesItemSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetFlowByPathResponse200ValueModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetFlowByPathResponse200ValueModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetFlowByPathResponse200ValueModulesItemSleepType0', 'GetFlowByPathResponse200ValueModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetFlowByPathResponse200ValueModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetFlowByPathResponse200ValueModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetFlowByPathResponse200ValueModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetFlowByPathResponse200ValueModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetFlowByPathResponse200ValueModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetFlowByPathResponse200ValueModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetFlowByPathResponse200ValueModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetFlowByPathResponse200ValueModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetFlowByPathResponse200ValueModulesItemRetry.from_dict(_retry) - - - - - get_flow_by_path_response_200_value_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_flow_by_path_response_200_value_modules_item.additional_properties = d - return get_flow_by_path_response_200_value_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_mock.py deleted file mode 100644 index f2fbe47b17..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemMock") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_flow_by_path_response_200_value_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_flow_by_path_response_200_value_modules_item_mock.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry.py deleted file mode 100644 index 90b28e7d59..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_modules_item_retry_constant import GetFlowByPathResponse200ValueModulesItemRetryConstant - from ..models.get_flow_by_path_response_200_value_modules_item_retry_exponential import GetFlowByPathResponse200ValueModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemRetry") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemRetry: - """ - Attributes: - constant (Union[Unset, GetFlowByPathResponse200ValueModulesItemRetryConstant]): - exponential (Union[Unset, GetFlowByPathResponse200ValueModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_modules_item_retry_constant import GetFlowByPathResponse200ValueModulesItemRetryConstant - from ..models.get_flow_by_path_response_200_value_modules_item_retry_exponential import GetFlowByPathResponse200ValueModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_modules_item_retry_constant import GetFlowByPathResponse200ValueModulesItemRetryConstant - from ..models.get_flow_by_path_response_200_value_modules_item_retry_exponential import GetFlowByPathResponse200ValueModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetFlowByPathResponse200ValueModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetFlowByPathResponse200ValueModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetFlowByPathResponse200ValueModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetFlowByPathResponse200ValueModulesItemRetryExponential.from_dict(_exponential) - - - - - get_flow_by_path_response_200_value_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_flow_by_path_response_200_value_modules_item_retry.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry_constant.py deleted file mode 100644 index 3629b6399a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemRetryConstant") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_flow_by_path_response_200_value_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_flow_by_path_response_200_value_modules_item_retry_constant.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry_exponential.py deleted file mode 100644 index 9edd43cbad..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemRetryExponential") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_flow_by_path_response_200_value_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_flow_by_path_response_200_value_modules_item_retry_exponential.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_0.py deleted file mode 100644 index 06fb8b5381..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_0_type import GetFlowByPathResponse200ValueModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemSleepType0") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemSleepType0: - """ - Attributes: - type (GetFlowByPathResponse200ValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathResponse200ValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathResponse200ValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_response_200_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_response_200_value_modules_item_sleep_type_0.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index 093135c7d2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_1.py deleted file mode 100644 index d46c392d31..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_response_200_value_modules_item_sleep_type_1_type import GetFlowByPathResponse200ValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemSleepType1") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (GetFlowByPathResponse200ValueModulesItemSleepType1Type): - """ - - expr: str - type: GetFlowByPathResponse200ValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathResponse200ValueModulesItemSleepType1Type(d.pop("type")) - - - - - get_flow_by_path_response_200_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_response_200_value_modules_item_sleep_type_1.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index 787a901317..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_stop_after_if.py deleted file mode 100644 index 8226cee641..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemStopAfterIf") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_flow_by_path_response_200_value_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_flow_by_path_response_200_value_modules_item_stop_after_if.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend.py deleted file mode 100644 index 2fa31f148c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0 import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1 import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_resume_form import GetFlowByPathResponse200ValueModulesItemSuspendResumeForm - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemSuspend") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0', - 'GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0', 'GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0 import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1 import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_resume_form import GetFlowByPathResponse200ValueModulesItemSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0 import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1 import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_resume_form import GetFlowByPathResponse200ValueModulesItemSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetFlowByPathResponse200ValueModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0', 'GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_flow_by_path_response_200_value_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_flow_by_path_response_200_value_modules_item_suspend.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_resume_form.py deleted file mode 100644 index 64eea68f70..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema import GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemSuspendResumeForm") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema import GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema import GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - get_flow_by_path_response_200_value_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - get_flow_by_path_response_200_value_modules_item_suspend_resume_form.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 0e51163451..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema = cls( - ) - - get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 3dd457170b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0_type import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index ae9bbb70e5..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index bbbb06d852..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1_type import GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index e4f83a46b2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_response_200_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathResponse200ValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200.py deleted file mode 100644 index 4c6b580fb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft import GetFlowByPathWithDraftResponse200Draft - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200: - """ - Attributes: - draft (Union[Unset, GetFlowByPathWithDraftResponse200Draft]): - """ - - draft: Union[Unset, 'GetFlowByPathWithDraftResponse200Draft'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft import GetFlowByPathWithDraftResponse200Draft - draft: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.draft, Unset): - draft = self.draft.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if draft is not UNSET: - field_dict["draft"] = draft - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft import GetFlowByPathWithDraftResponse200Draft - d = src_dict.copy() - _draft = d.pop("draft", UNSET) - draft: Union[Unset, GetFlowByPathWithDraftResponse200Draft] - if isinstance(_draft, Unset): - draft = UNSET - else: - draft = GetFlowByPathWithDraftResponse200Draft.from_dict(_draft) - - - - - get_flow_by_path_with_draft_response_200 = cls( - draft=draft, - ) - - get_flow_by_path_with_draft_response_200.additional_properties = d - return get_flow_by_path_with_draft_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft.py deleted file mode 100644 index f8178debce..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft.py +++ /dev/null @@ -1,239 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_extra_perms import GetFlowByPathWithDraftResponse200DraftExtraPerms - from ..models.get_flow_by_path_with_draft_response_200_draft_value import GetFlowByPathWithDraftResponse200DraftValue - from ..models.get_flow_by_path_with_draft_response_200_draft_schema import GetFlowByPathWithDraftResponse200DraftSchema - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200Draft") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200Draft: - """ - Attributes: - summary (str): - value (GetFlowByPathWithDraftResponse200DraftValue): - path (str): - edited_by (str): - edited_at (datetime.datetime): - archived (bool): - extra_perms (GetFlowByPathWithDraftResponse200DraftExtraPerms): - description (Union[Unset, str]): - schema (Union[Unset, GetFlowByPathWithDraftResponse200DraftSchema]): - workspace_id (Union[Unset, str]): - additional_properties (Union[Unset, bool]): - starred (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - tag (Union[Unset, str]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - dedicated_worker (Union[Unset, bool]): - timeout (Union[Unset, float]): - """ - - summary: str - value: 'GetFlowByPathWithDraftResponse200DraftValue' - path: str - edited_by: str - edited_at: datetime.datetime - archived: bool - extra_perms: 'GetFlowByPathWithDraftResponse200DraftExtraPerms' - description: Union[Unset, str] = UNSET - schema: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftSchema'] = UNSET - workspace_id: Union[Unset, str] = UNSET - additional_properties: Union[Unset, bool] = UNSET - starred: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - timeout: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_extra_perms import GetFlowByPathWithDraftResponse200DraftExtraPerms - from ..models.get_flow_by_path_with_draft_response_200_draft_value import GetFlowByPathWithDraftResponse200DraftValue - from ..models.get_flow_by_path_with_draft_response_200_draft_schema import GetFlowByPathWithDraftResponse200DraftSchema - summary = self.summary - value = self.value.to_dict() - - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - archived = self.archived - extra_perms = self.extra_perms.to_dict() - - description = self.description - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - workspace_id = self.workspace_id - additional_properties = self.additional_properties - starred = self.starred - draft_only = self.draft_only - tag = self.tag - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - dedicated_worker = self.dedicated_worker - timeout = self.timeout - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "summary": summary, - "value": value, - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "archived": archived, - "extra_perms": extra_perms, - }) - if description is not UNSET: - field_dict["description"] = description - if schema is not UNSET: - field_dict["schema"] = schema - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if additional_properties is not UNSET: - field_dict["additionalProperties"] = additional_properties - if starred is not UNSET: - field_dict["starred"] = starred - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if tag is not UNSET: - field_dict["tag"] = tag - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if timeout is not UNSET: - field_dict["timeout"] = timeout - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_extra_perms import GetFlowByPathWithDraftResponse200DraftExtraPerms - from ..models.get_flow_by_path_with_draft_response_200_draft_value import GetFlowByPathWithDraftResponse200DraftValue - from ..models.get_flow_by_path_with_draft_response_200_draft_schema import GetFlowByPathWithDraftResponse200DraftSchema - d = src_dict.copy() - summary = d.pop("summary") - - value = GetFlowByPathWithDraftResponse200DraftValue.from_dict(d.pop("value")) - - - - - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - archived = d.pop("archived") - - extra_perms = GetFlowByPathWithDraftResponse200DraftExtraPerms.from_dict(d.pop("extra_perms")) - - - - - description = d.pop("description", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetFlowByPathWithDraftResponse200DraftSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetFlowByPathWithDraftResponse200DraftSchema.from_dict(_schema) - - - - - workspace_id = d.pop("workspace_id", UNSET) - - additional_properties = d.pop("additionalProperties", UNSET) - - starred = d.pop("starred", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - tag = d.pop("tag", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - timeout = d.pop("timeout", UNSET) - - get_flow_by_path_with_draft_response_200_draft = cls( - summary=summary, - value=value, - path=path, - edited_by=edited_by, - edited_at=edited_at, - archived=archived, - extra_perms=extra_perms, - description=description, - schema=schema, - workspace_id=workspace_id, - additional_properties=additional_properties, - starred=starred, - draft_only=draft_only, - tag=tag, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - dedicated_worker=dedicated_worker, - timeout=timeout, - ) - - get_flow_by_path_with_draft_response_200_draft.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_extra_perms.py deleted file mode 100644 index 8581c65a9c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_extra_perms.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftExtraPerms") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftExtraPerms: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_with_draft_response_200_draft_extra_perms = cls( - ) - - get_flow_by_path_with_draft_response_200_draft_extra_perms.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_schema.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_schema.py deleted file mode 100644 index c76d51714e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftSchema") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_with_draft_response_200_draft_schema = cls( - ) - - get_flow_by_path_with_draft_response_200_draft_schema.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value.py deleted file mode 100644 index 42f2cc703c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module import GetFlowByPathWithDraftResponse200DraftValueFailureModule - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item import GetFlowByPathWithDraftResponse200DraftValueModulesItem - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValue") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValue: - """ - Attributes: - modules (List['GetFlowByPathWithDraftResponse200DraftValueModulesItem']): - failure_module (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['GetFlowByPathWithDraftResponse200DraftValueModulesItem'] - failure_module: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module import GetFlowByPathWithDraftResponse200DraftValueFailureModule - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item import GetFlowByPathWithDraftResponse200DraftValueModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module import GetFlowByPathWithDraftResponse200DraftValueFailureModule - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item import GetFlowByPathWithDraftResponse200DraftValueModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = GetFlowByPathWithDraftResponse200DraftValueModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = GetFlowByPathWithDraftResponse200DraftValueFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - get_flow_by_path_with_draft_response_200_draft_value.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module.py deleted file mode 100644 index f04eb2d726..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock import GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if import GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModule") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf]): - sleep (Union['GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0', - 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock]): - suspend (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf'] = UNSET - sleep: Union['GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0', 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock'] = UNSET - suspend: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock import GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if import GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock import GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if import GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0', 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry.from_dict(_retry) - - - - - get_flow_by_path_with_draft_response_200_draft_value_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock.py deleted file mode 100644 index 5e75e8ae6c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry.py deleted file mode 100644 index e364f8a739..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant]): - exponential (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential import GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential.from_dict(_exponential) - - - - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant.py deleted file mode 100644 index be9c3aa766..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential.py deleted file mode 100644 index 09d8c7a7ba..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0.py deleted file mode 100644 index f5bc8dc4b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0_type import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0: - """ - Attributes: - type (GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index bf4158e6d6..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1.py deleted file mode 100644 index 9843f5b574..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1_type import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1Type): - """ - - expr: str - type: GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1Type(d.pop("type")) - - - - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index 93c9abe7da..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if.py deleted file mode 100644 index d6d8151c94..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend.py deleted file mode 100644 index d28760db7c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend.py +++ /dev/null @@ -1,178 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required - (Union['GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0', - 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0', 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1 import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0', 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form.py deleted file mode 100644 index f1efe59f61..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index d0f781555b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema = cls( - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index aa51c8c24b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0_type import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 0c8e1d3b88..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 04923d9821..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1_type import GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index f1e8e87d65..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item.py deleted file mode 100644 index ccdc371c02..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if import GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock import GetFlowByPathWithDraftResponse200DraftValueModulesItemMock - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItem") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf]): - sleep (Union['GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0', - 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemMock]): - suspend (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf'] = UNSET - sleep: Union['GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0', 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemMock'] = UNSET - suspend: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if import GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock import GetFlowByPathWithDraftResponse200DraftValueModulesItemMock - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if import GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock import GetFlowByPathWithDraftResponse200DraftValueModulesItemMock - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0', 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetFlowByPathWithDraftResponse200DraftValueModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry.from_dict(_retry) - - - - - get_flow_by_path_with_draft_response_200_draft_value_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock.py deleted file mode 100644 index 090aa81399..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemMock") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry.py deleted file mode 100644 index 2e3f8a7f68..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemRetry: - """ - Attributes: - constant (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant]): - exponential (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant import GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential.from_dict(_exponential) - - - - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant.py deleted file mode 100644 index e3133976de..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential.py deleted file mode 100644 index 861d036ee3..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0.py deleted file mode 100644 index 969228ef87..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0_type import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0: - """ - Attributes: - type (GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index 01c8590151..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1.py deleted file mode 100644 index fd4c4ef5ea..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1_type import GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1Type): - """ - - expr: str - type: GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1Type(d.pop("type")) - - - - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index b9568034b6..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if.py deleted file mode 100644 index 4157ecdeb0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend.py deleted file mode 100644 index f4e1419648..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend.py +++ /dev/null @@ -1,178 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required - (Union['GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0', - 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0', 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1 import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0', 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form.py deleted file mode 100644 index e3c235e102..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 441a6aef8f..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema = cls( - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index c04014f8d0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0_type import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index e39c9d2a83..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index eb5a969c7e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1_type import GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 58b19365e3..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetFlowByPathWithDraftResponse200DraftValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_flow_input_history_by_path_response_200_item.py b/python-client/windmill-api/windmill_api/models/get_flow_input_history_by_path_response_200_item.py deleted file mode 100644 index df0d590c5f..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_input_history_by_path_response_200_item.py +++ /dev/null @@ -1,131 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_flow_input_history_by_path_response_200_item_args import GetFlowInputHistoryByPathResponse200ItemArgs - - - - - -T = TypeVar("T", bound="GetFlowInputHistoryByPathResponse200Item") - - -@_attrs_define -class GetFlowInputHistoryByPathResponse200Item: - """ - Attributes: - id (str): - name (str): - args (GetFlowInputHistoryByPathResponse200ItemArgs): - created_by (str): - created_at (datetime.datetime): - is_public (bool): - success (Union[Unset, bool]): - """ - - id: str - name: str - args: 'GetFlowInputHistoryByPathResponse200ItemArgs' - created_by: str - created_at: datetime.datetime - is_public: bool - success: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_flow_input_history_by_path_response_200_item_args import GetFlowInputHistoryByPathResponse200ItemArgs - id = self.id - name = self.name - args = self.args.to_dict() - - created_by = self.created_by - created_at = self.created_at.isoformat() - - is_public = self.is_public - success = self.success - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "args": args, - "created_by": created_by, - "created_at": created_at, - "is_public": is_public, - }) - if success is not UNSET: - field_dict["success"] = success - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_flow_input_history_by_path_response_200_item_args import GetFlowInputHistoryByPathResponse200ItemArgs - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - args = GetFlowInputHistoryByPathResponse200ItemArgs.from_dict(d.pop("args")) - - - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - is_public = d.pop("is_public") - - success = d.pop("success", UNSET) - - get_flow_input_history_by_path_response_200_item = cls( - id=id, - name=name, - args=args, - created_by=created_by, - created_at=created_at, - is_public=is_public, - success=success, - ) - - get_flow_input_history_by_path_response_200_item.additional_properties = d - return get_flow_input_history_by_path_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_flow_input_history_by_path_response_200_item_args.py b/python-client/windmill-api/windmill_api/models/get_flow_input_history_by_path_response_200_item_args.py deleted file mode 100644 index 3b43da3537..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_flow_input_history_by_path_response_200_item_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFlowInputHistoryByPathResponse200ItemArgs") - - -@_attrs_define -class GetFlowInputHistoryByPathResponse200ItemArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_flow_input_history_by_path_response_200_item_args = cls( - ) - - get_flow_input_history_by_path_response_200_item_args.additional_properties = d - return get_flow_input_history_by_path_response_200_item_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_folder_response_200.py b/python-client/windmill-api/windmill_api/models/get_folder_response_200.py deleted file mode 100644 index 9bcfa887c0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_folder_response_200.py +++ /dev/null @@ -1,100 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_folder_response_200_extra_perms import GetFolderResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetFolderResponse200") - - -@_attrs_define -class GetFolderResponse200: - """ - Attributes: - name (str): - owners (List[str]): - extra_perms (GetFolderResponse200ExtraPerms): - """ - - name: str - owners: List[str] - extra_perms: 'GetFolderResponse200ExtraPerms' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_folder_response_200_extra_perms import GetFolderResponse200ExtraPerms - name = self.name - owners = self.owners - - - - - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "owners": owners, - "extra_perms": extra_perms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_folder_response_200_extra_perms import GetFolderResponse200ExtraPerms - d = src_dict.copy() - name = d.pop("name") - - owners = cast(List[str], d.pop("owners")) - - - extra_perms = GetFolderResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - get_folder_response_200 = cls( - name=name, - owners=owners, - extra_perms=extra_perms, - ) - - get_folder_response_200.additional_properties = d - return get_folder_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_folder_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_folder_response_200_extra_perms.py deleted file mode 100644 index cae00a392e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_folder_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFolderResponse200ExtraPerms") - - -@_attrs_define -class GetFolderResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_folder_response_200_extra_perms = cls( - ) - - - get_folder_response_200_extra_perms.additional_properties = d - return get_folder_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_folder_usage_response_200.py b/python-client/windmill-api/windmill_api/models/get_folder_usage_response_200.py deleted file mode 100644 index 7175ad73ec..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_folder_usage_response_200.py +++ /dev/null @@ -1,105 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetFolderUsageResponse200") - - -@_attrs_define -class GetFolderUsageResponse200: - """ - Attributes: - scripts (float): - flows (float): - apps (float): - resources (float): - variables (float): - schedules (float): - """ - - scripts: float - flows: float - apps: float - resources: float - variables: float - schedules: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - scripts = self.scripts - flows = self.flows - apps = self.apps - resources = self.resources - variables = self.variables - schedules = self.schedules - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "scripts": scripts, - "flows": flows, - "apps": apps, - "resources": resources, - "variables": variables, - "schedules": schedules, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - scripts = d.pop("scripts") - - flows = d.pop("flows") - - apps = d.pop("apps") - - resources = d.pop("resources") - - variables = d.pop("variables") - - schedules = d.pop("schedules") - - get_folder_usage_response_200 = cls( - scripts=scripts, - flows=flows, - apps=apps, - resources=resources, - variables=variables, - schedules=schedules, - ) - - get_folder_usage_response_200.additional_properties = d - return get_folder_usage_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_granular_acls_kind.py b/python-client/windmill-api/windmill_api/models/get_granular_acls_kind.py deleted file mode 100644 index 7c8c96bef9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_granular_acls_kind.py +++ /dev/null @@ -1,15 +0,0 @@ -from enum import Enum - -class GetGranularAclsKind(str, Enum): - APP = "app" - FLOW = "flow" - FOLDER = "folder" - GROUP = "group_" - RAW_APP = "raw_app" - RESOURCE = "resource" - SCHEDULE = "schedule" - SCRIPT = "script" - VARIABLE = "variable" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_granular_acls_response_200.py b/python-client/windmill-api/windmill_api/models/get_granular_acls_response_200.py deleted file mode 100644 index 789c07b18d..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_granular_acls_response_200.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetGranularAclsResponse200") - - -@_attrs_define -class GetGranularAclsResponse200: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_granular_acls_response_200 = cls( - ) - - - get_granular_acls_response_200.additional_properties = d - return get_granular_acls_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_group_response_200.py b/python-client/windmill-api/windmill_api/models/get_group_response_200.py deleted file mode 100644 index a48ecf40f0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_group_response_200.py +++ /dev/null @@ -1,121 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_group_response_200_extra_perms import GetGroupResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetGroupResponse200") - - -@_attrs_define -class GetGroupResponse200: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - members (Union[Unset, List[str]]): - extra_perms (Union[Unset, GetGroupResponse200ExtraPerms]): - """ - - name: str - summary: Union[Unset, str] = UNSET - members: Union[Unset, List[str]] = UNSET - extra_perms: Union[Unset, 'GetGroupResponse200ExtraPerms'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_group_response_200_extra_perms import GetGroupResponse200ExtraPerms - name = self.name - summary = self.summary - members: Union[Unset, List[str]] = UNSET - if not isinstance(self.members, Unset): - members = self.members - - - - - extra_perms: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_perms, Unset): - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - if members is not UNSET: - field_dict["members"] = members - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_group_response_200_extra_perms import GetGroupResponse200ExtraPerms - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - members = cast(List[str], d.pop("members", UNSET)) - - - _extra_perms = d.pop("extra_perms", UNSET) - extra_perms: Union[Unset, GetGroupResponse200ExtraPerms] - if isinstance(_extra_perms, Unset): - extra_perms = UNSET - else: - extra_perms = GetGroupResponse200ExtraPerms.from_dict(_extra_perms) - - - - - get_group_response_200 = cls( - name=name, - summary=summary, - members=members, - extra_perms=extra_perms, - ) - - get_group_response_200.additional_properties = d - return get_group_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_group_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_group_response_200_extra_perms.py deleted file mode 100644 index 0678b4d5d1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_group_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetGroupResponse200ExtraPerms") - - -@_attrs_define -class GetGroupResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_group_response_200_extra_perms = cls( - ) - - - get_group_response_200_extra_perms.additional_properties = d - return get_group_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_app_by_id_response_200.py b/python-client/windmill-api/windmill_api/models/get_hub_app_by_id_response_200.py deleted file mode 100644 index c799181e5e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_app_by_id_response_200.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_hub_app_by_id_response_200_app import GetHubAppByIdResponse200App - - - - - -T = TypeVar("T", bound="GetHubAppByIdResponse200") - - -@_attrs_define -class GetHubAppByIdResponse200: - """ - Attributes: - app (GetHubAppByIdResponse200App): - """ - - app: 'GetHubAppByIdResponse200App' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_app_by_id_response_200_app import GetHubAppByIdResponse200App - app = self.app.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "app": app, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_app_by_id_response_200_app import GetHubAppByIdResponse200App - d = src_dict.copy() - app = GetHubAppByIdResponse200App.from_dict(d.pop("app")) - - - - - get_hub_app_by_id_response_200 = cls( - app=app, - ) - - get_hub_app_by_id_response_200.additional_properties = d - return get_hub_app_by_id_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_app_by_id_response_200_app.py b/python-client/windmill-api/windmill_api/models/get_hub_app_by_id_response_200_app.py deleted file mode 100644 index 9b3453bd4a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_app_by_id_response_200_app.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetHubAppByIdResponse200App") - - -@_attrs_define -class GetHubAppByIdResponse200App: - """ - Attributes: - summary (str): - value (Any): - """ - - summary: str - value: Any - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - summary = self.summary - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "summary": summary, - "value": value, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - summary = d.pop("summary") - - value = d.pop("value") - - get_hub_app_by_id_response_200_app = cls( - summary=summary, - value=value, - ) - - get_hub_app_by_id_response_200_app.additional_properties = d - return get_hub_app_by_id_response_200_app - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200.py deleted file mode 100644 index 8aca84e3d0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow import GetHubFlowByIdResponse200Flow - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200") - - -@_attrs_define -class GetHubFlowByIdResponse200: - """ - Attributes: - flow (Union[Unset, GetHubFlowByIdResponse200Flow]): - """ - - flow: Union[Unset, 'GetHubFlowByIdResponse200Flow'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow import GetHubFlowByIdResponse200Flow - flow: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.flow, Unset): - flow = self.flow.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if flow is not UNSET: - field_dict["flow"] = flow - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow import GetHubFlowByIdResponse200Flow - d = src_dict.copy() - _flow = d.pop("flow", UNSET) - flow: Union[Unset, GetHubFlowByIdResponse200Flow] - if isinstance(_flow, Unset): - flow = UNSET - else: - flow = GetHubFlowByIdResponse200Flow.from_dict(_flow) - - - - - get_hub_flow_by_id_response_200 = cls( - flow=flow, - ) - - get_hub_flow_by_id_response_200.additional_properties = d - return get_hub_flow_by_id_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow.py deleted file mode 100644 index 2ca6e96f4f..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow.py +++ /dev/null @@ -1,119 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value import GetHubFlowByIdResponse200FlowValue - from ..models.get_hub_flow_by_id_response_200_flow_schema import GetHubFlowByIdResponse200FlowSchema - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200Flow") - - -@_attrs_define -class GetHubFlowByIdResponse200Flow: - """ - Attributes: - summary (str): - value (GetHubFlowByIdResponse200FlowValue): - description (Union[Unset, str]): - schema (Union[Unset, GetHubFlowByIdResponse200FlowSchema]): - """ - - summary: str - value: 'GetHubFlowByIdResponse200FlowValue' - description: Union[Unset, str] = UNSET - schema: Union[Unset, 'GetHubFlowByIdResponse200FlowSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value import GetHubFlowByIdResponse200FlowValue - from ..models.get_hub_flow_by_id_response_200_flow_schema import GetHubFlowByIdResponse200FlowSchema - summary = self.summary - value = self.value.to_dict() - - description = self.description - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "summary": summary, - "value": value, - }) - if description is not UNSET: - field_dict["description"] = description - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value import GetHubFlowByIdResponse200FlowValue - from ..models.get_hub_flow_by_id_response_200_flow_schema import GetHubFlowByIdResponse200FlowSchema - d = src_dict.copy() - summary = d.pop("summary") - - value = GetHubFlowByIdResponse200FlowValue.from_dict(d.pop("value")) - - - - - description = d.pop("description", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetHubFlowByIdResponse200FlowSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetHubFlowByIdResponse200FlowSchema.from_dict(_schema) - - - - - get_hub_flow_by_id_response_200_flow = cls( - summary=summary, - value=value, - description=description, - schema=schema, - ) - - get_hub_flow_by_id_response_200_flow.additional_properties = d - return get_hub_flow_by_id_response_200_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_schema.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_schema.py deleted file mode 100644 index def71ee544..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowSchema") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_hub_flow_by_id_response_200_flow_schema = cls( - ) - - get_hub_flow_by_id_response_200_flow_schema.additional_properties = d - return get_hub_flow_by_id_response_200_flow_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value.py deleted file mode 100644 index 3fce9b83b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item import GetHubFlowByIdResponse200FlowValueModulesItem - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module import GetHubFlowByIdResponse200FlowValueFailureModule - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValue") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValue: - """ - Attributes: - modules (List['GetHubFlowByIdResponse200FlowValueModulesItem']): - failure_module (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['GetHubFlowByIdResponse200FlowValueModulesItem'] - failure_module: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item import GetHubFlowByIdResponse200FlowValueModulesItem - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module import GetHubFlowByIdResponse200FlowValueFailureModule - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item import GetHubFlowByIdResponse200FlowValueModulesItem - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module import GetHubFlowByIdResponse200FlowValueFailureModule - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = GetHubFlowByIdResponse200FlowValueModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = GetHubFlowByIdResponse200FlowValueFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - get_hub_flow_by_id_response_200_flow_value = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - get_hub_flow_by_id_response_200_flow_value.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module.py deleted file mode 100644 index 47b35e89b2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1 import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend import GetHubFlowByIdResponse200FlowValueFailureModuleSuspend - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if import GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0 import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_mock import GetHubFlowByIdResponse200FlowValueFailureModuleMock - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry import GetHubFlowByIdResponse200FlowValueFailureModuleRetry - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModule") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf]): - sleep (Union['GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0', - 'GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleMock]): - suspend (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf'] = UNSET - sleep: Union['GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0', 'GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleMock'] = UNSET - suspend: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1 import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend import GetHubFlowByIdResponse200FlowValueFailureModuleSuspend - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if import GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0 import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_mock import GetHubFlowByIdResponse200FlowValueFailureModuleMock - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry import GetHubFlowByIdResponse200FlowValueFailureModuleRetry - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1 import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend import GetHubFlowByIdResponse200FlowValueFailureModuleSuspend - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if import GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0 import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_mock import GetHubFlowByIdResponse200FlowValueFailureModuleMock - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry import GetHubFlowByIdResponse200FlowValueFailureModuleRetry - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0', 'GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetHubFlowByIdResponse200FlowValueFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetHubFlowByIdResponse200FlowValueFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetHubFlowByIdResponse200FlowValueFailureModuleRetry.from_dict(_retry) - - - - - get_hub_flow_by_id_response_200_flow_value_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_mock.py deleted file mode 100644 index d65d823c6a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleMock") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_hub_flow_by_id_response_200_flow_value_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_mock.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry.py deleted file mode 100644 index e7d7cf18f5..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential import GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant import GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleRetry") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant]): - exponential (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential import GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant import GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential import GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant import GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential.from_dict(_exponential) - - - - - get_hub_flow_by_id_response_200_flow_value_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_retry.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant.py deleted file mode 100644 index f315f32734..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential.py deleted file mode 100644 index d4fab5c358..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0.py deleted file mode 100644 index 86ec6784a4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0_type import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0: - """ - Attributes: - type (GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index 1364f02f2c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1.py deleted file mode 100644 index 367f836269..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1_type import GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1Type): - """ - - expr: str - type: GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1Type(d.pop("type")) - - - - - get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index 287e8527ee..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if.py deleted file mode 100644 index 8abf1ce154..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend.py deleted file mode 100644 index abdb1c6fc6..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1 import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0 import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleSuspend") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0', - 'GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0', 'GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1 import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0 import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1 import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0 import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0', 'GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form.py deleted file mode 100644 index 059c47e1c6..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index b080b6840c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema = cls( - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 86c4a66832..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0_type import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index a8ff343120..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 0e15353194..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1_type import GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 5111ce0ac1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item.py deleted file mode 100644 index 834104f2e1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend import GetHubFlowByIdResponse200FlowValueModulesItemSuspend - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_mock import GetHubFlowByIdResponse200FlowValueModulesItemMock - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if import GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0 import GetHubFlowByIdResponse200FlowValueModulesItemSleepType0 - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry import GetHubFlowByIdResponse200FlowValueModulesItemRetry - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1 import GetHubFlowByIdResponse200FlowValueModulesItemSleepType1 - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItem") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf]): - sleep (Union['GetHubFlowByIdResponse200FlowValueModulesItemSleepType0', - 'GetHubFlowByIdResponse200FlowValueModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemMock]): - suspend (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf'] = UNSET - sleep: Union['GetHubFlowByIdResponse200FlowValueModulesItemSleepType0', 'GetHubFlowByIdResponse200FlowValueModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemMock'] = UNSET - suspend: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend import GetHubFlowByIdResponse200FlowValueModulesItemSuspend - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_mock import GetHubFlowByIdResponse200FlowValueModulesItemMock - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if import GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0 import GetHubFlowByIdResponse200FlowValueModulesItemSleepType0 - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry import GetHubFlowByIdResponse200FlowValueModulesItemRetry - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1 import GetHubFlowByIdResponse200FlowValueModulesItemSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, GetHubFlowByIdResponse200FlowValueModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend import GetHubFlowByIdResponse200FlowValueModulesItemSuspend - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_mock import GetHubFlowByIdResponse200FlowValueModulesItemMock - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if import GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0 import GetHubFlowByIdResponse200FlowValueModulesItemSleepType0 - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry import GetHubFlowByIdResponse200FlowValueModulesItemRetry - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1 import GetHubFlowByIdResponse200FlowValueModulesItemSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['GetHubFlowByIdResponse200FlowValueModulesItemSleepType0', 'GetHubFlowByIdResponse200FlowValueModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = GetHubFlowByIdResponse200FlowValueModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = GetHubFlowByIdResponse200FlowValueModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = GetHubFlowByIdResponse200FlowValueModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = GetHubFlowByIdResponse200FlowValueModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetHubFlowByIdResponse200FlowValueModulesItemRetry.from_dict(_retry) - - - - - get_hub_flow_by_id_response_200_flow_value_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_mock.py deleted file mode 100644 index 4f924f16cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemMock") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - get_hub_flow_by_id_response_200_flow_value_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_mock.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry.py deleted file mode 100644 index 68ae7408c2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant import GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential import GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemRetry") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemRetry: - """ - Attributes: - constant (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant]): - exponential (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant import GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential import GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant import GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential import GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential.from_dict(_exponential) - - - - - get_hub_flow_by_id_response_200_flow_value_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_retry.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant.py deleted file mode 100644 index 7e25aabdcd..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential.py deleted file mode 100644 index 8daab18217..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0.py deleted file mode 100644 index 60107fd5f2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0_type import GetHubFlowByIdResponse200FlowValueModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemSleepType0") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemSleepType0: - """ - Attributes: - type (GetHubFlowByIdResponse200FlowValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: GetHubFlowByIdResponse200FlowValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetHubFlowByIdResponse200FlowValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index 213d8b3567..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1.py deleted file mode 100644 index ef294cf1d1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1_type import GetHubFlowByIdResponse200FlowValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemSleepType1") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (GetHubFlowByIdResponse200FlowValueModulesItemSleepType1Type): - """ - - expr: str - type: GetHubFlowByIdResponse200FlowValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetHubFlowByIdResponse200FlowValueModulesItemSleepType1Type(d.pop("type")) - - - - - get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index 37954911ec..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if.py deleted file mode 100644 index e5302e6ffc..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend.py deleted file mode 100644 index 44c41794b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form import GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1 import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0 import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemSuspend") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0', - 'GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0', 'GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form import GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1 import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0 import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form import GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1 import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0 import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0', 'GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form.py deleted file mode 100644 index 02ba151278..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema import GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema import GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema import GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index bb5aaf6f09..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema = cls( - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 237d906e3e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0_type import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index e628d72355..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 0abfbc6ccf..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1_type import GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 382fa47fb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_flow_by_id_response_200_flow_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetHubFlowByIdResponse200FlowValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_hub_script_by_path_response_200.py b/python-client/windmill-api/windmill_api/models/get_hub_script_by_path_response_200.py deleted file mode 100644 index 2b94c9aa2b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_hub_script_by_path_response_200.py +++ /dev/null @@ -1,103 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetHubScriptByPathResponse200") - - -@_attrs_define -class GetHubScriptByPathResponse200: - """ - Attributes: - content (str): - language (str): - lockfile (Union[Unset, str]): - schema (Union[Unset, Any]): - summary (Union[Unset, str]): - """ - - content: str - language: str - lockfile: Union[Unset, str] = UNSET - schema: Union[Unset, Any] = UNSET - summary: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - content = self.content - language = self.language - lockfile = self.lockfile - schema = self.schema - summary = self.summary - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "content": content, - "language": language, - }) - if lockfile is not UNSET: - field_dict["lockfile"] = lockfile - if schema is not UNSET: - field_dict["schema"] = schema - if summary is not UNSET: - field_dict["summary"] = summary - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - content = d.pop("content") - - language = d.pop("language") - - lockfile = d.pop("lockfile", UNSET) - - schema = d.pop("schema", UNSET) - - summary = d.pop("summary", UNSET) - - get_hub_script_by_path_response_200 = cls( - content=content, - language=language, - lockfile=lockfile, - schema=schema, - summary=summary, - ) - - get_hub_script_by_path_response_200.additional_properties = d - return get_hub_script_by_path_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_input_history_response_200_item.py b/python-client/windmill-api/windmill_api/models/get_input_history_response_200_item.py deleted file mode 100644 index ad46339aab..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_input_history_response_200_item.py +++ /dev/null @@ -1,131 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_input_history_response_200_item_args import GetInputHistoryResponse200ItemArgs - - - - - -T = TypeVar("T", bound="GetInputHistoryResponse200Item") - - -@_attrs_define -class GetInputHistoryResponse200Item: - """ - Attributes: - id (str): - name (str): - args (GetInputHistoryResponse200ItemArgs): - created_by (str): - created_at (datetime.datetime): - is_public (bool): - success (Union[Unset, bool]): - """ - - id: str - name: str - args: 'GetInputHistoryResponse200ItemArgs' - created_by: str - created_at: datetime.datetime - is_public: bool - success: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_input_history_response_200_item_args import GetInputHistoryResponse200ItemArgs - id = self.id - name = self.name - args = self.args.to_dict() - - created_by = self.created_by - created_at = self.created_at.isoformat() - - is_public = self.is_public - success = self.success - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "args": args, - "created_by": created_by, - "created_at": created_at, - "is_public": is_public, - }) - if success is not UNSET: - field_dict["success"] = success - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_input_history_response_200_item_args import GetInputHistoryResponse200ItemArgs - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - args = GetInputHistoryResponse200ItemArgs.from_dict(d.pop("args")) - - - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - is_public = d.pop("is_public") - - success = d.pop("success", UNSET) - - get_input_history_response_200_item = cls( - id=id, - name=name, - args=args, - created_by=created_by, - created_at=created_at, - is_public=is_public, - success=success, - ) - - get_input_history_response_200_item.additional_properties = d - return get_input_history_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_input_history_response_200_item_args.py b/python-client/windmill-api/windmill_api/models/get_input_history_response_200_item_args.py deleted file mode 100644 index 91baf6821e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_input_history_response_200_item_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetInputHistoryResponse200ItemArgs") - - -@_attrs_define -class GetInputHistoryResponse200ItemArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_input_history_response_200_item_args = cls( - ) - - get_input_history_response_200_item_args.additional_properties = d - return get_input_history_response_200_item_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_input_history_runnable_type.py b/python-client/windmill-api/windmill_api/models/get_input_history_runnable_type.py deleted file mode 100644 index 9179bc57db..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_input_history_runnable_type.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetInputHistoryRunnableType(str, Enum): - FLOWPATH = "FlowPath" - SCRIPTHASH = "ScriptHash" - SCRIPTPATH = "ScriptPath" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_instance_group_response_200.py b/python-client/windmill-api/windmill_api/models/get_instance_group_response_200.py deleted file mode 100644 index b18ccbbcb0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_instance_group_response_200.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="GetInstanceGroupResponse200") - - -@_attrs_define -class GetInstanceGroupResponse200: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - emails (Union[Unset, List[str]]): - """ - - name: str - summary: Union[Unset, str] = UNSET - emails: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - summary = self.summary - emails: Union[Unset, List[str]] = UNSET - if not isinstance(self.emails, Unset): - emails = self.emails - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - if emails is not UNSET: - field_dict["emails"] = emails - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - emails = cast(List[str], d.pop("emails", UNSET)) - - - get_instance_group_response_200 = cls( - name=name, - summary=summary, - emails=emails, - ) - - get_instance_group_response_200.additional_properties = d - return get_instance_group_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_metrics_json_body.py b/python-client/windmill-api/windmill_api/models/get_job_metrics_json_body.py deleted file mode 100644 index f9bace09ba..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_metrics_json_body.py +++ /dev/null @@ -1,114 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetJobMetricsJsonBody") - - -@_attrs_define -class GetJobMetricsJsonBody: - """ - Attributes: - timeseries_max_datapoints (Union[Unset, int]): - from_timestamp (Union[Unset, datetime.datetime]): - to_timestamp (Union[Unset, datetime.datetime]): - """ - - timeseries_max_datapoints: Union[Unset, int] = UNSET - from_timestamp: Union[Unset, datetime.datetime] = UNSET - to_timestamp: Union[Unset, datetime.datetime] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - timeseries_max_datapoints = self.timeseries_max_datapoints - from_timestamp: Union[Unset, str] = UNSET - if not isinstance(self.from_timestamp, Unset): - from_timestamp = self.from_timestamp.isoformat() - - to_timestamp: Union[Unset, str] = UNSET - if not isinstance(self.to_timestamp, Unset): - to_timestamp = self.to_timestamp.isoformat() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if timeseries_max_datapoints is not UNSET: - field_dict["timeseries_max_datapoints"] = timeseries_max_datapoints - if from_timestamp is not UNSET: - field_dict["from_timestamp"] = from_timestamp - if to_timestamp is not UNSET: - field_dict["to_timestamp"] = to_timestamp - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - timeseries_max_datapoints = d.pop("timeseries_max_datapoints", UNSET) - - _from_timestamp = d.pop("from_timestamp", UNSET) - from_timestamp: Union[Unset, datetime.datetime] - if isinstance(_from_timestamp, Unset): - from_timestamp = UNSET - else: - from_timestamp = isoparse(_from_timestamp) - - - - - _to_timestamp = d.pop("to_timestamp", UNSET) - to_timestamp: Union[Unset, datetime.datetime] - if isinstance(_to_timestamp, Unset): - to_timestamp = UNSET - else: - to_timestamp = isoparse(_to_timestamp) - - - - - get_job_metrics_json_body = cls( - timeseries_max_datapoints=timeseries_max_datapoints, - from_timestamp=from_timestamp, - to_timestamp=to_timestamp, - ) - - get_job_metrics_json_body.additional_properties = d - return get_job_metrics_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200.py b/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200.py deleted file mode 100644 index 65c6582e5e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200.py +++ /dev/null @@ -1,156 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_job_metrics_response_200_scalar_metrics_item import GetJobMetricsResponse200ScalarMetricsItem - from ..models.get_job_metrics_response_200_timeseries_metrics_item import GetJobMetricsResponse200TimeseriesMetricsItem - from ..models.get_job_metrics_response_200_metrics_metadata_item import GetJobMetricsResponse200MetricsMetadataItem - - - - - -T = TypeVar("T", bound="GetJobMetricsResponse200") - - -@_attrs_define -class GetJobMetricsResponse200: - """ - Attributes: - metrics_metadata (Union[Unset, List['GetJobMetricsResponse200MetricsMetadataItem']]): - scalar_metrics (Union[Unset, List['GetJobMetricsResponse200ScalarMetricsItem']]): - timeseries_metrics (Union[Unset, List['GetJobMetricsResponse200TimeseriesMetricsItem']]): - """ - - metrics_metadata: Union[Unset, List['GetJobMetricsResponse200MetricsMetadataItem']] = UNSET - scalar_metrics: Union[Unset, List['GetJobMetricsResponse200ScalarMetricsItem']] = UNSET - timeseries_metrics: Union[Unset, List['GetJobMetricsResponse200TimeseriesMetricsItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_job_metrics_response_200_scalar_metrics_item import GetJobMetricsResponse200ScalarMetricsItem - from ..models.get_job_metrics_response_200_timeseries_metrics_item import GetJobMetricsResponse200TimeseriesMetricsItem - from ..models.get_job_metrics_response_200_metrics_metadata_item import GetJobMetricsResponse200MetricsMetadataItem - metrics_metadata: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.metrics_metadata, Unset): - metrics_metadata = [] - for metrics_metadata_item_data in self.metrics_metadata: - metrics_metadata_item = metrics_metadata_item_data.to_dict() - - metrics_metadata.append(metrics_metadata_item) - - - - - scalar_metrics: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.scalar_metrics, Unset): - scalar_metrics = [] - for scalar_metrics_item_data in self.scalar_metrics: - scalar_metrics_item = scalar_metrics_item_data.to_dict() - - scalar_metrics.append(scalar_metrics_item) - - - - - timeseries_metrics: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.timeseries_metrics, Unset): - timeseries_metrics = [] - for timeseries_metrics_item_data in self.timeseries_metrics: - timeseries_metrics_item = timeseries_metrics_item_data.to_dict() - - timeseries_metrics.append(timeseries_metrics_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if metrics_metadata is not UNSET: - field_dict["metrics_metadata"] = metrics_metadata - if scalar_metrics is not UNSET: - field_dict["scalar_metrics"] = scalar_metrics - if timeseries_metrics is not UNSET: - field_dict["timeseries_metrics"] = timeseries_metrics - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_job_metrics_response_200_scalar_metrics_item import GetJobMetricsResponse200ScalarMetricsItem - from ..models.get_job_metrics_response_200_timeseries_metrics_item import GetJobMetricsResponse200TimeseriesMetricsItem - from ..models.get_job_metrics_response_200_metrics_metadata_item import GetJobMetricsResponse200MetricsMetadataItem - d = src_dict.copy() - metrics_metadata = [] - _metrics_metadata = d.pop("metrics_metadata", UNSET) - for metrics_metadata_item_data in (_metrics_metadata or []): - metrics_metadata_item = GetJobMetricsResponse200MetricsMetadataItem.from_dict(metrics_metadata_item_data) - - - - metrics_metadata.append(metrics_metadata_item) - - - scalar_metrics = [] - _scalar_metrics = d.pop("scalar_metrics", UNSET) - for scalar_metrics_item_data in (_scalar_metrics or []): - scalar_metrics_item = GetJobMetricsResponse200ScalarMetricsItem.from_dict(scalar_metrics_item_data) - - - - scalar_metrics.append(scalar_metrics_item) - - - timeseries_metrics = [] - _timeseries_metrics = d.pop("timeseries_metrics", UNSET) - for timeseries_metrics_item_data in (_timeseries_metrics or []): - timeseries_metrics_item = GetJobMetricsResponse200TimeseriesMetricsItem.from_dict(timeseries_metrics_item_data) - - - - timeseries_metrics.append(timeseries_metrics_item) - - - get_job_metrics_response_200 = cls( - metrics_metadata=metrics_metadata, - scalar_metrics=scalar_metrics, - timeseries_metrics=timeseries_metrics, - ) - - get_job_metrics_response_200.additional_properties = d - return get_job_metrics_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_metrics_metadata_item.py b/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_metrics_metadata_item.py deleted file mode 100644 index e176605fdb..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_metrics_metadata_item.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetJobMetricsResponse200MetricsMetadataItem") - - -@_attrs_define -class GetJobMetricsResponse200MetricsMetadataItem: - """ - Attributes: - id (str): - name (Union[Unset, str]): - """ - - id: str - name: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - }) - if name is not UNSET: - field_dict["name"] = name - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name", UNSET) - - get_job_metrics_response_200_metrics_metadata_item = cls( - id=id, - name=name, - ) - - get_job_metrics_response_200_metrics_metadata_item.additional_properties = d - return get_job_metrics_response_200_metrics_metadata_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_scalar_metrics_item.py b/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_scalar_metrics_item.py deleted file mode 100644 index e2cf84030d..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_scalar_metrics_item.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetJobMetricsResponse200ScalarMetricsItem") - - -@_attrs_define -class GetJobMetricsResponse200ScalarMetricsItem: - """ - Attributes: - value (float): - metric_id (Union[Unset, str]): - """ - - value: float - metric_id: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - value = self.value - metric_id = self.metric_id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "value": value, - }) - if metric_id is not UNSET: - field_dict["metric_id"] = metric_id - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - value = d.pop("value") - - metric_id = d.pop("metric_id", UNSET) - - get_job_metrics_response_200_scalar_metrics_item = cls( - value=value, - metric_id=metric_id, - ) - - get_job_metrics_response_200_scalar_metrics_item.additional_properties = d - return get_job_metrics_response_200_scalar_metrics_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_timeseries_metrics_item.py b/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_timeseries_metrics_item.py deleted file mode 100644 index efa48d78e3..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_timeseries_metrics_item.py +++ /dev/null @@ -1,103 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_job_metrics_response_200_timeseries_metrics_item_values_item import GetJobMetricsResponse200TimeseriesMetricsItemValuesItem - - - - - -T = TypeVar("T", bound="GetJobMetricsResponse200TimeseriesMetricsItem") - - -@_attrs_define -class GetJobMetricsResponse200TimeseriesMetricsItem: - """ - Attributes: - values (List['GetJobMetricsResponse200TimeseriesMetricsItemValuesItem']): - metric_id (Union[Unset, str]): - """ - - values: List['GetJobMetricsResponse200TimeseriesMetricsItemValuesItem'] - metric_id: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_job_metrics_response_200_timeseries_metrics_item_values_item import GetJobMetricsResponse200TimeseriesMetricsItemValuesItem - values = [] - for values_item_data in self.values: - values_item = values_item_data.to_dict() - - values.append(values_item) - - - - - metric_id = self.metric_id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "values": values, - }) - if metric_id is not UNSET: - field_dict["metric_id"] = metric_id - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_job_metrics_response_200_timeseries_metrics_item_values_item import GetJobMetricsResponse200TimeseriesMetricsItemValuesItem - d = src_dict.copy() - values = [] - _values = d.pop("values") - for values_item_data in (_values): - values_item = GetJobMetricsResponse200TimeseriesMetricsItemValuesItem.from_dict(values_item_data) - - - - values.append(values_item) - - - metric_id = d.pop("metric_id", UNSET) - - get_job_metrics_response_200_timeseries_metrics_item = cls( - values=values, - metric_id=metric_id, - ) - - get_job_metrics_response_200_timeseries_metrics_item.additional_properties = d - return get_job_metrics_response_200_timeseries_metrics_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_timeseries_metrics_item_values_item.py b/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_timeseries_metrics_item_values_item.py deleted file mode 100644 index 1687eea1cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_metrics_response_200_timeseries_metrics_item_values_item.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -import datetime -from dateutil.parser import isoparse - - - - - - -T = TypeVar("T", bound="GetJobMetricsResponse200TimeseriesMetricsItemValuesItem") - - -@_attrs_define -class GetJobMetricsResponse200TimeseriesMetricsItemValuesItem: - """ - Attributes: - timestamp (datetime.datetime): - value (float): - """ - - timestamp: datetime.datetime - value: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - timestamp = self.timestamp.isoformat() - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "timestamp": timestamp, - "value": value, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - timestamp = isoparse(d.pop("timestamp")) - - - - - value = d.pop("value") - - get_job_metrics_response_200_timeseries_metrics_item_values_item = cls( - timestamp=timestamp, - value=value, - ) - - get_job_metrics_response_200_timeseries_metrics_item_values_item.additional_properties = d - return get_job_metrics_response_200_timeseries_metrics_item_values_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_response_200.py b/python-client/windmill-api/windmill_api/models/get_job_response_200.py deleted file mode 100644 index 5b03723668..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_response_200.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.get_job_response_200_type import GetJobResponse200Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetJobResponse200") - - -@_attrs_define -class GetJobResponse200: - """ - Attributes: - type (Union[Unset, GetJobResponse200Type]): - """ - - type: Union[Unset, GetJobResponse200Type] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, GetJobResponse200Type] - if isinstance(_type, Unset): - type = UNSET - else: - type = GetJobResponse200Type(_type) - - - - - get_job_response_200 = cls( - type=type, - ) - - get_job_response_200.additional_properties = d - return get_job_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_job_response_200_type.py b/python-client/windmill-api/windmill_api/models/get_job_response_200_type.py deleted file mode 100644 index f2a9d3e45b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_response_200_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class GetJobResponse200Type(str, Enum): - COMPLETEDJOB = "CompletedJob" - QUEUEDJOB = "QueuedJob" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_job_updates_response_200.py b/python-client/windmill-api/windmill_api/models/get_job_updates_response_200.py deleted file mode 100644 index ee4ab36e10..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_job_updates_response_200.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetJobUpdatesResponse200") - - -@_attrs_define -class GetJobUpdatesResponse200: - """ - Attributes: - running (Union[Unset, bool]): - completed (Union[Unset, bool]): - new_logs (Union[Unset, str]): - mem_peak (Union[Unset, int]): - """ - - running: Union[Unset, bool] = UNSET - completed: Union[Unset, bool] = UNSET - new_logs: Union[Unset, str] = UNSET - mem_peak: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - running = self.running - completed = self.completed - new_logs = self.new_logs - mem_peak = self.mem_peak - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if running is not UNSET: - field_dict["running"] = running - if completed is not UNSET: - field_dict["completed"] = completed - if new_logs is not UNSET: - field_dict["new_logs"] = new_logs - if mem_peak is not UNSET: - field_dict["mem_peak"] = mem_peak - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - running = d.pop("running", UNSET) - - completed = d.pop("completed", UNSET) - - new_logs = d.pop("new_logs", UNSET) - - mem_peak = d.pop("mem_peak", UNSET) - - get_job_updates_response_200 = cls( - running=running, - completed=completed, - new_logs=new_logs, - mem_peak=mem_peak, - ) - - get_job_updates_response_200.additional_properties = d - return get_job_updates_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_large_file_storage_config_response_200.py b/python-client/windmill-api/windmill_api/models/get_large_file_storage_config_response_200.py deleted file mode 100644 index b0302e15ec..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_large_file_storage_config_response_200.py +++ /dev/null @@ -1,93 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.get_large_file_storage_config_response_200_type import GetLargeFileStorageConfigResponse200Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetLargeFileStorageConfigResponse200") - - -@_attrs_define -class GetLargeFileStorageConfigResponse200: - """ - Attributes: - type (Union[Unset, GetLargeFileStorageConfigResponse200Type]): - s3_resource_path (Union[Unset, str]): - """ - - type: Union[Unset, GetLargeFileStorageConfigResponse200Type] = UNSET - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, GetLargeFileStorageConfigResponse200Type] - if isinstance(_type, Unset): - type = UNSET - else: - type = GetLargeFileStorageConfigResponse200Type(_type) - - - - - s3_resource_path = d.pop("s3_resource_path", UNSET) - - get_large_file_storage_config_response_200 = cls( - type=type, - s3_resource_path=s3_resource_path, - ) - - get_large_file_storage_config_response_200.additional_properties = d - return get_large_file_storage_config_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_large_file_storage_config_response_200_type.py b/python-client/windmill-api/windmill_api/models/get_large_file_storage_config_response_200_type.py deleted file mode 100644 index 87424968c0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_large_file_storage_config_response_200_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetLargeFileStorageConfigResponse200Type(str, Enum): - S3STORAGE = "S3Storage" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_premium_info_response_200.py b/python-client/windmill-api/windmill_api/models/get_premium_info_response_200.py deleted file mode 100644 index 0c4c13f513..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_premium_info_response_200.py +++ /dev/null @@ -1,88 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetPremiumInfoResponse200") - - -@_attrs_define -class GetPremiumInfoResponse200: - """ - Attributes: - premium (bool): - usage (Union[Unset, float]): - seats (Union[Unset, float]): - """ - - premium: bool - usage: Union[Unset, float] = UNSET - seats: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - premium = self.premium - usage = self.usage - seats = self.seats - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "premium": premium, - }) - if usage is not UNSET: - field_dict["usage"] = usage - if seats is not UNSET: - field_dict["seats"] = seats - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - premium = d.pop("premium") - - usage = d.pop("usage", UNSET) - - seats = d.pop("seats", UNSET) - - get_premium_info_response_200 = cls( - premium=premium, - usage=usage, - seats=seats, - ) - - get_premium_info_response_200.additional_properties = d - return get_premium_info_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200.py b/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200.py deleted file mode 100644 index 8c1b8eeb50..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200.py +++ /dev/null @@ -1,174 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from ..models.get_public_app_by_secret_response_200_execution_mode import GetPublicAppBySecretResponse200ExecutionMode -from dateutil.parser import isoparse - -if TYPE_CHECKING: - from ..models.get_public_app_by_secret_response_200_extra_perms import GetPublicAppBySecretResponse200ExtraPerms - from ..models.get_public_app_by_secret_response_200_policy import GetPublicAppBySecretResponse200Policy - - - - - -T = TypeVar("T", bound="GetPublicAppBySecretResponse200") - - -@_attrs_define -class GetPublicAppBySecretResponse200: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - versions (List[int]): - created_by (str): - created_at (datetime.datetime): - value (Any): - policy (GetPublicAppBySecretResponse200Policy): - execution_mode (GetPublicAppBySecretResponse200ExecutionMode): - extra_perms (GetPublicAppBySecretResponse200ExtraPerms): - """ - - id: int - workspace_id: str - path: str - summary: str - versions: List[int] - created_by: str - created_at: datetime.datetime - value: Any - policy: 'GetPublicAppBySecretResponse200Policy' - execution_mode: GetPublicAppBySecretResponse200ExecutionMode - extra_perms: 'GetPublicAppBySecretResponse200ExtraPerms' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_public_app_by_secret_response_200_extra_perms import GetPublicAppBySecretResponse200ExtraPerms - from ..models.get_public_app_by_secret_response_200_policy import GetPublicAppBySecretResponse200Policy - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - versions = self.versions - - - - - created_by = self.created_by - created_at = self.created_at.isoformat() - - value = self.value - policy = self.policy.to_dict() - - execution_mode = self.execution_mode.value - - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "versions": versions, - "created_by": created_by, - "created_at": created_at, - "value": value, - "policy": policy, - "execution_mode": execution_mode, - "extra_perms": extra_perms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_public_app_by_secret_response_200_extra_perms import GetPublicAppBySecretResponse200ExtraPerms - from ..models.get_public_app_by_secret_response_200_policy import GetPublicAppBySecretResponse200Policy - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - versions = cast(List[int], d.pop("versions")) - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - value = d.pop("value") - - policy = GetPublicAppBySecretResponse200Policy.from_dict(d.pop("policy")) - - - - - execution_mode = GetPublicAppBySecretResponse200ExecutionMode(d.pop("execution_mode")) - - - - - extra_perms = GetPublicAppBySecretResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - get_public_app_by_secret_response_200 = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - versions=versions, - created_by=created_by, - created_at=created_at, - value=value, - policy=policy, - execution_mode=execution_mode, - extra_perms=extra_perms, - ) - - get_public_app_by_secret_response_200.additional_properties = d - return get_public_app_by_secret_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_execution_mode.py deleted file mode 100644 index 829af4c651..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetPublicAppBySecretResponse200ExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_extra_perms.py deleted file mode 100644 index 68f471b6b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetPublicAppBySecretResponse200ExtraPerms") - - -@_attrs_define -class GetPublicAppBySecretResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_public_app_by_secret_response_200_extra_perms = cls( - ) - - - get_public_app_by_secret_response_200_extra_perms.additional_properties = d - return get_public_app_by_secret_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy.py b/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy.py deleted file mode 100644 index c8d8fb1bd8..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from ..models.get_public_app_by_secret_response_200_policy_execution_mode import GetPublicAppBySecretResponse200PolicyExecutionMode -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_public_app_by_secret_response_200_policy_triggerables import GetPublicAppBySecretResponse200PolicyTriggerables - - - - - -T = TypeVar("T", bound="GetPublicAppBySecretResponse200Policy") - - -@_attrs_define -class GetPublicAppBySecretResponse200Policy: - """ - Attributes: - triggerables (Union[Unset, GetPublicAppBySecretResponse200PolicyTriggerables]): - execution_mode (Union[Unset, GetPublicAppBySecretResponse200PolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'GetPublicAppBySecretResponse200PolicyTriggerables'] = UNSET - execution_mode: Union[Unset, GetPublicAppBySecretResponse200PolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_public_app_by_secret_response_200_policy_triggerables import GetPublicAppBySecretResponse200PolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_public_app_by_secret_response_200_policy_triggerables import GetPublicAppBySecretResponse200PolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, GetPublicAppBySecretResponse200PolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = GetPublicAppBySecretResponse200PolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, GetPublicAppBySecretResponse200PolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = GetPublicAppBySecretResponse200PolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - get_public_app_by_secret_response_200_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - get_public_app_by_secret_response_200_policy.additional_properties = d - return get_public_app_by_secret_response_200_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_execution_mode.py deleted file mode 100644 index 6c2018a0a3..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class GetPublicAppBySecretResponse200PolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables.py deleted file mode 100644 index 41f2acfea0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_public_app_by_secret_response_200_policy_triggerables_additional_property import GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="GetPublicAppBySecretResponse200PolicyTriggerables") - - -@_attrs_define -class GetPublicAppBySecretResponse200PolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_public_app_by_secret_response_200_policy_triggerables_additional_property import GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_public_app_by_secret_response_200_policy_triggerables_additional_property import GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty - d = src_dict.copy() - get_public_app_by_secret_response_200_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - get_public_app_by_secret_response_200_policy_triggerables.additional_properties = additional_properties - return get_public_app_by_secret_response_200_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables_additional_property.py deleted file mode 100644 index 0f53552dd2..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_public_app_by_secret_response_200_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class GetPublicAppBySecretResponse200PolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_public_app_by_secret_response_200_policy_triggerables_additional_property = cls( - ) - - get_public_app_by_secret_response_200_policy_triggerables_additional_property.additional_properties = d - return get_public_app_by_secret_response_200_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_queue_count_response_200.py b/python-client/windmill-api/windmill_api/models/get_queue_count_response_200.py deleted file mode 100644 index 4ab5671c78..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_queue_count_response_200.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetQueueCountResponse200") - - -@_attrs_define -class GetQueueCountResponse200: - """ - Attributes: - database_length (int): - """ - - database_length: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - database_length = self.database_length - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "database_length": database_length, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - database_length = d.pop("database_length") - - get_queue_count_response_200 = cls( - database_length=database_length, - ) - - get_queue_count_response_200.additional_properties = d - return get_queue_count_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_resource_response_200.py b/python-client/windmill-api/windmill_api/models/get_resource_response_200.py deleted file mode 100644 index 2266e5d196..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_resource_response_200.py +++ /dev/null @@ -1,135 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_resource_response_200_extra_perms import GetResourceResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetResourceResponse200") - - -@_attrs_define -class GetResourceResponse200: - """ - Attributes: - path (str): - resource_type (str): - is_oauth (bool): - workspace_id (Union[Unset, str]): - description (Union[Unset, str]): - value (Union[Unset, Any]): - extra_perms (Union[Unset, GetResourceResponse200ExtraPerms]): - """ - - path: str - resource_type: str - is_oauth: bool - workspace_id: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - value: Union[Unset, Any] = UNSET - extra_perms: Union[Unset, 'GetResourceResponse200ExtraPerms'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_resource_response_200_extra_perms import GetResourceResponse200ExtraPerms - path = self.path - resource_type = self.resource_type - is_oauth = self.is_oauth - workspace_id = self.workspace_id - description = self.description - value = self.value - extra_perms: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_perms, Unset): - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "resource_type": resource_type, - "is_oauth": is_oauth, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if description is not UNSET: - field_dict["description"] = description - if value is not UNSET: - field_dict["value"] = value - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_resource_response_200_extra_perms import GetResourceResponse200ExtraPerms - d = src_dict.copy() - path = d.pop("path") - - resource_type = d.pop("resource_type") - - is_oauth = d.pop("is_oauth") - - workspace_id = d.pop("workspace_id", UNSET) - - description = d.pop("description", UNSET) - - value = d.pop("value", UNSET) - - _extra_perms = d.pop("extra_perms", UNSET) - extra_perms: Union[Unset, GetResourceResponse200ExtraPerms] - if isinstance(_extra_perms, Unset): - extra_perms = UNSET - else: - extra_perms = GetResourceResponse200ExtraPerms.from_dict(_extra_perms) - - - - - get_resource_response_200 = cls( - path=path, - resource_type=resource_type, - is_oauth=is_oauth, - workspace_id=workspace_id, - description=description, - value=value, - extra_perms=extra_perms, - ) - - get_resource_response_200.additional_properties = d - return get_resource_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_resource_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_resource_response_200_extra_perms.py deleted file mode 100644 index d9c65f2fec..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_resource_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetResourceResponse200ExtraPerms") - - -@_attrs_define -class GetResourceResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_resource_response_200_extra_perms = cls( - ) - - - get_resource_response_200_extra_perms.additional_properties = d - return get_resource_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_resource_type_response_200.py b/python-client/windmill-api/windmill_api/models/get_resource_type_response_200.py deleted file mode 100644 index 9f290628b1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_resource_type_response_200.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetResourceTypeResponse200") - - -@_attrs_define -class GetResourceTypeResponse200: - """ - Attributes: - name (str): - workspace_id (Union[Unset, str]): - schema (Union[Unset, Any]): - description (Union[Unset, str]): - """ - - name: str - workspace_id: Union[Unset, str] = UNSET - schema: Union[Unset, Any] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - workspace_id = self.workspace_id - schema = self.schema - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if schema is not UNSET: - field_dict["schema"] = schema - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - workspace_id = d.pop("workspace_id", UNSET) - - schema = d.pop("schema", UNSET) - - description = d.pop("description", UNSET) - - get_resource_type_response_200 = cls( - name=name, - workspace_id=workspace_id, - schema=schema, - description=description, - ) - - get_resource_type_response_200.additional_properties = d - return get_resource_type_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_resume_urls_response_200.py b/python-client/windmill-api/windmill_api/models/get_resume_urls_response_200.py deleted file mode 100644 index 03a600b260..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_resume_urls_response_200.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetResumeUrlsResponse200") - - -@_attrs_define -class GetResumeUrlsResponse200: - """ - Attributes: - approval_page (str): - resume (str): - cancel (str): - """ - - approval_page: str - resume: str - cancel: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - approval_page = self.approval_page - resume = self.resume - cancel = self.cancel - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "approvalPage": approval_page, - "resume": resume, - "cancel": cancel, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - approval_page = d.pop("approvalPage") - - resume = d.pop("resume") - - cancel = d.pop("cancel") - - get_resume_urls_response_200 = cls( - approval_page=approval_page, - resume=resume, - cancel=cancel, - ) - - get_resume_urls_response_200.additional_properties = d - return get_resume_urls_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_runnable_response_200.py b/python-client/windmill-api/windmill_api/models/get_runnable_response_200.py deleted file mode 100644 index 86440f350a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_runnable_response_200.py +++ /dev/null @@ -1,115 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetRunnableResponse200") - - -@_attrs_define -class GetRunnableResponse200: - """ - Attributes: - workspace (str): - endpoint_async (str): - endpoint_sync (str): - endpoint_openai_sync (str): - summary (str): - kind (str): - description (Union[Unset, str]): - """ - - workspace: str - endpoint_async: str - endpoint_sync: str - endpoint_openai_sync: str - summary: str - kind: str - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - workspace = self.workspace - endpoint_async = self.endpoint_async - endpoint_sync = self.endpoint_sync - endpoint_openai_sync = self.endpoint_openai_sync - summary = self.summary - kind = self.kind - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace": workspace, - "endpoint_async": endpoint_async, - "endpoint_sync": endpoint_sync, - "endpoint_openai_sync": endpoint_openai_sync, - "summary": summary, - "kind": kind, - }) - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - workspace = d.pop("workspace") - - endpoint_async = d.pop("endpoint_async") - - endpoint_sync = d.pop("endpoint_sync") - - endpoint_openai_sync = d.pop("endpoint_openai_sync") - - summary = d.pop("summary") - - kind = d.pop("kind") - - description = d.pop("description", UNSET) - - get_runnable_response_200 = cls( - workspace=workspace, - endpoint_async=endpoint_async, - endpoint_sync=endpoint_sync, - endpoint_openai_sync=endpoint_openai_sync, - summary=summary, - kind=kind, - description=description, - ) - - get_runnable_response_200.additional_properties = d - return get_runnable_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200.py deleted file mode 100644 index 8de33401ca..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200.py +++ /dev/null @@ -1,319 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_schedule_response_200_on_recovery_extra_args import GetScheduleResponse200OnRecoveryExtraArgs - from ..models.get_schedule_response_200_retry import GetScheduleResponse200Retry - from ..models.get_schedule_response_200_on_failure_extra_args import GetScheduleResponse200OnFailureExtraArgs - from ..models.get_schedule_response_200_extra_perms import GetScheduleResponse200ExtraPerms - from ..models.get_schedule_response_200_args import GetScheduleResponse200Args - - - - - -T = TypeVar("T", bound="GetScheduleResponse200") - - -@_attrs_define -class GetScheduleResponse200: - """ - Attributes: - path (str): - edited_by (str): - edited_at (datetime.datetime): - schedule (str): - timezone (str): - enabled (bool): - script_path (str): - is_flow (bool): - extra_perms (GetScheduleResponse200ExtraPerms): - email (str): - args (Union[Unset, GetScheduleResponse200Args]): - error (Union[Unset, str]): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, GetScheduleResponse200OnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, GetScheduleResponse200OnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, GetScheduleResponse200Retry]): - summary (Union[Unset, str]): - no_flow_overlap (Union[Unset, bool]): - tag (Union[Unset, str]): - """ - - path: str - edited_by: str - edited_at: datetime.datetime - schedule: str - timezone: str - enabled: bool - script_path: str - is_flow: bool - extra_perms: 'GetScheduleResponse200ExtraPerms' - email: str - args: Union[Unset, 'GetScheduleResponse200Args'] = UNSET - error: Union[Unset, str] = UNSET - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'GetScheduleResponse200OnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'GetScheduleResponse200OnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'GetScheduleResponse200Retry'] = UNSET - summary: Union[Unset, str] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_schedule_response_200_on_recovery_extra_args import GetScheduleResponse200OnRecoveryExtraArgs - from ..models.get_schedule_response_200_retry import GetScheduleResponse200Retry - from ..models.get_schedule_response_200_on_failure_extra_args import GetScheduleResponse200OnFailureExtraArgs - from ..models.get_schedule_response_200_extra_perms import GetScheduleResponse200ExtraPerms - from ..models.get_schedule_response_200_args import GetScheduleResponse200Args - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - schedule = self.schedule - timezone = self.timezone - enabled = self.enabled - script_path = self.script_path - is_flow = self.is_flow - extra_perms = self.extra_perms.to_dict() - - email = self.email - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - error = self.error - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - summary = self.summary - no_flow_overlap = self.no_flow_overlap - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "schedule": schedule, - "timezone": timezone, - "enabled": enabled, - "script_path": script_path, - "is_flow": is_flow, - "extra_perms": extra_perms, - "email": email, - }) - if args is not UNSET: - field_dict["args"] = args - if error is not UNSET: - field_dict["error"] = error - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if summary is not UNSET: - field_dict["summary"] = summary - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if tag is not UNSET: - field_dict["tag"] = tag - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_schedule_response_200_on_recovery_extra_args import GetScheduleResponse200OnRecoveryExtraArgs - from ..models.get_schedule_response_200_retry import GetScheduleResponse200Retry - from ..models.get_schedule_response_200_on_failure_extra_args import GetScheduleResponse200OnFailureExtraArgs - from ..models.get_schedule_response_200_extra_perms import GetScheduleResponse200ExtraPerms - from ..models.get_schedule_response_200_args import GetScheduleResponse200Args - d = src_dict.copy() - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - enabled = d.pop("enabled") - - script_path = d.pop("script_path") - - is_flow = d.pop("is_flow") - - extra_perms = GetScheduleResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - email = d.pop("email") - - _args = d.pop("args", UNSET) - args: Union[Unset, GetScheduleResponse200Args] - if isinstance(_args, Unset): - args = UNSET - else: - args = GetScheduleResponse200Args.from_dict(_args) - - - - - error = d.pop("error", UNSET) - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, GetScheduleResponse200OnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = GetScheduleResponse200OnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, GetScheduleResponse200OnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = GetScheduleResponse200OnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, GetScheduleResponse200Retry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = GetScheduleResponse200Retry.from_dict(_retry) - - - - - summary = d.pop("summary", UNSET) - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - tag = d.pop("tag", UNSET) - - get_schedule_response_200 = cls( - path=path, - edited_by=edited_by, - edited_at=edited_at, - schedule=schedule, - timezone=timezone, - enabled=enabled, - script_path=script_path, - is_flow=is_flow, - extra_perms=extra_perms, - email=email, - args=args, - error=error, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - summary=summary, - no_flow_overlap=no_flow_overlap, - tag=tag, - ) - - get_schedule_response_200.additional_properties = d - return get_schedule_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_args.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200_args.py deleted file mode 100644 index 1d13dee291..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScheduleResponse200Args") - - -@_attrs_define -class GetScheduleResponse200Args: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_schedule_response_200_args = cls( - ) - - get_schedule_response_200_args.additional_properties = d - return get_schedule_response_200_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200_extra_perms.py deleted file mode 100644 index 0072fac11a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScheduleResponse200ExtraPerms") - - -@_attrs_define -class GetScheduleResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_schedule_response_200_extra_perms = cls( - ) - - - get_schedule_response_200_extra_perms.additional_properties = d - return get_schedule_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200_on_failure_extra_args.py deleted file mode 100644 index 3f5a37907c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScheduleResponse200OnFailureExtraArgs") - - -@_attrs_define -class GetScheduleResponse200OnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_schedule_response_200_on_failure_extra_args = cls( - ) - - get_schedule_response_200_on_failure_extra_args.additional_properties = d - return get_schedule_response_200_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200_on_recovery_extra_args.py deleted file mode 100644 index f5e22fa48e..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScheduleResponse200OnRecoveryExtraArgs") - - -@_attrs_define -class GetScheduleResponse200OnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_schedule_response_200_on_recovery_extra_args = cls( - ) - - get_schedule_response_200_on_recovery_extra_args.additional_properties = d - return get_schedule_response_200_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry.py deleted file mode 100644 index 0f2ba8b5df..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_schedule_response_200_retry_exponential import GetScheduleResponse200RetryExponential - from ..models.get_schedule_response_200_retry_constant import GetScheduleResponse200RetryConstant - - - - - -T = TypeVar("T", bound="GetScheduleResponse200Retry") - - -@_attrs_define -class GetScheduleResponse200Retry: - """ - Attributes: - constant (Union[Unset, GetScheduleResponse200RetryConstant]): - exponential (Union[Unset, GetScheduleResponse200RetryExponential]): - """ - - constant: Union[Unset, 'GetScheduleResponse200RetryConstant'] = UNSET - exponential: Union[Unset, 'GetScheduleResponse200RetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_schedule_response_200_retry_exponential import GetScheduleResponse200RetryExponential - from ..models.get_schedule_response_200_retry_constant import GetScheduleResponse200RetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_schedule_response_200_retry_exponential import GetScheduleResponse200RetryExponential - from ..models.get_schedule_response_200_retry_constant import GetScheduleResponse200RetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, GetScheduleResponse200RetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = GetScheduleResponse200RetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, GetScheduleResponse200RetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = GetScheduleResponse200RetryExponential.from_dict(_exponential) - - - - - get_schedule_response_200_retry = cls( - constant=constant, - exponential=exponential, - ) - - get_schedule_response_200_retry.additional_properties = d - return get_schedule_response_200_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry_constant.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry_constant.py deleted file mode 100644 index d4a757f0c4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetScheduleResponse200RetryConstant") - - -@_attrs_define -class GetScheduleResponse200RetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - get_schedule_response_200_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - get_schedule_response_200_retry_constant.additional_properties = d - return get_schedule_response_200_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry_exponential.py b/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry_exponential.py deleted file mode 100644 index 39eb48e0e7..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_schedule_response_200_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetScheduleResponse200RetryExponential") - - -@_attrs_define -class GetScheduleResponse200RetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - get_schedule_response_200_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - get_schedule_response_200_retry_exponential.additional_properties = d - return get_schedule_response_200_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200.py b/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200.py deleted file mode 100644 index 78211fb749..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200.py +++ /dev/null @@ -1,363 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.get_script_by_hash_response_200_kind import GetScriptByHashResponse200Kind -from typing import Dict -from ..models.get_script_by_hash_response_200_language import GetScriptByHashResponse200Language -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_script_by_hash_response_200_schema import GetScriptByHashResponse200Schema - from ..models.get_script_by_hash_response_200_extra_perms import GetScriptByHashResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetScriptByHashResponse200") - - -@_attrs_define -class GetScriptByHashResponse200: - """ - Attributes: - hash_ (str): - path (str): - summary (str): - description (str): - content (str): - created_by (str): - created_at (datetime.datetime): - archived (bool): - deleted (bool): - is_template (bool): - extra_perms (GetScriptByHashResponse200ExtraPerms): - language (GetScriptByHashResponse200Language): - kind (GetScriptByHashResponse200Kind): - starred (bool): - workspace_id (Union[Unset, str]): - parent_hashes (Union[Unset, List[str]]): The first element is the direct parent of the script, the second is the - parent of the first, etc - schema (Union[Unset, GetScriptByHashResponse200Schema]): - lock (Union[Unset, str]): - lock_error_logs (Union[Unset, str]): - tag (Union[Unset, str]): - has_draft (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - """ - - hash_: str - path: str - summary: str - description: str - content: str - created_by: str - created_at: datetime.datetime - archived: bool - deleted: bool - is_template: bool - extra_perms: 'GetScriptByHashResponse200ExtraPerms' - language: GetScriptByHashResponse200Language - kind: GetScriptByHashResponse200Kind - starred: bool - workspace_id: Union[Unset, str] = UNSET - parent_hashes: Union[Unset, List[str]] = UNSET - schema: Union[Unset, 'GetScriptByHashResponse200Schema'] = UNSET - lock: Union[Unset, str] = UNSET - lock_error_logs: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - has_draft: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_script_by_hash_response_200_schema import GetScriptByHashResponse200Schema - from ..models.get_script_by_hash_response_200_extra_perms import GetScriptByHashResponse200ExtraPerms - hash_ = self.hash_ - path = self.path - summary = self.summary - description = self.description - content = self.content - created_by = self.created_by - created_at = self.created_at.isoformat() - - archived = self.archived - deleted = self.deleted - is_template = self.is_template - extra_perms = self.extra_perms.to_dict() - - language = self.language.value - - kind = self.kind.value - - starred = self.starred - workspace_id = self.workspace_id - parent_hashes: Union[Unset, List[str]] = UNSET - if not isinstance(self.parent_hashes, Unset): - parent_hashes = self.parent_hashes - - - - - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - lock = self.lock - lock_error_logs = self.lock_error_logs - tag = self.tag - has_draft = self.has_draft - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "hash": hash_, - "path": path, - "summary": summary, - "description": description, - "content": content, - "created_by": created_by, - "created_at": created_at, - "archived": archived, - "deleted": deleted, - "is_template": is_template, - "extra_perms": extra_perms, - "language": language, - "kind": kind, - "starred": starred, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_hashes is not UNSET: - field_dict["parent_hashes"] = parent_hashes - if schema is not UNSET: - field_dict["schema"] = schema - if lock is not UNSET: - field_dict["lock"] = lock - if lock_error_logs is not UNSET: - field_dict["lock_error_logs"] = lock_error_logs - if tag is not UNSET: - field_dict["tag"] = tag - if has_draft is not UNSET: - field_dict["has_draft"] = has_draft - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_script_by_hash_response_200_schema import GetScriptByHashResponse200Schema - from ..models.get_script_by_hash_response_200_extra_perms import GetScriptByHashResponse200ExtraPerms - d = src_dict.copy() - hash_ = d.pop("hash") - - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - archived = d.pop("archived") - - deleted = d.pop("deleted") - - is_template = d.pop("is_template") - - extra_perms = GetScriptByHashResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - language = GetScriptByHashResponse200Language(d.pop("language")) - - - - - kind = GetScriptByHashResponse200Kind(d.pop("kind")) - - - - - starred = d.pop("starred") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_hashes = cast(List[str], d.pop("parent_hashes", UNSET)) - - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetScriptByHashResponse200Schema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetScriptByHashResponse200Schema.from_dict(_schema) - - - - - lock = d.pop("lock", UNSET) - - lock_error_logs = d.pop("lock_error_logs", UNSET) - - tag = d.pop("tag", UNSET) - - has_draft = d.pop("has_draft", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - get_script_by_hash_response_200 = cls( - hash_=hash_, - path=path, - summary=summary, - description=description, - content=content, - created_by=created_by, - created_at=created_at, - archived=archived, - deleted=deleted, - is_template=is_template, - extra_perms=extra_perms, - language=language, - kind=kind, - starred=starred, - workspace_id=workspace_id, - parent_hashes=parent_hashes, - schema=schema, - lock=lock, - lock_error_logs=lock_error_logs, - tag=tag, - has_draft=has_draft, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - ) - - get_script_by_hash_response_200.additional_properties = d - return get_script_by_hash_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_extra_perms.py deleted file mode 100644 index a27e14e372..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScriptByHashResponse200ExtraPerms") - - -@_attrs_define -class GetScriptByHashResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_script_by_hash_response_200_extra_perms = cls( - ) - - - get_script_by_hash_response_200_extra_perms.additional_properties = d - return get_script_by_hash_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_kind.py b/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_kind.py deleted file mode 100644 index 5521d52b78..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class GetScriptByHashResponse200Kind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_language.py b/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_language.py deleted file mode 100644 index 0155d7f0e9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class GetScriptByHashResponse200Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_schema.py b/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_schema.py deleted file mode 100644 index 7efe149f45..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_hash_response_200_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScriptByHashResponse200Schema") - - -@_attrs_define -class GetScriptByHashResponse200Schema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_script_by_hash_response_200_schema = cls( - ) - - get_script_by_hash_response_200_schema.additional_properties = d - return get_script_by_hash_response_200_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200.py deleted file mode 100644 index 187541c7b1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200.py +++ /dev/null @@ -1,363 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.get_script_by_path_response_200_language import GetScriptByPathResponse200Language -import datetime -from dateutil.parser import isoparse -from ..models.get_script_by_path_response_200_kind import GetScriptByPathResponse200Kind -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_script_by_path_response_200_schema import GetScriptByPathResponse200Schema - from ..models.get_script_by_path_response_200_extra_perms import GetScriptByPathResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetScriptByPathResponse200") - - -@_attrs_define -class GetScriptByPathResponse200: - """ - Attributes: - hash_ (str): - path (str): - summary (str): - description (str): - content (str): - created_by (str): - created_at (datetime.datetime): - archived (bool): - deleted (bool): - is_template (bool): - extra_perms (GetScriptByPathResponse200ExtraPerms): - language (GetScriptByPathResponse200Language): - kind (GetScriptByPathResponse200Kind): - starred (bool): - workspace_id (Union[Unset, str]): - parent_hashes (Union[Unset, List[str]]): The first element is the direct parent of the script, the second is the - parent of the first, etc - schema (Union[Unset, GetScriptByPathResponse200Schema]): - lock (Union[Unset, str]): - lock_error_logs (Union[Unset, str]): - tag (Union[Unset, str]): - has_draft (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - """ - - hash_: str - path: str - summary: str - description: str - content: str - created_by: str - created_at: datetime.datetime - archived: bool - deleted: bool - is_template: bool - extra_perms: 'GetScriptByPathResponse200ExtraPerms' - language: GetScriptByPathResponse200Language - kind: GetScriptByPathResponse200Kind - starred: bool - workspace_id: Union[Unset, str] = UNSET - parent_hashes: Union[Unset, List[str]] = UNSET - schema: Union[Unset, 'GetScriptByPathResponse200Schema'] = UNSET - lock: Union[Unset, str] = UNSET - lock_error_logs: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - has_draft: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_script_by_path_response_200_schema import GetScriptByPathResponse200Schema - from ..models.get_script_by_path_response_200_extra_perms import GetScriptByPathResponse200ExtraPerms - hash_ = self.hash_ - path = self.path - summary = self.summary - description = self.description - content = self.content - created_by = self.created_by - created_at = self.created_at.isoformat() - - archived = self.archived - deleted = self.deleted - is_template = self.is_template - extra_perms = self.extra_perms.to_dict() - - language = self.language.value - - kind = self.kind.value - - starred = self.starred - workspace_id = self.workspace_id - parent_hashes: Union[Unset, List[str]] = UNSET - if not isinstance(self.parent_hashes, Unset): - parent_hashes = self.parent_hashes - - - - - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - lock = self.lock - lock_error_logs = self.lock_error_logs - tag = self.tag - has_draft = self.has_draft - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "hash": hash_, - "path": path, - "summary": summary, - "description": description, - "content": content, - "created_by": created_by, - "created_at": created_at, - "archived": archived, - "deleted": deleted, - "is_template": is_template, - "extra_perms": extra_perms, - "language": language, - "kind": kind, - "starred": starred, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_hashes is not UNSET: - field_dict["parent_hashes"] = parent_hashes - if schema is not UNSET: - field_dict["schema"] = schema - if lock is not UNSET: - field_dict["lock"] = lock - if lock_error_logs is not UNSET: - field_dict["lock_error_logs"] = lock_error_logs - if tag is not UNSET: - field_dict["tag"] = tag - if has_draft is not UNSET: - field_dict["has_draft"] = has_draft - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_script_by_path_response_200_schema import GetScriptByPathResponse200Schema - from ..models.get_script_by_path_response_200_extra_perms import GetScriptByPathResponse200ExtraPerms - d = src_dict.copy() - hash_ = d.pop("hash") - - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - archived = d.pop("archived") - - deleted = d.pop("deleted") - - is_template = d.pop("is_template") - - extra_perms = GetScriptByPathResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - language = GetScriptByPathResponse200Language(d.pop("language")) - - - - - kind = GetScriptByPathResponse200Kind(d.pop("kind")) - - - - - starred = d.pop("starred") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_hashes = cast(List[str], d.pop("parent_hashes", UNSET)) - - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetScriptByPathResponse200Schema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetScriptByPathResponse200Schema.from_dict(_schema) - - - - - lock = d.pop("lock", UNSET) - - lock_error_logs = d.pop("lock_error_logs", UNSET) - - tag = d.pop("tag", UNSET) - - has_draft = d.pop("has_draft", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - get_script_by_path_response_200 = cls( - hash_=hash_, - path=path, - summary=summary, - description=description, - content=content, - created_by=created_by, - created_at=created_at, - archived=archived, - deleted=deleted, - is_template=is_template, - extra_perms=extra_perms, - language=language, - kind=kind, - starred=starred, - workspace_id=workspace_id, - parent_hashes=parent_hashes, - schema=schema, - lock=lock, - lock_error_logs=lock_error_logs, - tag=tag, - has_draft=has_draft, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - ) - - get_script_by_path_response_200.additional_properties = d - return get_script_by_path_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_extra_perms.py deleted file mode 100644 index ebf659218a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScriptByPathResponse200ExtraPerms") - - -@_attrs_define -class GetScriptByPathResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_script_by_path_response_200_extra_perms = cls( - ) - - - get_script_by_path_response_200_extra_perms.additional_properties = d - return get_script_by_path_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_kind.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_kind.py deleted file mode 100644 index 4301a78bc5..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class GetScriptByPathResponse200Kind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_language.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_language.py deleted file mode 100644 index 4cb55bdc3b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class GetScriptByPathResponse200Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_schema.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_schema.py deleted file mode 100644 index 9c25d4d541..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_response_200_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScriptByPathResponse200Schema") - - -@_attrs_define -class GetScriptByPathResponse200Schema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_script_by_path_response_200_schema = cls( - ) - - get_script_by_path_response_200_schema.additional_properties = d - return get_script_by_path_response_200_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200.py deleted file mode 100644 index 04e27eb048..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200.py +++ /dev/null @@ -1,322 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.get_script_by_path_with_draft_response_200_kind import GetScriptByPathWithDraftResponse200Kind -from ..models.get_script_by_path_with_draft_response_200_language import GetScriptByPathWithDraftResponse200Language -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_script_by_path_with_draft_response_200_draft import GetScriptByPathWithDraftResponse200Draft - from ..models.get_script_by_path_with_draft_response_200_schema import GetScriptByPathWithDraftResponse200Schema - - - - - -T = TypeVar("T", bound="GetScriptByPathWithDraftResponse200") - - -@_attrs_define -class GetScriptByPathWithDraftResponse200: - """ - Attributes: - path (str): - summary (str): - description (str): - content (str): - language (GetScriptByPathWithDraftResponse200Language): - hash_ (str): - parent_hash (Union[Unset, str]): - schema (Union[Unset, GetScriptByPathWithDraftResponse200Schema]): - is_template (Union[Unset, bool]): - lock (Union[Unset, List[str]]): - kind (Union[Unset, GetScriptByPathWithDraftResponse200Kind]): - tag (Union[Unset, str]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - draft (Union[Unset, GetScriptByPathWithDraftResponse200Draft]): - """ - - path: str - summary: str - description: str - content: str - language: GetScriptByPathWithDraftResponse200Language - hash_: str - parent_hash: Union[Unset, str] = UNSET - schema: Union[Unset, 'GetScriptByPathWithDraftResponse200Schema'] = UNSET - is_template: Union[Unset, bool] = UNSET - lock: Union[Unset, List[str]] = UNSET - kind: Union[Unset, GetScriptByPathWithDraftResponse200Kind] = UNSET - tag: Union[Unset, str] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - draft: Union[Unset, 'GetScriptByPathWithDraftResponse200Draft'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_script_by_path_with_draft_response_200_draft import GetScriptByPathWithDraftResponse200Draft - from ..models.get_script_by_path_with_draft_response_200_schema import GetScriptByPathWithDraftResponse200Schema - path = self.path - summary = self.summary - description = self.description - content = self.content - language = self.language.value - - hash_ = self.hash_ - parent_hash = self.parent_hash - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - is_template = self.is_template - lock: Union[Unset, List[str]] = UNSET - if not isinstance(self.lock, Unset): - lock = self.lock - - - - - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - tag = self.tag - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - deployment_message = self.deployment_message - draft: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.draft, Unset): - draft = self.draft.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "summary": summary, - "description": description, - "content": content, - "language": language, - "hash": hash_, - }) - if parent_hash is not UNSET: - field_dict["parent_hash"] = parent_hash - if schema is not UNSET: - field_dict["schema"] = schema - if is_template is not UNSET: - field_dict["is_template"] = is_template - if lock is not UNSET: - field_dict["lock"] = lock - if kind is not UNSET: - field_dict["kind"] = kind - if tag is not UNSET: - field_dict["tag"] = tag - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - if draft is not UNSET: - field_dict["draft"] = draft - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_script_by_path_with_draft_response_200_draft import GetScriptByPathWithDraftResponse200Draft - from ..models.get_script_by_path_with_draft_response_200_schema import GetScriptByPathWithDraftResponse200Schema - d = src_dict.copy() - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - language = GetScriptByPathWithDraftResponse200Language(d.pop("language")) - - - - - hash_ = d.pop("hash") - - parent_hash = d.pop("parent_hash", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetScriptByPathWithDraftResponse200Schema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetScriptByPathWithDraftResponse200Schema.from_dict(_schema) - - - - - is_template = d.pop("is_template", UNSET) - - lock = cast(List[str], d.pop("lock", UNSET)) - - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, GetScriptByPathWithDraftResponse200Kind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = GetScriptByPathWithDraftResponse200Kind(_kind) - - - - - tag = d.pop("tag", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - _draft = d.pop("draft", UNSET) - draft: Union[Unset, GetScriptByPathWithDraftResponse200Draft] - if isinstance(_draft, Unset): - draft = UNSET - else: - draft = GetScriptByPathWithDraftResponse200Draft.from_dict(_draft) - - - - - get_script_by_path_with_draft_response_200 = cls( - path=path, - summary=summary, - description=description, - content=content, - language=language, - hash_=hash_, - parent_hash=parent_hash, - schema=schema, - is_template=is_template, - lock=lock, - kind=kind, - tag=tag, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - deployment_message=deployment_message, - draft=draft, - ) - - get_script_by_path_with_draft_response_200.additional_properties = d - return get_script_by_path_with_draft_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft.py deleted file mode 100644 index 7e8a20c245..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft.py +++ /dev/null @@ -1,293 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.get_script_by_path_with_draft_response_200_draft_kind import GetScriptByPathWithDraftResponse200DraftKind -from ..models.get_script_by_path_with_draft_response_200_draft_language import GetScriptByPathWithDraftResponse200DraftLanguage -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_script_by_path_with_draft_response_200_draft_schema import GetScriptByPathWithDraftResponse200DraftSchema - - - - - -T = TypeVar("T", bound="GetScriptByPathWithDraftResponse200Draft") - - -@_attrs_define -class GetScriptByPathWithDraftResponse200Draft: - """ - Attributes: - path (str): - summary (str): - description (str): - content (str): - language (GetScriptByPathWithDraftResponse200DraftLanguage): - parent_hash (Union[Unset, str]): - schema (Union[Unset, GetScriptByPathWithDraftResponse200DraftSchema]): - is_template (Union[Unset, bool]): - lock (Union[Unset, List[str]]): - kind (Union[Unset, GetScriptByPathWithDraftResponse200DraftKind]): - tag (Union[Unset, str]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - """ - - path: str - summary: str - description: str - content: str - language: GetScriptByPathWithDraftResponse200DraftLanguage - parent_hash: Union[Unset, str] = UNSET - schema: Union[Unset, 'GetScriptByPathWithDraftResponse200DraftSchema'] = UNSET - is_template: Union[Unset, bool] = UNSET - lock: Union[Unset, List[str]] = UNSET - kind: Union[Unset, GetScriptByPathWithDraftResponse200DraftKind] = UNSET - tag: Union[Unset, str] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_script_by_path_with_draft_response_200_draft_schema import GetScriptByPathWithDraftResponse200DraftSchema - path = self.path - summary = self.summary - description = self.description - content = self.content - language = self.language.value - - parent_hash = self.parent_hash - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - is_template = self.is_template - lock: Union[Unset, List[str]] = UNSET - if not isinstance(self.lock, Unset): - lock = self.lock - - - - - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - tag = self.tag - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "summary": summary, - "description": description, - "content": content, - "language": language, - }) - if parent_hash is not UNSET: - field_dict["parent_hash"] = parent_hash - if schema is not UNSET: - field_dict["schema"] = schema - if is_template is not UNSET: - field_dict["is_template"] = is_template - if lock is not UNSET: - field_dict["lock"] = lock - if kind is not UNSET: - field_dict["kind"] = kind - if tag is not UNSET: - field_dict["tag"] = tag - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_script_by_path_with_draft_response_200_draft_schema import GetScriptByPathWithDraftResponse200DraftSchema - d = src_dict.copy() - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - language = GetScriptByPathWithDraftResponse200DraftLanguage(d.pop("language")) - - - - - parent_hash = d.pop("parent_hash", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, GetScriptByPathWithDraftResponse200DraftSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = GetScriptByPathWithDraftResponse200DraftSchema.from_dict(_schema) - - - - - is_template = d.pop("is_template", UNSET) - - lock = cast(List[str], d.pop("lock", UNSET)) - - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, GetScriptByPathWithDraftResponse200DraftKind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = GetScriptByPathWithDraftResponse200DraftKind(_kind) - - - - - tag = d.pop("tag", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - get_script_by_path_with_draft_response_200_draft = cls( - path=path, - summary=summary, - description=description, - content=content, - language=language, - parent_hash=parent_hash, - schema=schema, - is_template=is_template, - lock=lock, - kind=kind, - tag=tag, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - deployment_message=deployment_message, - ) - - get_script_by_path_with_draft_response_200_draft.additional_properties = d - return get_script_by_path_with_draft_response_200_draft - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_kind.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_kind.py deleted file mode 100644 index f486a8cd06..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class GetScriptByPathWithDraftResponse200DraftKind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py deleted file mode 100644 index f9bdc232a0..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class GetScriptByPathWithDraftResponse200DraftLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_schema.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_schema.py deleted file mode 100644 index 2e3f6f37ce..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_draft_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScriptByPathWithDraftResponse200DraftSchema") - - -@_attrs_define -class GetScriptByPathWithDraftResponse200DraftSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_script_by_path_with_draft_response_200_draft_schema = cls( - ) - - get_script_by_path_with_draft_response_200_draft_schema.additional_properties = d - return get_script_by_path_with_draft_response_200_draft_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_kind.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_kind.py deleted file mode 100644 index 0156a57ca4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class GetScriptByPathWithDraftResponse200Kind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_language.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_language.py deleted file mode 100644 index 1da16b5ecd..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class GetScriptByPathWithDraftResponse200Language(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_schema.py b/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_schema.py deleted file mode 100644 index 071e3504db..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_by_path_with_draft_response_200_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetScriptByPathWithDraftResponse200Schema") - - -@_attrs_define -class GetScriptByPathWithDraftResponse200Schema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_script_by_path_with_draft_response_200_schema = cls( - ) - - get_script_by_path_with_draft_response_200_schema.additional_properties = d - return get_script_by_path_with_draft_response_200_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_deployment_status_response_200.py b/python-client/windmill-api/windmill_api/models/get_script_deployment_status_response_200.py deleted file mode 100644 index 31fda5f5db..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_deployment_status_response_200.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetScriptDeploymentStatusResponse200") - - -@_attrs_define -class GetScriptDeploymentStatusResponse200: - """ - Attributes: - lock (Union[Unset, str]): - lock_error_logs (Union[Unset, str]): - """ - - lock: Union[Unset, str] = UNSET - lock_error_logs: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - lock = self.lock - lock_error_logs = self.lock_error_logs - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if lock is not UNSET: - field_dict["lock"] = lock - if lock_error_logs is not UNSET: - field_dict["lock_error_logs"] = lock_error_logs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - lock = d.pop("lock", UNSET) - - lock_error_logs = d.pop("lock_error_logs", UNSET) - - get_script_deployment_status_response_200 = cls( - lock=lock, - lock_error_logs=lock_error_logs, - ) - - get_script_deployment_status_response_200.additional_properties = d - return get_script_deployment_status_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_script_history_by_path_response_200_item.py b/python-client/windmill-api/windmill_api/models/get_script_history_by_path_response_200_item.py deleted file mode 100644 index 9a9e7b8a97..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_script_history_by_path_response_200_item.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetScriptHistoryByPathResponse200Item") - - -@_attrs_define -class GetScriptHistoryByPathResponse200Item: - """ - Attributes: - script_hash (str): - deployment_msg (Union[Unset, str]): - """ - - script_hash: str - deployment_msg: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - script_hash = self.script_hash - deployment_msg = self.deployment_msg - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "script_hash": script_hash, - }) - if deployment_msg is not UNSET: - field_dict["deployment_msg"] = deployment_msg - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_hash = d.pop("script_hash") - - deployment_msg = d.pop("deployment_msg", UNSET) - - get_script_history_by_path_response_200_item = cls( - script_hash=script_hash, - deployment_msg=deployment_msg, - ) - - get_script_history_by_path_response_200_item.additional_properties = d - return get_script_history_by_path_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_settings_response_200.py b/python-client/windmill-api/windmill_api/models/get_settings_response_200.py deleted file mode 100644 index ce76b8143c..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_settings_response_200.py +++ /dev/null @@ -1,253 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage - from ..models.get_settings_response_200_error_handler_extra_args import GetSettingsResponse200ErrorHandlerExtraArgs - from ..models.get_settings_response_200_git_sync_item import GetSettingsResponse200GitSyncItem - - - - - -T = TypeVar("T", bound="GetSettingsResponse200") - - -@_attrs_define -class GetSettingsResponse200: - """ - Attributes: - code_completion_enabled (bool): - workspace_id (Union[Unset, str]): - slack_name (Union[Unset, str]): - slack_team_id (Union[Unset, str]): - slack_command_script (Union[Unset, str]): - auto_invite_domain (Union[Unset, str]): - auto_invite_operator (Union[Unset, bool]): - plan (Union[Unset, str]): - customer_id (Union[Unset, str]): - webhook (Union[Unset, str]): - deploy_to (Union[Unset, str]): - openai_resource_path (Union[Unset, str]): - error_handler (Union[Unset, str]): - error_handler_extra_args (Union[Unset, GetSettingsResponse200ErrorHandlerExtraArgs]): - error_handler_muted_on_cancel (Union[Unset, bool]): - large_file_storage (Union[Unset, GetSettingsResponse200LargeFileStorage]): - git_sync (Union[Unset, List['GetSettingsResponse200GitSyncItem']]): - """ - - code_completion_enabled: bool - workspace_id: Union[Unset, str] = UNSET - slack_name: Union[Unset, str] = UNSET - slack_team_id: Union[Unset, str] = UNSET - slack_command_script: Union[Unset, str] = UNSET - auto_invite_domain: Union[Unset, str] = UNSET - auto_invite_operator: Union[Unset, bool] = UNSET - plan: Union[Unset, str] = UNSET - customer_id: Union[Unset, str] = UNSET - webhook: Union[Unset, str] = UNSET - deploy_to: Union[Unset, str] = UNSET - openai_resource_path: Union[Unset, str] = UNSET - error_handler: Union[Unset, str] = UNSET - error_handler_extra_args: Union[Unset, 'GetSettingsResponse200ErrorHandlerExtraArgs'] = UNSET - error_handler_muted_on_cancel: Union[Unset, bool] = UNSET - large_file_storage: Union[Unset, 'GetSettingsResponse200LargeFileStorage'] = UNSET - git_sync: Union[Unset, List['GetSettingsResponse200GitSyncItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage - from ..models.get_settings_response_200_error_handler_extra_args import GetSettingsResponse200ErrorHandlerExtraArgs - from ..models.get_settings_response_200_git_sync_item import GetSettingsResponse200GitSyncItem - code_completion_enabled = self.code_completion_enabled - workspace_id = self.workspace_id - slack_name = self.slack_name - slack_team_id = self.slack_team_id - slack_command_script = self.slack_command_script - auto_invite_domain = self.auto_invite_domain - auto_invite_operator = self.auto_invite_operator - plan = self.plan - customer_id = self.customer_id - webhook = self.webhook - deploy_to = self.deploy_to - openai_resource_path = self.openai_resource_path - error_handler = self.error_handler - error_handler_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.error_handler_extra_args, Unset): - error_handler_extra_args = self.error_handler_extra_args.to_dict() - - error_handler_muted_on_cancel = self.error_handler_muted_on_cancel - large_file_storage: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.large_file_storage, Unset): - large_file_storage = self.large_file_storage.to_dict() - - git_sync: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.git_sync, Unset): - git_sync = [] - for git_sync_item_data in self.git_sync: - git_sync_item = git_sync_item_data.to_dict() - - git_sync.append(git_sync_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "code_completion_enabled": code_completion_enabled, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if slack_name is not UNSET: - field_dict["slack_name"] = slack_name - if slack_team_id is not UNSET: - field_dict["slack_team_id"] = slack_team_id - if slack_command_script is not UNSET: - field_dict["slack_command_script"] = slack_command_script - if auto_invite_domain is not UNSET: - field_dict["auto_invite_domain"] = auto_invite_domain - if auto_invite_operator is not UNSET: - field_dict["auto_invite_operator"] = auto_invite_operator - if plan is not UNSET: - field_dict["plan"] = plan - if customer_id is not UNSET: - field_dict["customer_id"] = customer_id - if webhook is not UNSET: - field_dict["webhook"] = webhook - if deploy_to is not UNSET: - field_dict["deploy_to"] = deploy_to - if openai_resource_path is not UNSET: - field_dict["openai_resource_path"] = openai_resource_path - if error_handler is not UNSET: - field_dict["error_handler"] = error_handler - if error_handler_extra_args is not UNSET: - field_dict["error_handler_extra_args"] = error_handler_extra_args - if error_handler_muted_on_cancel is not UNSET: - field_dict["error_handler_muted_on_cancel"] = error_handler_muted_on_cancel - if large_file_storage is not UNSET: - field_dict["large_file_storage"] = large_file_storage - if git_sync is not UNSET: - field_dict["git_sync"] = git_sync - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_settings_response_200_large_file_storage import GetSettingsResponse200LargeFileStorage - from ..models.get_settings_response_200_error_handler_extra_args import GetSettingsResponse200ErrorHandlerExtraArgs - from ..models.get_settings_response_200_git_sync_item import GetSettingsResponse200GitSyncItem - d = src_dict.copy() - code_completion_enabled = d.pop("code_completion_enabled") - - workspace_id = d.pop("workspace_id", UNSET) - - slack_name = d.pop("slack_name", UNSET) - - slack_team_id = d.pop("slack_team_id", UNSET) - - slack_command_script = d.pop("slack_command_script", UNSET) - - auto_invite_domain = d.pop("auto_invite_domain", UNSET) - - auto_invite_operator = d.pop("auto_invite_operator", UNSET) - - plan = d.pop("plan", UNSET) - - customer_id = d.pop("customer_id", UNSET) - - webhook = d.pop("webhook", UNSET) - - deploy_to = d.pop("deploy_to", UNSET) - - openai_resource_path = d.pop("openai_resource_path", UNSET) - - error_handler = d.pop("error_handler", UNSET) - - _error_handler_extra_args = d.pop("error_handler_extra_args", UNSET) - error_handler_extra_args: Union[Unset, GetSettingsResponse200ErrorHandlerExtraArgs] - if isinstance(_error_handler_extra_args, Unset): - error_handler_extra_args = UNSET - else: - error_handler_extra_args = GetSettingsResponse200ErrorHandlerExtraArgs.from_dict(_error_handler_extra_args) - - - - - error_handler_muted_on_cancel = d.pop("error_handler_muted_on_cancel", UNSET) - - _large_file_storage = d.pop("large_file_storage", UNSET) - large_file_storage: Union[Unset, GetSettingsResponse200LargeFileStorage] - if isinstance(_large_file_storage, Unset): - large_file_storage = UNSET - else: - large_file_storage = GetSettingsResponse200LargeFileStorage.from_dict(_large_file_storage) - - - - - git_sync = [] - _git_sync = d.pop("git_sync", UNSET) - for git_sync_item_data in (_git_sync or []): - git_sync_item = GetSettingsResponse200GitSyncItem.from_dict(git_sync_item_data) - - - - git_sync.append(git_sync_item) - - - get_settings_response_200 = cls( - code_completion_enabled=code_completion_enabled, - workspace_id=workspace_id, - slack_name=slack_name, - slack_team_id=slack_team_id, - slack_command_script=slack_command_script, - auto_invite_domain=auto_invite_domain, - auto_invite_operator=auto_invite_operator, - plan=plan, - customer_id=customer_id, - webhook=webhook, - deploy_to=deploy_to, - openai_resource_path=openai_resource_path, - error_handler=error_handler, - error_handler_extra_args=error_handler_extra_args, - error_handler_muted_on_cancel=error_handler_muted_on_cancel, - large_file_storage=large_file_storage, - git_sync=git_sync, - ) - - get_settings_response_200.additional_properties = d - return get_settings_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_settings_response_200_error_handler_extra_args.py b/python-client/windmill-api/windmill_api/models/get_settings_response_200_error_handler_extra_args.py deleted file mode 100644 index b70cbf0bc1..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_settings_response_200_error_handler_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetSettingsResponse200ErrorHandlerExtraArgs") - - -@_attrs_define -class GetSettingsResponse200ErrorHandlerExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_settings_response_200_error_handler_extra_args = cls( - ) - - get_settings_response_200_error_handler_extra_args.additional_properties = d - return get_settings_response_200_error_handler_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_settings_response_200_git_sync_item.py b/python-client/windmill-api/windmill_api/models/get_settings_response_200_git_sync_item.py deleted file mode 100644 index 1b778b51e4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_settings_response_200_git_sync_item.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetSettingsResponse200GitSyncItem") - - -@_attrs_define -class GetSettingsResponse200GitSyncItem: - """ - Attributes: - script_path (str): - git_repo_resource_path (str): - use_individual_branch (Union[Unset, bool]): - """ - - script_path: str - git_repo_resource_path: str - use_individual_branch: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - script_path = self.script_path - git_repo_resource_path = self.git_repo_resource_path - use_individual_branch = self.use_individual_branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "script_path": script_path, - "git_repo_resource_path": git_repo_resource_path, - }) - if use_individual_branch is not UNSET: - field_dict["use_individual_branch"] = use_individual_branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_path = d.pop("script_path") - - git_repo_resource_path = d.pop("git_repo_resource_path") - - use_individual_branch = d.pop("use_individual_branch", UNSET) - - get_settings_response_200_git_sync_item = cls( - script_path=script_path, - git_repo_resource_path=git_repo_resource_path, - use_individual_branch=use_individual_branch, - ) - - get_settings_response_200_git_sync_item.additional_properties = d - return get_settings_response_200_git_sync_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_settings_response_200_large_file_storage.py b/python-client/windmill-api/windmill_api/models/get_settings_response_200_large_file_storage.py deleted file mode 100644 index e0439c3575..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_settings_response_200_large_file_storage.py +++ /dev/null @@ -1,93 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.get_settings_response_200_large_file_storage_type import GetSettingsResponse200LargeFileStorageType -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetSettingsResponse200LargeFileStorage") - - -@_attrs_define -class GetSettingsResponse200LargeFileStorage: - """ - Attributes: - type (Union[Unset, GetSettingsResponse200LargeFileStorageType]): - s3_resource_path (Union[Unset, str]): - """ - - type: Union[Unset, GetSettingsResponse200LargeFileStorageType] = UNSET - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, GetSettingsResponse200LargeFileStorageType] - if isinstance(_type, Unset): - type = UNSET - else: - type = GetSettingsResponse200LargeFileStorageType(_type) - - - - - s3_resource_path = d.pop("s3_resource_path", UNSET) - - get_settings_response_200_large_file_storage = cls( - type=type, - s3_resource_path=s3_resource_path, - ) - - get_settings_response_200_large_file_storage.additional_properties = d - return get_settings_response_200_large_file_storage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_settings_response_200_large_file_storage_type.py b/python-client/windmill-api/windmill_api/models/get_settings_response_200_large_file_storage_type.py deleted file mode 100644 index 722f05a2dc..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_settings_response_200_large_file_storage_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GetSettingsResponse200LargeFileStorageType(str, Enum): - S3STORAGE = "S3Storage" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200.py b/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200.py deleted file mode 100644 index 7e26e214e4..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200.py +++ /dev/null @@ -1,107 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_suspended_job_flow_response_200_approvers_item import GetSuspendedJobFlowResponse200ApproversItem - from ..models.get_suspended_job_flow_response_200_job import GetSuspendedJobFlowResponse200Job - - - - - -T = TypeVar("T", bound="GetSuspendedJobFlowResponse200") - - -@_attrs_define -class GetSuspendedJobFlowResponse200: - """ - Attributes: - job (GetSuspendedJobFlowResponse200Job): - approvers (List['GetSuspendedJobFlowResponse200ApproversItem']): - """ - - job: 'GetSuspendedJobFlowResponse200Job' - approvers: List['GetSuspendedJobFlowResponse200ApproversItem'] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_suspended_job_flow_response_200_approvers_item import GetSuspendedJobFlowResponse200ApproversItem - from ..models.get_suspended_job_flow_response_200_job import GetSuspendedJobFlowResponse200Job - job = self.job.to_dict() - - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "job": job, - "approvers": approvers, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_suspended_job_flow_response_200_approvers_item import GetSuspendedJobFlowResponse200ApproversItem - from ..models.get_suspended_job_flow_response_200_job import GetSuspendedJobFlowResponse200Job - d = src_dict.copy() - job = GetSuspendedJobFlowResponse200Job.from_dict(d.pop("job")) - - - - - approvers = [] - _approvers = d.pop("approvers") - for approvers_item_data in (_approvers): - approvers_item = GetSuspendedJobFlowResponse200ApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - get_suspended_job_flow_response_200 = cls( - job=job, - approvers=approvers, - ) - - get_suspended_job_flow_response_200.additional_properties = d - return get_suspended_job_flow_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_approvers_item.py b/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_approvers_item.py deleted file mode 100644 index f53fc27786..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetSuspendedJobFlowResponse200ApproversItem") - - -@_attrs_define -class GetSuspendedJobFlowResponse200ApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - get_suspended_job_flow_response_200_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - get_suspended_job_flow_response_200_approvers_item.additional_properties = d - return get_suspended_job_flow_response_200_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_job.py b/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_job.py deleted file mode 100644 index eeaacfc81b..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_job.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.get_suspended_job_flow_response_200_job_type import GetSuspendedJobFlowResponse200JobType - - - - - - -T = TypeVar("T", bound="GetSuspendedJobFlowResponse200Job") - - -@_attrs_define -class GetSuspendedJobFlowResponse200Job: - """ - Attributes: - type (Union[Unset, GetSuspendedJobFlowResponse200JobType]): - """ - - type: Union[Unset, GetSuspendedJobFlowResponse200JobType] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, GetSuspendedJobFlowResponse200JobType] - if isinstance(_type, Unset): - type = UNSET - else: - type = GetSuspendedJobFlowResponse200JobType(_type) - - - - - get_suspended_job_flow_response_200_job = cls( - type=type, - ) - - get_suspended_job_flow_response_200_job.additional_properties = d - return get_suspended_job_flow_response_200_job - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_job_type.py b/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_job_type.py deleted file mode 100644 index c859430a42..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_suspended_job_flow_response_200_job_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class GetSuspendedJobFlowResponse200JobType(str, Enum): - COMPLETEDJOB = "CompletedJob" - QUEUEDJOB = "QueuedJob" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/get_top_hub_scripts_response_200.py b/python-client/windmill-api/windmill_api/models/get_top_hub_scripts_response_200.py deleted file mode 100644 index e5d40631d9..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_top_hub_scripts_response_200.py +++ /dev/null @@ -1,98 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.get_top_hub_scripts_response_200_asks_item import GetTopHubScriptsResponse200AsksItem - - - - - -T = TypeVar("T", bound="GetTopHubScriptsResponse200") - - -@_attrs_define -class GetTopHubScriptsResponse200: - """ - Attributes: - asks (Union[Unset, List['GetTopHubScriptsResponse200AsksItem']]): - """ - - asks: Union[Unset, List['GetTopHubScriptsResponse200AsksItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_top_hub_scripts_response_200_asks_item import GetTopHubScriptsResponse200AsksItem - asks: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.asks, Unset): - asks = [] - for asks_item_data in self.asks: - asks_item = asks_item_data.to_dict() - - asks.append(asks_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if asks is not UNSET: - field_dict["asks"] = asks - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_top_hub_scripts_response_200_asks_item import GetTopHubScriptsResponse200AsksItem - d = src_dict.copy() - asks = [] - _asks = d.pop("asks", UNSET) - for asks_item_data in (_asks or []): - asks_item = GetTopHubScriptsResponse200AsksItem.from_dict(asks_item_data) - - - - asks.append(asks_item) - - - get_top_hub_scripts_response_200 = cls( - asks=asks, - ) - - get_top_hub_scripts_response_200.additional_properties = d - return get_top_hub_scripts_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_top_hub_scripts_response_200_asks_item.py b/python-client/windmill-api/windmill_api/models/get_top_hub_scripts_response_200_asks_item.py deleted file mode 100644 index 3ffe9ff15a..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_top_hub_scripts_response_200_asks_item.py +++ /dev/null @@ -1,119 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetTopHubScriptsResponse200AsksItem") - - -@_attrs_define -class GetTopHubScriptsResponse200AsksItem: - """ - Attributes: - id (float): - ask_id (float): - summary (str): - app (str): - version_id (float): - kind (Any): - votes (float): - views (float): - """ - - id: float - ask_id: float - summary: str - app: str - version_id: float - kind: Any - votes: float - views: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - ask_id = self.ask_id - summary = self.summary - app = self.app - version_id = self.version_id - kind = self.kind - votes = self.votes - views = self.views - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "ask_id": ask_id, - "summary": summary, - "app": app, - "version_id": version_id, - "kind": kind, - "votes": votes, - "views": views, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - ask_id = d.pop("ask_id") - - summary = d.pop("summary") - - app = d.pop("app") - - version_id = d.pop("version_id") - - kind = d.pop("kind") - - votes = d.pop("votes") - - views = d.pop("views") - - get_top_hub_scripts_response_200_asks_item = cls( - id=id, - ask_id=ask_id, - summary=summary, - app=app, - version_id=version_id, - kind=kind, - votes=votes, - views=views, - ) - - get_top_hub_scripts_response_200_asks_item.additional_properties = d - return get_top_hub_scripts_response_200_asks_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_tutorial_progress_response_200.py b/python-client/windmill-api/windmill_api/models/get_tutorial_progress_response_200.py deleted file mode 100644 index f6017d51cb..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_tutorial_progress_response_200.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GetTutorialProgressResponse200") - - -@_attrs_define -class GetTutorialProgressResponse200: - """ - Attributes: - progress (Union[Unset, int]): - """ - - progress: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - progress = self.progress - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if progress is not UNSET: - field_dict["progress"] = progress - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - progress = d.pop("progress", UNSET) - - get_tutorial_progress_response_200 = cls( - progress=progress, - ) - - get_tutorial_progress_response_200.additional_properties = d - return get_tutorial_progress_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_variable_response_200.py b/python-client/windmill-api/windmill_api/models/get_variable_response_200.py deleted file mode 100644 index a1586dc390..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_variable_response_200.py +++ /dev/null @@ -1,167 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.get_variable_response_200_extra_perms import GetVariableResponse200ExtraPerms - - - - - -T = TypeVar("T", bound="GetVariableResponse200") - - -@_attrs_define -class GetVariableResponse200: - """ - Attributes: - workspace_id (str): - path (str): - is_secret (bool): - extra_perms (GetVariableResponse200ExtraPerms): - value (Union[Unset, str]): - description (Union[Unset, str]): - account (Union[Unset, int]): - is_oauth (Union[Unset, bool]): - is_expired (Union[Unset, bool]): - refresh_error (Union[Unset, str]): - is_linked (Union[Unset, bool]): - is_refreshed (Union[Unset, bool]): - """ - - workspace_id: str - path: str - is_secret: bool - extra_perms: 'GetVariableResponse200ExtraPerms' - value: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - account: Union[Unset, int] = UNSET - is_oauth: Union[Unset, bool] = UNSET - is_expired: Union[Unset, bool] = UNSET - refresh_error: Union[Unset, str] = UNSET - is_linked: Union[Unset, bool] = UNSET - is_refreshed: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.get_variable_response_200_extra_perms import GetVariableResponse200ExtraPerms - workspace_id = self.workspace_id - path = self.path - is_secret = self.is_secret - extra_perms = self.extra_perms.to_dict() - - value = self.value - description = self.description - account = self.account - is_oauth = self.is_oauth - is_expired = self.is_expired - refresh_error = self.refresh_error - is_linked = self.is_linked - is_refreshed = self.is_refreshed - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "path": path, - "is_secret": is_secret, - "extra_perms": extra_perms, - }) - if value is not UNSET: - field_dict["value"] = value - if description is not UNSET: - field_dict["description"] = description - if account is not UNSET: - field_dict["account"] = account - if is_oauth is not UNSET: - field_dict["is_oauth"] = is_oauth - if is_expired is not UNSET: - field_dict["is_expired"] = is_expired - if refresh_error is not UNSET: - field_dict["refresh_error"] = refresh_error - if is_linked is not UNSET: - field_dict["is_linked"] = is_linked - if is_refreshed is not UNSET: - field_dict["is_refreshed"] = is_refreshed - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.get_variable_response_200_extra_perms import GetVariableResponse200ExtraPerms - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - is_secret = d.pop("is_secret") - - extra_perms = GetVariableResponse200ExtraPerms.from_dict(d.pop("extra_perms")) - - - - - value = d.pop("value", UNSET) - - description = d.pop("description", UNSET) - - account = d.pop("account", UNSET) - - is_oauth = d.pop("is_oauth", UNSET) - - is_expired = d.pop("is_expired", UNSET) - - refresh_error = d.pop("refresh_error", UNSET) - - is_linked = d.pop("is_linked", UNSET) - - is_refreshed = d.pop("is_refreshed", UNSET) - - get_variable_response_200 = cls( - workspace_id=workspace_id, - path=path, - is_secret=is_secret, - extra_perms=extra_perms, - value=value, - description=description, - account=account, - is_oauth=is_oauth, - is_expired=is_expired, - refresh_error=refresh_error, - is_linked=is_linked, - is_refreshed=is_refreshed, - ) - - get_variable_response_200.additional_properties = d - return get_variable_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/get_variable_response_200_extra_perms.py b/python-client/windmill-api/windmill_api/models/get_variable_response_200_extra_perms.py deleted file mode 100644 index 4fbfc756ec..0000000000 --- a/python-client/windmill-api/windmill_api/models/get_variable_response_200_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GetVariableResponse200ExtraPerms") - - -@_attrs_define -class GetVariableResponse200ExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - get_variable_response_200_extra_perms = cls( - ) - - - get_variable_response_200_extra_perms.additional_properties = d - return get_variable_response_200_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/global_user_info.py b/python-client/windmill-api/windmill_api/models/global_user_info.py deleted file mode 100644 index 828f5064f1..0000000000 --- a/python-client/windmill-api/windmill_api/models/global_user_info.py +++ /dev/null @@ -1,114 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.global_user_info_login_type import GlobalUserInfoLoginType - - - - - - -T = TypeVar("T", bound="GlobalUserInfo") - - -@_attrs_define -class GlobalUserInfo: - """ - Attributes: - email (str): - login_type (GlobalUserInfoLoginType): - super_admin (bool): - verified (bool): - name (Union[Unset, str]): - company (Union[Unset, str]): - """ - - email: str - login_type: GlobalUserInfoLoginType - super_admin: bool - verified: bool - name: Union[Unset, str] = UNSET - company: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - login_type = self.login_type.value - - super_admin = self.super_admin - verified = self.verified - name = self.name - company = self.company - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "login_type": login_type, - "super_admin": super_admin, - "verified": verified, - }) - if name is not UNSET: - field_dict["name"] = name - if company is not UNSET: - field_dict["company"] = company - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - login_type = GlobalUserInfoLoginType(d.pop("login_type")) - - - - - super_admin = d.pop("super_admin") - - verified = d.pop("verified") - - name = d.pop("name", UNSET) - - company = d.pop("company", UNSET) - - global_user_info = cls( - email=email, - login_type=login_type, - super_admin=super_admin, - verified=verified, - name=name, - company=company, - ) - - global_user_info.additional_properties = d - return global_user_info - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/global_user_info_login_type.py b/python-client/windmill-api/windmill_api/models/global_user_info_login_type.py deleted file mode 100644 index a4f0d7631f..0000000000 --- a/python-client/windmill-api/windmill_api/models/global_user_info_login_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class GlobalUserInfoLoginType(str, Enum): - GITHUB = "github" - PASSWORD = "password" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/global_user_update_json_body.py b/python-client/windmill-api/windmill_api/models/global_user_update_json_body.py deleted file mode 100644 index ba3203cf03..0000000000 --- a/python-client/windmill-api/windmill_api/models/global_user_update_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="GlobalUserUpdateJsonBody") - - -@_attrs_define -class GlobalUserUpdateJsonBody: - """ - Attributes: - is_super_admin (Union[Unset, bool]): - """ - - is_super_admin: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - is_super_admin = self.is_super_admin - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if is_super_admin is not UNSET: - field_dict["is_super_admin"] = is_super_admin - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - is_super_admin = d.pop("is_super_admin", UNSET) - - global_user_update_json_body = cls( - is_super_admin=is_super_admin, - ) - - global_user_update_json_body.additional_properties = d - return global_user_update_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/global_whoami_response_200.py b/python-client/windmill-api/windmill_api/models/global_whoami_response_200.py deleted file mode 100644 index 7ddb705dd1..0000000000 --- a/python-client/windmill-api/windmill_api/models/global_whoami_response_200.py +++ /dev/null @@ -1,114 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.global_whoami_response_200_login_type import GlobalWhoamiResponse200LoginType - - - - - - -T = TypeVar("T", bound="GlobalWhoamiResponse200") - - -@_attrs_define -class GlobalWhoamiResponse200: - """ - Attributes: - email (str): - login_type (GlobalWhoamiResponse200LoginType): - super_admin (bool): - verified (bool): - name (Union[Unset, str]): - company (Union[Unset, str]): - """ - - email: str - login_type: GlobalWhoamiResponse200LoginType - super_admin: bool - verified: bool - name: Union[Unset, str] = UNSET - company: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - login_type = self.login_type.value - - super_admin = self.super_admin - verified = self.verified - name = self.name - company = self.company - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "login_type": login_type, - "super_admin": super_admin, - "verified": verified, - }) - if name is not UNSET: - field_dict["name"] = name - if company is not UNSET: - field_dict["company"] = company - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - login_type = GlobalWhoamiResponse200LoginType(d.pop("login_type")) - - - - - super_admin = d.pop("super_admin") - - verified = d.pop("verified") - - name = d.pop("name", UNSET) - - company = d.pop("company", UNSET) - - global_whoami_response_200 = cls( - email=email, - login_type=login_type, - super_admin=super_admin, - verified=verified, - name=name, - company=company, - ) - - global_whoami_response_200.additional_properties = d - return global_whoami_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/global_whoami_response_200_login_type.py b/python-client/windmill-api/windmill_api/models/global_whoami_response_200_login_type.py deleted file mode 100644 index c57da8bc27..0000000000 --- a/python-client/windmill-api/windmill_api/models/global_whoami_response_200_login_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class GlobalWhoamiResponse200LoginType(str, Enum): - GITHUB = "github" - PASSWORD = "password" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/graphql.py b/python-client/windmill-api/windmill_api/models/graphql.py deleted file mode 100644 index 1259d17491..0000000000 --- a/python-client/windmill-api/windmill_api/models/graphql.py +++ /dev/null @@ -1,75 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.graphql_type import GraphqlType - - - - - - -T = TypeVar("T", bound="Graphql") - - -@_attrs_define -class Graphql: - """ - Attributes: - type (GraphqlType): - """ - - type: GraphqlType - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = GraphqlType(d.pop("type")) - - - - - graphql = cls( - type=type, - ) - - graphql.additional_properties = d - return graphql - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/graphql_type.py b/python-client/windmill-api/windmill_api/models/graphql_type.py deleted file mode 100644 index cd255f5ed9..0000000000 --- a/python-client/windmill-api/windmill_api/models/graphql_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class GraphqlType(str, Enum): - GRAPHQL = "graphql" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/group.py b/python-client/windmill-api/windmill_api/models/group.py deleted file mode 100644 index 85d7678bc9..0000000000 --- a/python-client/windmill-api/windmill_api/models/group.py +++ /dev/null @@ -1,121 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.group_extra_perms import GroupExtraPerms - - - - - -T = TypeVar("T", bound="Group") - - -@_attrs_define -class Group: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - members (Union[Unset, List[str]]): - extra_perms (Union[Unset, GroupExtraPerms]): - """ - - name: str - summary: Union[Unset, str] = UNSET - members: Union[Unset, List[str]] = UNSET - extra_perms: Union[Unset, 'GroupExtraPerms'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.group_extra_perms import GroupExtraPerms - name = self.name - summary = self.summary - members: Union[Unset, List[str]] = UNSET - if not isinstance(self.members, Unset): - members = self.members - - - - - extra_perms: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_perms, Unset): - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - if members is not UNSET: - field_dict["members"] = members - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.group_extra_perms import GroupExtraPerms - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - members = cast(List[str], d.pop("members", UNSET)) - - - _extra_perms = d.pop("extra_perms", UNSET) - extra_perms: Union[Unset, GroupExtraPerms] - if isinstance(_extra_perms, Unset): - extra_perms = UNSET - else: - extra_perms = GroupExtraPerms.from_dict(_extra_perms) - - - - - group = cls( - name=name, - summary=summary, - members=members, - extra_perms=extra_perms, - ) - - group.additional_properties = d - return group - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/group_extra_perms.py b/python-client/windmill-api/windmill_api/models/group_extra_perms.py deleted file mode 100644 index 8be45354da..0000000000 --- a/python-client/windmill-api/windmill_api/models/group_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="GroupExtraPerms") - - -@_attrs_define -class GroupExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - group_extra_perms = cls( - ) - - - group_extra_perms.additional_properties = d - return group_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/http.py b/python-client/windmill-api/windmill_api/models/http.py deleted file mode 100644 index 9d47d48b4e..0000000000 --- a/python-client/windmill-api/windmill_api/models/http.py +++ /dev/null @@ -1,75 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.http_type import HttpType - - - - - - -T = TypeVar("T", bound="Http") - - -@_attrs_define -class Http: - """ - Attributes: - type (HttpType): - """ - - type: HttpType - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = HttpType(d.pop("type")) - - - - - http = cls( - type=type, - ) - - http.additional_properties = d - return http - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/http_type.py b/python-client/windmill-api/windmill_api/models/http_type.py deleted file mode 100644 index fb36fa7f63..0000000000 --- a/python-client/windmill-api/windmill_api/models/http_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class HttpType(str, Enum): - HTTP = "http" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/identity.py b/python-client/windmill-api/windmill_api/models/identity.py deleted file mode 100644 index 4114407db3..0000000000 --- a/python-client/windmill-api/windmill_api/models/identity.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.identity_type import IdentityType - - - - - - -T = TypeVar("T", bound="Identity") - - -@_attrs_define -class Identity: - """ - Attributes: - type (IdentityType): - flow (Union[Unset, bool]): - """ - - type: IdentityType - flow: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - flow = self.flow - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if flow is not UNSET: - field_dict["flow"] = flow - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = IdentityType(d.pop("type")) - - - - - flow = d.pop("flow", UNSET) - - identity = cls( - type=type, - flow=flow, - ) - - identity.additional_properties = d - return identity - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/identity_type.py b/python-client/windmill-api/windmill_api/models/identity_type.py deleted file mode 100644 index e8b5d987f1..0000000000 --- a/python-client/windmill-api/windmill_api/models/identity_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class IdentityType(str, Enum): - IDENTITY = "identity" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/input_.py b/python-client/windmill-api/windmill_api/models/input_.py deleted file mode 100644 index 60c3273751..0000000000 --- a/python-client/windmill-api/windmill_api/models/input_.py +++ /dev/null @@ -1,131 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.input_args import InputArgs - - - - - -T = TypeVar("T", bound="Input") - - -@_attrs_define -class Input: - """ - Attributes: - id (str): - name (str): - args (InputArgs): - created_by (str): - created_at (datetime.datetime): - is_public (bool): - success (Union[Unset, bool]): - """ - - id: str - name: str - args: 'InputArgs' - created_by: str - created_at: datetime.datetime - is_public: bool - success: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.input_args import InputArgs - id = self.id - name = self.name - args = self.args.to_dict() - - created_by = self.created_by - created_at = self.created_at.isoformat() - - is_public = self.is_public - success = self.success - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "args": args, - "created_by": created_by, - "created_at": created_at, - "is_public": is_public, - }) - if success is not UNSET: - field_dict["success"] = success - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.input_args import InputArgs - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - args = InputArgs.from_dict(d.pop("args")) - - - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - is_public = d.pop("is_public") - - success = d.pop("success", UNSET) - - input_ = cls( - id=id, - name=name, - args=args, - created_by=created_by, - created_at=created_at, - is_public=is_public, - success=success, - ) - - input_.additional_properties = d - return input_ - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/input_args.py b/python-client/windmill-api/windmill_api/models/input_args.py deleted file mode 100644 index 66ccca15d5..0000000000 --- a/python-client/windmill-api/windmill_api/models/input_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="InputArgs") - - -@_attrs_define -class InputArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - input_args = cls( - ) - - input_args.additional_properties = d - return input_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/input_transform_type_0.py b/python-client/windmill-api/windmill_api/models/input_transform_type_0.py deleted file mode 100644 index 4fce8582a0..0000000000 --- a/python-client/windmill-api/windmill_api/models/input_transform_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.input_transform_type_0_type import InputTransformType0Type - - - - - - -T = TypeVar("T", bound="InputTransformType0") - - -@_attrs_define -class InputTransformType0: - """ - Attributes: - type (InputTransformType0Type): - value (Union[Unset, Any]): - """ - - type: InputTransformType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = InputTransformType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - input_transform_type_0 = cls( - type=type, - value=value, - ) - - input_transform_type_0.additional_properties = d - return input_transform_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/input_transform_type_0_type.py b/python-client/windmill-api/windmill_api/models/input_transform_type_0_type.py deleted file mode 100644 index d07c18df9e..0000000000 --- a/python-client/windmill-api/windmill_api/models/input_transform_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class InputTransformType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/input_transform_type_1.py b/python-client/windmill-api/windmill_api/models/input_transform_type_1.py deleted file mode 100644 index 88a7eb2c8b..0000000000 --- a/python-client/windmill-api/windmill_api/models/input_transform_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.input_transform_type_1_type import InputTransformType1Type - - - - - - -T = TypeVar("T", bound="InputTransformType1") - - -@_attrs_define -class InputTransformType1: - """ - Attributes: - expr (str): - type (InputTransformType1Type): - """ - - expr: str - type: InputTransformType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = InputTransformType1Type(d.pop("type")) - - - - - input_transform_type_1 = cls( - expr=expr, - type=type, - ) - - input_transform_type_1.additional_properties = d - return input_transform_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/input_transform_type_1_type.py b/python-client/windmill-api/windmill_api/models/input_transform_type_1_type.py deleted file mode 100644 index b74616a86c..0000000000 --- a/python-client/windmill-api/windmill_api/models/input_transform_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class InputTransformType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/instance_group.py b/python-client/windmill-api/windmill_api/models/instance_group.py deleted file mode 100644 index e392920a43..0000000000 --- a/python-client/windmill-api/windmill_api/models/instance_group.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="InstanceGroup") - - -@_attrs_define -class InstanceGroup: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - emails (Union[Unset, List[str]]): - """ - - name: str - summary: Union[Unset, str] = UNSET - emails: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - summary = self.summary - emails: Union[Unset, List[str]] = UNSET - if not isinstance(self.emails, Unset): - emails = self.emails - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - if emails is not UNSET: - field_dict["emails"] = emails - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - emails = cast(List[str], d.pop("emails", UNSET)) - - - instance_group = cls( - name=name, - summary=summary, - emails=emails, - ) - - instance_group.additional_properties = d - return instance_group - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/invite_user_json_body.py b/python-client/windmill-api/windmill_api/models/invite_user_json_body.py deleted file mode 100644 index c4a8c76338..0000000000 --- a/python-client/windmill-api/windmill_api/models/invite_user_json_body.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="InviteUserJsonBody") - - -@_attrs_define -class InviteUserJsonBody: - """ - Attributes: - email (str): - is_admin (bool): - operator (bool): - """ - - email: str - is_admin: bool - operator: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - is_admin = self.is_admin - operator = self.operator - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "is_admin": is_admin, - "operator": operator, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - is_admin = d.pop("is_admin") - - operator = d.pop("operator") - - invite_user_json_body = cls( - email=email, - is_admin=is_admin, - operator=operator, - ) - - invite_user_json_body.additional_properties = d - return invite_user_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/javascript_transform.py b/python-client/windmill-api/windmill_api/models/javascript_transform.py deleted file mode 100644 index 433c573575..0000000000 --- a/python-client/windmill-api/windmill_api/models/javascript_transform.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.javascript_transform_type import JavascriptTransformType - - - - - - -T = TypeVar("T", bound="JavascriptTransform") - - -@_attrs_define -class JavascriptTransform: - """ - Attributes: - expr (str): - type (JavascriptTransformType): - """ - - expr: str - type: JavascriptTransformType - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = JavascriptTransformType(d.pop("type")) - - - - - javascript_transform = cls( - expr=expr, - type=type, - ) - - javascript_transform.additional_properties = d - return javascript_transform - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/javascript_transform_type.py b/python-client/windmill-api/windmill_api/models/javascript_transform_type.py deleted file mode 100644 index 7df27566c1..0000000000 --- a/python-client/windmill-api/windmill_api/models/javascript_transform_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class JavascriptTransformType(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/job.py b/python-client/windmill-api/windmill_api/models/job.py deleted file mode 100644 index b4160bbba5..0000000000 --- a/python-client/windmill-api/windmill_api/models/job.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.job_type import JobType - - - - - - -T = TypeVar("T", bound="Job") - - -@_attrs_define -class Job: - """ - Attributes: - type (Union[Unset, JobType]): - """ - - type: Union[Unset, JobType] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, JobType] - if isinstance(_type, Unset): - type = UNSET - else: - type = JobType(_type) - - - - - job = cls( - type=type, - ) - - job.additional_properties = d - return job - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/job_type.py b/python-client/windmill-api/windmill_api/models/job_type.py deleted file mode 100644 index d4be080757..0000000000 --- a/python-client/windmill-api/windmill_api/models/job_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class JobType(str, Enum): - COMPLETEDJOB = "CompletedJob" - QUEUEDJOB = "QueuedJob" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/large_file_storage.py b/python-client/windmill-api/windmill_api/models/large_file_storage.py deleted file mode 100644 index 751bca56e6..0000000000 --- a/python-client/windmill-api/windmill_api/models/large_file_storage.py +++ /dev/null @@ -1,93 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.large_file_storage_type import LargeFileStorageType - - - - - - -T = TypeVar("T", bound="LargeFileStorage") - - -@_attrs_define -class LargeFileStorage: - """ - Attributes: - type (Union[Unset, LargeFileStorageType]): - s3_resource_path (Union[Unset, str]): - """ - - type: Union[Unset, LargeFileStorageType] = UNSET - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, LargeFileStorageType] - if isinstance(_type, Unset): - type = UNSET - else: - type = LargeFileStorageType(_type) - - - - - s3_resource_path = d.pop("s3_resource_path", UNSET) - - large_file_storage = cls( - type=type, - s3_resource_path=s3_resource_path, - ) - - large_file_storage.additional_properties = d - return large_file_storage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/large_file_storage_type.py b/python-client/windmill-api/windmill_api/models/large_file_storage_type.py deleted file mode 100644 index 992879ef9b..0000000000 --- a/python-client/windmill-api/windmill_api/models/large_file_storage_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class LargeFileStorageType(str, Enum): - S3STORAGE = "S3Storage" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_apps_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_apps_response_200_item.py deleted file mode 100644 index 3338a640c3..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_apps_response_200_item.py +++ /dev/null @@ -1,150 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.list_apps_response_200_item_execution_mode import ListAppsResponse200ItemExecutionMode -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_apps_response_200_item_extra_perms import ListAppsResponse200ItemExtraPerms - - - - - -T = TypeVar("T", bound="ListAppsResponse200Item") - - -@_attrs_define -class ListAppsResponse200Item: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - version (int): - extra_perms (ListAppsResponse200ItemExtraPerms): - edited_at (datetime.datetime): - execution_mode (ListAppsResponse200ItemExecutionMode): - starred (Union[Unset, bool]): - """ - - id: int - workspace_id: str - path: str - summary: str - version: int - extra_perms: 'ListAppsResponse200ItemExtraPerms' - edited_at: datetime.datetime - execution_mode: ListAppsResponse200ItemExecutionMode - starred: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_apps_response_200_item_extra_perms import ListAppsResponse200ItemExtraPerms - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - version = self.version - extra_perms = self.extra_perms.to_dict() - - edited_at = self.edited_at.isoformat() - - execution_mode = self.execution_mode.value - - starred = self.starred - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "version": version, - "extra_perms": extra_perms, - "edited_at": edited_at, - "execution_mode": execution_mode, - }) - if starred is not UNSET: - field_dict["starred"] = starred - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_apps_response_200_item_extra_perms import ListAppsResponse200ItemExtraPerms - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - version = d.pop("version") - - extra_perms = ListAppsResponse200ItemExtraPerms.from_dict(d.pop("extra_perms")) - - - - - edited_at = isoparse(d.pop("edited_at")) - - - - - execution_mode = ListAppsResponse200ItemExecutionMode(d.pop("execution_mode")) - - - - - starred = d.pop("starred", UNSET) - - list_apps_response_200_item = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - version=version, - extra_perms=extra_perms, - edited_at=edited_at, - execution_mode=execution_mode, - starred=starred, - ) - - list_apps_response_200_item.additional_properties = d - return list_apps_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_apps_response_200_item_execution_mode.py b/python-client/windmill-api/windmill_api/models/list_apps_response_200_item_execution_mode.py deleted file mode 100644 index 9b0de31cb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_apps_response_200_item_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class ListAppsResponse200ItemExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_apps_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_apps_response_200_item_extra_perms.py deleted file mode 100644 index b69a2e188b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_apps_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListAppsResponse200ItemExtraPerms") - - -@_attrs_define -class ListAppsResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_apps_response_200_item_extra_perms = cls( - ) - - - list_apps_response_200_item_extra_perms.additional_properties = d - return list_apps_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_audit_logs_action_kind.py b/python-client/windmill-api/windmill_api/models/list_audit_logs_action_kind.py deleted file mode 100644 index fcee99e3a2..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_audit_logs_action_kind.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class ListAuditLogsActionKind(str, Enum): - CREATE = "Create" - DELETE = "Delete" - EXECUTE = "Execute" - UPDATE = "Update" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item.py deleted file mode 100644 index 0873508476..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item.py +++ /dev/null @@ -1,149 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.list_audit_logs_response_200_item_operation import ListAuditLogsResponse200ItemOperation -from typing import Dict -from ..models.list_audit_logs_response_200_item_action_kind import ListAuditLogsResponse200ItemActionKind -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_audit_logs_response_200_item_parameters import ListAuditLogsResponse200ItemParameters - - - - - -T = TypeVar("T", bound="ListAuditLogsResponse200Item") - - -@_attrs_define -class ListAuditLogsResponse200Item: - """ - Attributes: - id (int): - timestamp (datetime.datetime): - username (str): - operation (ListAuditLogsResponse200ItemOperation): - action_kind (ListAuditLogsResponse200ItemActionKind): - resource (Union[Unset, str]): - parameters (Union[Unset, ListAuditLogsResponse200ItemParameters]): - """ - - id: int - timestamp: datetime.datetime - username: str - operation: ListAuditLogsResponse200ItemOperation - action_kind: ListAuditLogsResponse200ItemActionKind - resource: Union[Unset, str] = UNSET - parameters: Union[Unset, 'ListAuditLogsResponse200ItemParameters'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_audit_logs_response_200_item_parameters import ListAuditLogsResponse200ItemParameters - id = self.id - timestamp = self.timestamp.isoformat() - - username = self.username - operation = self.operation.value - - action_kind = self.action_kind.value - - resource = self.resource - parameters: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.parameters, Unset): - parameters = self.parameters.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "timestamp": timestamp, - "username": username, - "operation": operation, - "action_kind": action_kind, - }) - if resource is not UNSET: - field_dict["resource"] = resource - if parameters is not UNSET: - field_dict["parameters"] = parameters - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_audit_logs_response_200_item_parameters import ListAuditLogsResponse200ItemParameters - d = src_dict.copy() - id = d.pop("id") - - timestamp = isoparse(d.pop("timestamp")) - - - - - username = d.pop("username") - - operation = ListAuditLogsResponse200ItemOperation(d.pop("operation")) - - - - - action_kind = ListAuditLogsResponse200ItemActionKind(d.pop("action_kind")) - - - - - resource = d.pop("resource", UNSET) - - _parameters = d.pop("parameters", UNSET) - parameters: Union[Unset, ListAuditLogsResponse200ItemParameters] - if isinstance(_parameters, Unset): - parameters = UNSET - else: - parameters = ListAuditLogsResponse200ItemParameters.from_dict(_parameters) - - - - - list_audit_logs_response_200_item = cls( - id=id, - timestamp=timestamp, - username=username, - operation=operation, - action_kind=action_kind, - resource=resource, - parameters=parameters, - ) - - list_audit_logs_response_200_item.additional_properties = d - return list_audit_logs_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_action_kind.py b/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_action_kind.py deleted file mode 100644 index fbf34b2ec5..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_action_kind.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class ListAuditLogsResponse200ItemActionKind(str, Enum): - CREATED = "Created" - DELETE = "Delete" - EXECUTE = "Execute" - UPDATED = "Updated" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_operation.py b/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_operation.py deleted file mode 100644 index 173452cb8f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_operation.py +++ /dev/null @@ -1,89 +0,0 @@ -from enum import Enum - -class ListAuditLogsResponse200ItemOperation(str, Enum): - ACCOUNT_DELETE = "account.delete" - APPS_CREATE = "apps.create" - APPS_DELETE = "apps.delete" - APPS_UPDATE = "apps.update" - FLOWS_ARCHIVE = "flows.archive" - FLOWS_CREATE = "flows.create" - FLOWS_DELETE = "flows.delete" - FLOWS_UPDATE = "flows.update" - FOLDER_ADD_OWNER = "folder.add_owner" - FOLDER_CREATE = "folder.create" - FOLDER_DELETE = "folder.delete" - FOLDER_REMOVE_OWNER = "folder.remove_owner" - FOLDER_UPDATE = "folder.update" - GROUP_ADDUSER = "group.adduser" - GROUP_CREATE = "group.create" - GROUP_DELETE = "group.delete" - GROUP_EDIT = "group.edit" - GROUP_REMOVEUSER = "group.removeuser" - IGROUP_ADDUSER = "igroup.adduser" - IGROUP_CREATE = "igroup.create" - IGROUP_DELETE = "igroup.delete" - IGROUP_REMOVEUSER = "igroup.removeuser" - JOBS = "jobs" - JOBS_CANCEL = "jobs.cancel" - JOBS_DELETE = "jobs.delete" - JOBS_DISAPPROVAL = "jobs.disapproval" - JOBS_FLOW_DEPENDENCIES = "jobs.flow_dependencies" - JOBS_FORCE_CANCEL = "jobs.force_cancel" - JOBS_RUN = "jobs.run" - JOBS_RUN_DEPENDENCIES = "jobs.run.dependencies" - JOBS_RUN_FLOW = "jobs.run.flow" - JOBS_RUN_FLOW_PREVIEW = "jobs.run.flow_preview" - JOBS_RUN_IDENTITY = "jobs.run.identity" - JOBS_RUN_NOOP = "jobs.run.noop" - JOBS_RUN_PREVIEW = "jobs.run.preview" - JOBS_RUN_SCRIPT = "jobs.run.script" - JOBS_RUN_SCRIPT_HUB = "jobs.run.script_hub" - OAUTH_LOGIN = "oauth.login" - OAUTH_SIGNUP = "oauth.signup" - OPENAI_REQUEST = "openai.request" - RESOURCES_CREATE = "resources.create" - RESOURCES_DELETE = "resources.delete" - RESOURCES_UPDATE = "resources.update" - RESOURCE_TYPES_CREATE = "resource_types.create" - RESOURCE_TYPES_DELETE = "resource_types.delete" - RESOURCE_TYPES_UPDATE = "resource_types.update" - SCHEDULE_CREATE = "schedule.create" - SCHEDULE_DELETE = "schedule.delete" - SCHEDULE_EDIT = "schedule.edit" - SCHEDULE_SETENABLED = "schedule.setenabled" - SCRIPTS_ARCHIVE = "scripts.archive" - SCRIPTS_CREATE = "scripts.create" - SCRIPTS_DELETE = "scripts.delete" - SCRIPTS_UPDATE = "scripts.update" - USERS_ACCEPT_INVITE = "users.accept_invite" - USERS_ADD_GLOBAL = "users.add_global" - USERS_ADD_TO_WORKSPACE = "users.add_to_workspace" - USERS_CREATE = "users.create" - USERS_DECLINE_INVITE = "users.decline_invite" - USERS_DELETE = "users.delete" - USERS_IMPERSONATE = "users.impersonate" - USERS_LEAVE_WORKSPACE = "users.leave_workspace" - USERS_LOGIN = "users.login" - USERS_LOGOUT = "users.logout" - USERS_SETPASSWORD = "users.setpassword" - USERS_TOKEN_CREATE = "users.token.create" - USERS_TOKEN_DELETE = "users.token.delete" - USERS_UPDATE = "users.update" - VARIABLES_CREATE = "variables.create" - VARIABLES_DECRYPT_SECRET = "variables.decrypt_secret" - VARIABLES_DELETE = "variables.delete" - VARIABLES_UPDATE = "variables.update" - WORKSPACES_ARCHIVE = "workspaces.archive" - WORKSPACES_CREATE = "workspaces.create" - WORKSPACES_DELETE = "workspaces.delete" - WORKSPACES_EDIT_AUTO_INVITE_DOMAIN = "workspaces.edit_auto_invite_domain" - WORKSPACES_EDIT_COMMAND_SCRIPT = "workspaces.edit_command_script" - WORKSPACES_EDIT_COPILOT_CONFIG = "workspaces.edit_copilot_config" - WORKSPACES_EDIT_DEPLOY_TO = "workspaces.edit_deploy_to" - WORKSPACES_EDIT_ERROR_HANDLER = "workspaces.edit_error_handler" - WORKSPACES_EDIT_WEBHOOK = "workspaces.edit_webhook" - WORKSPACES_UNARCHIVE = "workspaces.unarchive" - WORKSPACES_UPDATE = "workspaces.update" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_parameters.py b/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_parameters.py deleted file mode 100644 index 06c450e2ae..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_audit_logs_response_200_item_parameters.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListAuditLogsResponse200ItemParameters") - - -@_attrs_define -class ListAuditLogsResponse200ItemParameters: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_audit_logs_response_200_item_parameters = cls( - ) - - list_audit_logs_response_200_item_parameters.additional_properties = d - return list_audit_logs_response_200_item_parameters - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item.py deleted file mode 100644 index a88e1ec230..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item.py +++ /dev/null @@ -1,372 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.list_completed_jobs_response_200_item_job_kind import ListCompletedJobsResponse200ItemJobKind -from typing import Dict -from ..models.list_completed_jobs_response_200_item_language import ListCompletedJobsResponse200ItemLanguage -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow import ListCompletedJobsResponse200ItemRawFlow - from ..models.list_completed_jobs_response_200_item_args import ListCompletedJobsResponse200ItemArgs - from ..models.list_completed_jobs_response_200_item_flow_status import ListCompletedJobsResponse200ItemFlowStatus - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200Item") - - -@_attrs_define -class ListCompletedJobsResponse200Item: - """ - Attributes: - id (str): - created_by (str): - created_at (datetime.datetime): - started_at (datetime.datetime): - duration_ms (int): - success (bool): - canceled (bool): - job_kind (ListCompletedJobsResponse200ItemJobKind): - permissioned_as (str): The user (u/userfoo) or group (g/groupfoo) whom - the execution of this script will be permissioned_as and by extension its DT_TOKEN. - is_flow_step (bool): - is_skipped (bool): - email (str): - visible_to_owner (bool): - tag (str): - workspace_id (Union[Unset, str]): - parent_job (Union[Unset, str]): - script_path (Union[Unset, str]): - script_hash (Union[Unset, str]): - args (Union[Unset, ListCompletedJobsResponse200ItemArgs]): - result (Union[Unset, Any]): - logs (Union[Unset, str]): - deleted (Union[Unset, bool]): - raw_code (Union[Unset, str]): - canceled_by (Union[Unset, str]): - canceled_reason (Union[Unset, str]): - schedule_path (Union[Unset, str]): - flow_status (Union[Unset, ListCompletedJobsResponse200ItemFlowStatus]): - raw_flow (Union[Unset, ListCompletedJobsResponse200ItemRawFlow]): - language (Union[Unset, ListCompletedJobsResponse200ItemLanguage]): - mem_peak (Union[Unset, int]): - priority (Union[Unset, int]): - """ - - id: str - created_by: str - created_at: datetime.datetime - started_at: datetime.datetime - duration_ms: int - success: bool - canceled: bool - job_kind: ListCompletedJobsResponse200ItemJobKind - permissioned_as: str - is_flow_step: bool - is_skipped: bool - email: str - visible_to_owner: bool - tag: str - workspace_id: Union[Unset, str] = UNSET - parent_job: Union[Unset, str] = UNSET - script_path: Union[Unset, str] = UNSET - script_hash: Union[Unset, str] = UNSET - args: Union[Unset, 'ListCompletedJobsResponse200ItemArgs'] = UNSET - result: Union[Unset, Any] = UNSET - logs: Union[Unset, str] = UNSET - deleted: Union[Unset, bool] = UNSET - raw_code: Union[Unset, str] = UNSET - canceled_by: Union[Unset, str] = UNSET - canceled_reason: Union[Unset, str] = UNSET - schedule_path: Union[Unset, str] = UNSET - flow_status: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatus'] = UNSET - raw_flow: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlow'] = UNSET - language: Union[Unset, ListCompletedJobsResponse200ItemLanguage] = UNSET - mem_peak: Union[Unset, int] = UNSET - priority: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow import ListCompletedJobsResponse200ItemRawFlow - from ..models.list_completed_jobs_response_200_item_args import ListCompletedJobsResponse200ItemArgs - from ..models.list_completed_jobs_response_200_item_flow_status import ListCompletedJobsResponse200ItemFlowStatus - id = self.id - created_by = self.created_by - created_at = self.created_at.isoformat() - - started_at = self.started_at.isoformat() - - duration_ms = self.duration_ms - success = self.success - canceled = self.canceled - job_kind = self.job_kind.value - - permissioned_as = self.permissioned_as - is_flow_step = self.is_flow_step - is_skipped = self.is_skipped - email = self.email - visible_to_owner = self.visible_to_owner - tag = self.tag - workspace_id = self.workspace_id - parent_job = self.parent_job - script_path = self.script_path - script_hash = self.script_hash - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - result = self.result - logs = self.logs - deleted = self.deleted - raw_code = self.raw_code - canceled_by = self.canceled_by - canceled_reason = self.canceled_reason - schedule_path = self.schedule_path - flow_status: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.flow_status, Unset): - flow_status = self.flow_status.to_dict() - - raw_flow: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.raw_flow, Unset): - raw_flow = self.raw_flow.to_dict() - - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - mem_peak = self.mem_peak - priority = self.priority - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "created_by": created_by, - "created_at": created_at, - "started_at": started_at, - "duration_ms": duration_ms, - "success": success, - "canceled": canceled, - "job_kind": job_kind, - "permissioned_as": permissioned_as, - "is_flow_step": is_flow_step, - "is_skipped": is_skipped, - "email": email, - "visible_to_owner": visible_to_owner, - "tag": tag, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_job is not UNSET: - field_dict["parent_job"] = parent_job - if script_path is not UNSET: - field_dict["script_path"] = script_path - if script_hash is not UNSET: - field_dict["script_hash"] = script_hash - if args is not UNSET: - field_dict["args"] = args - if result is not UNSET: - field_dict["result"] = result - if logs is not UNSET: - field_dict["logs"] = logs - if deleted is not UNSET: - field_dict["deleted"] = deleted - if raw_code is not UNSET: - field_dict["raw_code"] = raw_code - if canceled_by is not UNSET: - field_dict["canceled_by"] = canceled_by - if canceled_reason is not UNSET: - field_dict["canceled_reason"] = canceled_reason - if schedule_path is not UNSET: - field_dict["schedule_path"] = schedule_path - if flow_status is not UNSET: - field_dict["flow_status"] = flow_status - if raw_flow is not UNSET: - field_dict["raw_flow"] = raw_flow - if language is not UNSET: - field_dict["language"] = language - if mem_peak is not UNSET: - field_dict["mem_peak"] = mem_peak - if priority is not UNSET: - field_dict["priority"] = priority - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow import ListCompletedJobsResponse200ItemRawFlow - from ..models.list_completed_jobs_response_200_item_args import ListCompletedJobsResponse200ItemArgs - from ..models.list_completed_jobs_response_200_item_flow_status import ListCompletedJobsResponse200ItemFlowStatus - d = src_dict.copy() - id = d.pop("id") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - started_at = isoparse(d.pop("started_at")) - - - - - duration_ms = d.pop("duration_ms") - - success = d.pop("success") - - canceled = d.pop("canceled") - - job_kind = ListCompletedJobsResponse200ItemJobKind(d.pop("job_kind")) - - - - - permissioned_as = d.pop("permissioned_as") - - is_flow_step = d.pop("is_flow_step") - - is_skipped = d.pop("is_skipped") - - email = d.pop("email") - - visible_to_owner = d.pop("visible_to_owner") - - tag = d.pop("tag") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_job = d.pop("parent_job", UNSET) - - script_path = d.pop("script_path", UNSET) - - script_hash = d.pop("script_hash", UNSET) - - _args = d.pop("args", UNSET) - args: Union[Unset, ListCompletedJobsResponse200ItemArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = ListCompletedJobsResponse200ItemArgs.from_dict(_args) - - - - - result = d.pop("result", UNSET) - - logs = d.pop("logs", UNSET) - - deleted = d.pop("deleted", UNSET) - - raw_code = d.pop("raw_code", UNSET) - - canceled_by = d.pop("canceled_by", UNSET) - - canceled_reason = d.pop("canceled_reason", UNSET) - - schedule_path = d.pop("schedule_path", UNSET) - - _flow_status = d.pop("flow_status", UNSET) - flow_status: Union[Unset, ListCompletedJobsResponse200ItemFlowStatus] - if isinstance(_flow_status, Unset): - flow_status = UNSET - else: - flow_status = ListCompletedJobsResponse200ItemFlowStatus.from_dict(_flow_status) - - - - - _raw_flow = d.pop("raw_flow", UNSET) - raw_flow: Union[Unset, ListCompletedJobsResponse200ItemRawFlow] - if isinstance(_raw_flow, Unset): - raw_flow = UNSET - else: - raw_flow = ListCompletedJobsResponse200ItemRawFlow.from_dict(_raw_flow) - - - - - _language = d.pop("language", UNSET) - language: Union[Unset, ListCompletedJobsResponse200ItemLanguage] - if isinstance(_language, Unset): - language = UNSET - else: - language = ListCompletedJobsResponse200ItemLanguage(_language) - - - - - mem_peak = d.pop("mem_peak", UNSET) - - priority = d.pop("priority", UNSET) - - list_completed_jobs_response_200_item = cls( - id=id, - created_by=created_by, - created_at=created_at, - started_at=started_at, - duration_ms=duration_ms, - success=success, - canceled=canceled, - job_kind=job_kind, - permissioned_as=permissioned_as, - is_flow_step=is_flow_step, - is_skipped=is_skipped, - email=email, - visible_to_owner=visible_to_owner, - tag=tag, - workspace_id=workspace_id, - parent_job=parent_job, - script_path=script_path, - script_hash=script_hash, - args=args, - result=result, - logs=logs, - deleted=deleted, - raw_code=raw_code, - canceled_by=canceled_by, - canceled_reason=canceled_reason, - schedule_path=schedule_path, - flow_status=flow_status, - raw_flow=raw_flow, - language=language, - mem_peak=mem_peak, - priority=priority, - ) - - list_completed_jobs_response_200_item.additional_properties = d - return list_completed_jobs_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_args.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_args.py deleted file mode 100644 index 0eda55a830..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemArgs") - - -@_attrs_define -class ListCompletedJobsResponse200ItemArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_completed_jobs_response_200_item_args = cls( - ) - - list_completed_jobs_response_200_item_args.additional_properties = d - return list_completed_jobs_response_200_item_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status.py deleted file mode 100644 index b1119c601f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status.py +++ /dev/null @@ -1,138 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_flow_status_retry import ListCompletedJobsResponse200ItemFlowStatusRetry - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module import ListCompletedJobsResponse200ItemFlowStatusFailureModule - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item import ListCompletedJobsResponse200ItemFlowStatusModulesItem - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatus") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatus: - """ - Attributes: - step (int): - modules (List['ListCompletedJobsResponse200ItemFlowStatusModulesItem']): - failure_module (ListCompletedJobsResponse200ItemFlowStatusFailureModule): - retry (Union[Unset, ListCompletedJobsResponse200ItemFlowStatusRetry]): - """ - - step: int - modules: List['ListCompletedJobsResponse200ItemFlowStatusModulesItem'] - failure_module: 'ListCompletedJobsResponse200ItemFlowStatusFailureModule' - retry: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatusRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_flow_status_retry import ListCompletedJobsResponse200ItemFlowStatusRetry - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module import ListCompletedJobsResponse200ItemFlowStatusFailureModule - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item import ListCompletedJobsResponse200ItemFlowStatusModulesItem - step = self.step - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module = self.failure_module.to_dict() - - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "step": step, - "modules": modules, - "failure_module": failure_module, - }) - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_flow_status_retry import ListCompletedJobsResponse200ItemFlowStatusRetry - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module import ListCompletedJobsResponse200ItemFlowStatusFailureModule - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item import ListCompletedJobsResponse200ItemFlowStatusModulesItem - d = src_dict.copy() - step = d.pop("step") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = ListCompletedJobsResponse200ItemFlowStatusModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - failure_module = ListCompletedJobsResponse200ItemFlowStatusFailureModule.from_dict(d.pop("failure_module")) - - - - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListCompletedJobsResponse200ItemFlowStatusRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListCompletedJobsResponse200ItemFlowStatusRetry.from_dict(_retry) - - - - - list_completed_jobs_response_200_item_flow_status = cls( - step=step, - modules=modules, - failure_module=failure_module, - retry=retry, - ) - - list_completed_jobs_response_200_item_flow_status.additional_properties = d - return list_completed_jobs_response_200_item_flow_status - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module.py deleted file mode 100644 index 920afe921a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module.py +++ /dev/null @@ -1,223 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_type import ListCompletedJobsResponse200ItemFlowStatusFailureModuleType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_iterator import ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item import ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_branchall import ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen import ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusFailureModule") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusFailureModule: - """ - Attributes: - type (ListCompletedJobsResponse200ItemFlowStatusFailureModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen]): - branchall (Union[Unset, ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall]): - approvers (Union[Unset, List['ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem']]): - parent_module (Union[Unset, str]): - """ - - type: ListCompletedJobsResponse200ItemFlowStatusFailureModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall'] = UNSET - approvers: Union[Unset, List['ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem']] = UNSET - parent_module: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_iterator import ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item import ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_branchall import ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen import ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - parent_module = self.parent_module - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - if parent_module is not UNSET: - field_dict["parent_module"] = parent_module - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_iterator import ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item import ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_branchall import ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall - from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen import ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemFlowStatusFailureModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - parent_module = d.pop("parent_module", UNSET) - - list_completed_jobs_response_200_item_flow_status_failure_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - parent_module=parent_module, - ) - - list_completed_jobs_response_200_item_flow_status_failure_module.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item.py deleted file mode 100644 index 2768b70f5a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusFailureModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_failure_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen.py deleted file mode 100644 index 8001fea7be..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen_type import ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosenType - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosen: - """ - Attributes: - type (ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen_type.py deleted file mode 100644 index 326ccfb04f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branchall.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branchall.py deleted file mode 100644 index 28cae02478..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusFailureModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - list_completed_jobs_response_200_item_flow_status_failure_module_branchall = cls( - branch=branch, - len_=len_, - ) - - list_completed_jobs_response_200_item_flow_status_failure_module_branchall.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_failure_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_iterator.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_iterator.py deleted file mode 100644 index 01a5e90f1d..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusFailureModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - list_completed_jobs_response_200_item_flow_status_failure_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - list_completed_jobs_response_200_item_flow_status_failure_module_iterator.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_failure_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_type.py deleted file mode 100644 index 50eaad7bac..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_failure_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemFlowStatusFailureModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item.py deleted file mode 100644 index 836d550adb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_type import ListCompletedJobsResponse200ItemFlowStatusModulesItemType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item import ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_iterator import ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_branchall import ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen import ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusModulesItem") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusModulesItem: - """ - Attributes: - type (ListCompletedJobsResponse200ItemFlowStatusModulesItemType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen]): - branchall (Union[Unset, ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall]): - approvers (Union[Unset, List['ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem']]): - """ - - type: ListCompletedJobsResponse200ItemFlowStatusModulesItemType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen'] = UNSET - branchall: Union[Unset, 'ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall'] = UNSET - approvers: Union[Unset, List['ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item import ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_iterator import ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_branchall import ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen import ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item import ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_iterator import ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_branchall import ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall - from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen import ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemFlowStatusModulesItemType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - list_completed_jobs_response_200_item_flow_status_modules_item = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - list_completed_jobs_response_200_item_flow_status_modules_item.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item.py deleted file mode 100644 index feafb07678..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusModulesItemApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_modules_item_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen.py deleted file mode 100644 index d7ea5245eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen_type import ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosenType - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosen: - """ - Attributes: - type (ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosenType): - branch (Union[Unset, int]): - """ - - type: ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen = cls( - type=type, - branch=branch, - ) - - list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen_type.py deleted file mode 100644 index ae48077c7c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branchall.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branchall.py deleted file mode 100644 index 23cdf4a1b8..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusModulesItemBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - list_completed_jobs_response_200_item_flow_status_modules_item_branchall = cls( - branch=branch, - len_=len_, - ) - - list_completed_jobs_response_200_item_flow_status_modules_item_branchall.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_modules_item_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_iterator.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_iterator.py deleted file mode 100644 index bfbe33817d..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusModulesItemIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - list_completed_jobs_response_200_item_flow_status_modules_item_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - list_completed_jobs_response_200_item_flow_status_modules_item_iterator.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_modules_item_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_type.py deleted file mode 100644 index 665608f33b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_modules_item_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemFlowStatusModulesItemType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_retry.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_retry.py deleted file mode 100644 index 5e6f8b1e0a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_flow_status_retry.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemFlowStatusRetry") - - -@_attrs_define -class ListCompletedJobsResponse200ItemFlowStatusRetry: - """ - Attributes: - fail_count (Union[Unset, int]): - failed_jobs (Union[Unset, List[str]]): - """ - - fail_count: Union[Unset, int] = UNSET - failed_jobs: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - fail_count = self.fail_count - failed_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.failed_jobs, Unset): - failed_jobs = self.failed_jobs - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if fail_count is not UNSET: - field_dict["fail_count"] = fail_count - if failed_jobs is not UNSET: - field_dict["failed_jobs"] = failed_jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - fail_count = d.pop("fail_count", UNSET) - - failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET)) - - - list_completed_jobs_response_200_item_flow_status_retry = cls( - fail_count=fail_count, - failed_jobs=failed_jobs, - ) - - list_completed_jobs_response_200_item_flow_status_retry.additional_properties = d - return list_completed_jobs_response_200_item_flow_status_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_job_kind.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_job_kind.py deleted file mode 100644 index e7daedaaa9..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_job_kind.py +++ /dev/null @@ -1,17 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemJobKind(str, Enum): - APPDEPENDENCIES = "appdependencies" - DEPENDENCIES = "dependencies" - DEPLOYMENTCALLBACK = "deploymentcallback" - FLOW = "flow" - FLOWDEPENDENCIES = "flowdependencies" - FLOWPREVIEW = "flowpreview" - IDENTITY = "identity" - PREVIEW = "preview" - SCRIPT = "script" - SCRIPT_HUB = "script_hub" - SINGLESCRIPTFLOW = "singlescriptflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_language.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_language.py deleted file mode 100644 index 52741cbc69..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow.py deleted file mode 100644 index 9453a1ebdb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item import ListCompletedJobsResponse200ItemRawFlowModulesItem - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module import ListCompletedJobsResponse200ItemRawFlowFailureModule - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlow") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlow: - """ - Attributes: - modules (List['ListCompletedJobsResponse200ItemRawFlowModulesItem']): - failure_module (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['ListCompletedJobsResponse200ItemRawFlowModulesItem'] - failure_module: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item import ListCompletedJobsResponse200ItemRawFlowModulesItem - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module import ListCompletedJobsResponse200ItemRawFlowFailureModule - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item import ListCompletedJobsResponse200ItemRawFlowModulesItem - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module import ListCompletedJobsResponse200ItemRawFlowFailureModule - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = ListCompletedJobsResponse200ItemRawFlowModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = ListCompletedJobsResponse200ItemRawFlowFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - list_completed_jobs_response_200_item_raw_flow = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - list_completed_jobs_response_200_item_raw_flow.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module.py deleted file mode 100644 index 7645dd5172..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_mock import ListCompletedJobsResponse200ItemRawFlowFailureModuleMock - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if import ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0 - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModule") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf]): - sleep (Union['ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0', - 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleMock]): - suspend (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf'] = UNSET - sleep: Union['ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0', 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleMock'] = UNSET - suspend: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_mock import ListCompletedJobsResponse200ItemRawFlowFailureModuleMock - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if import ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_mock import ListCompletedJobsResponse200ItemRawFlowFailureModuleMock - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if import ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0', 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = ListCompletedJobsResponse200ItemRawFlowFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry.from_dict(_retry) - - - - - list_completed_jobs_response_200_item_raw_flow_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_mock.py deleted file mode 100644 index 94f1daac79..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleMock") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - list_completed_jobs_response_200_item_raw_flow_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_mock.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry.py deleted file mode 100644 index ab2106fedf..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant]): - exponential (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential import ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential.from_dict(_exponential) - - - - - list_completed_jobs_response_200_item_raw_flow_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_retry.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant.py deleted file mode 100644 index 6d9c8f1ee1..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential.py deleted file mode 100644 index 37f1fd73b9..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0.py deleted file mode 100644 index e03f8ca840..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0_type import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0: - """ - Attributes: - type (ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0_type.py deleted file mode 100644 index 417c9401e3..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1.py deleted file mode 100644 index 5b80d06e2f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1_type import ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1Type): - """ - - expr: str - type: ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1Type(d.pop("type")) - - - - - list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1_type.py deleted file mode 100644 index b45a639f48..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if.py deleted file mode 100644 index 506457c15a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend.py deleted file mode 100644 index d139681629..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend.py +++ /dev/null @@ -1,178 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required - (Union['ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0', - 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form.py deleted file mode 100644 index e04fd40244..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index c477fcb280..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema = cls( - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 19c1733800..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index b48a7c0f1e..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index a3943e08de..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type import ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index d88a6ebfee..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item.py deleted file mode 100644 index 395eb53182..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1 import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry import ListCompletedJobsResponse200ItemRawFlowModulesItemRetry - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if import ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_mock import ListCompletedJobsResponse200ItemRawFlowModulesItemMock - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0 import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0 - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItem") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf]): - sleep (Union['ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0', - 'ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemMock]): - suspend (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf'] = UNSET - sleep: Union['ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0', 'ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemMock'] = UNSET - suspend: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1 import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry import ListCompletedJobsResponse200ItemRawFlowModulesItemRetry - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if import ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_mock import ListCompletedJobsResponse200ItemRawFlowModulesItemMock - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0 import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1 import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry import ListCompletedJobsResponse200ItemRawFlowModulesItemRetry - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if import ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_mock import ListCompletedJobsResponse200ItemRawFlowModulesItemMock - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0 import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0', 'ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = ListCompletedJobsResponse200ItemRawFlowModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListCompletedJobsResponse200ItemRawFlowModulesItemRetry.from_dict(_retry) - - - - - list_completed_jobs_response_200_item_raw_flow_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_mock.py deleted file mode 100644 index 2a937fa256..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemMock") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - list_completed_jobs_response_200_item_raw_flow_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_mock.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry.py deleted file mode 100644 index 718554d3e6..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant import ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential import ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemRetry") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemRetry: - """ - Attributes: - constant (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant]): - exponential (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant import ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential import ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant import ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential import ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential.from_dict(_exponential) - - - - - list_completed_jobs_response_200_item_raw_flow_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_retry.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant.py deleted file mode 100644 index c113c4cebc..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential.py deleted file mode 100644 index 33680df77f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0.py deleted file mode 100644 index b7b084bf78..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0_type import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0: - """ - Attributes: - type (ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0_type.py deleted file mode 100644 index 47b46280d1..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1.py deleted file mode 100644 index 2e361c3e44..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1_type import ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1: - """ - Attributes: - expr (str): - type (ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1Type): - """ - - expr: str - type: ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1Type(d.pop("type")) - - - - - list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1_type.py deleted file mode 100644 index 5b81291017..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if.py deleted file mode 100644 index a6a9b8d198..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend.py deleted file mode 100644 index 498f25425f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0', - 'ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0', 'ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0', 'ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form.py deleted file mode 100644 index c80d169850..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 7fd51b8d2c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema = cls( - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index b8ab80b113..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index b51e58c6b4..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 28754f413b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type import ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 354ee9b8a9..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_completed_jobs_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListCompletedJobsResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_contextual_variables_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_contextual_variables_response_200_item.py deleted file mode 100644 index 82fb81fad4..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_contextual_variables_response_200_item.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListContextualVariablesResponse200Item") - - -@_attrs_define -class ListContextualVariablesResponse200Item: - """ - Attributes: - name (str): - value (str): - description (str): - """ - - name: str - value: str - description: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - value = self.value - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "value": value, - "description": description, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - value = d.pop("value") - - description = d.pop("description") - - list_contextual_variables_response_200_item = cls( - name=name, - value=value, - description=description, - ) - - list_contextual_variables_response_200_item.additional_properties = d - return list_contextual_variables_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_flows_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_flows_response_200_item.py deleted file mode 100644 index 1ac4b66b7b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_flows_response_200_item.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListFlowsResponse200Item") - - -@_attrs_define -class ListFlowsResponse200Item: - """ - Attributes: - has_draft (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - """ - - has_draft: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - has_draft = self.has_draft - draft_only = self.draft_only - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if has_draft is not UNSET: - field_dict["has_draft"] = has_draft - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - has_draft = d.pop("has_draft", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - list_flows_response_200_item = cls( - has_draft=has_draft, - draft_only=draft_only, - ) - - list_flows_response_200_item.additional_properties = d - return list_flows_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_folders_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_folders_response_200_item.py deleted file mode 100644 index 8a8636ff9f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_folders_response_200_item.py +++ /dev/null @@ -1,100 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import cast, List -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_folders_response_200_item_extra_perms import ListFoldersResponse200ItemExtraPerms - - - - - -T = TypeVar("T", bound="ListFoldersResponse200Item") - - -@_attrs_define -class ListFoldersResponse200Item: - """ - Attributes: - name (str): - owners (List[str]): - extra_perms (ListFoldersResponse200ItemExtraPerms): - """ - - name: str - owners: List[str] - extra_perms: 'ListFoldersResponse200ItemExtraPerms' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_folders_response_200_item_extra_perms import ListFoldersResponse200ItemExtraPerms - name = self.name - owners = self.owners - - - - - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "owners": owners, - "extra_perms": extra_perms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_folders_response_200_item_extra_perms import ListFoldersResponse200ItemExtraPerms - d = src_dict.copy() - name = d.pop("name") - - owners = cast(List[str], d.pop("owners")) - - - extra_perms = ListFoldersResponse200ItemExtraPerms.from_dict(d.pop("extra_perms")) - - - - - list_folders_response_200_item = cls( - name=name, - owners=owners, - extra_perms=extra_perms, - ) - - list_folders_response_200_item.additional_properties = d - return list_folders_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_folders_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_folders_response_200_item_extra_perms.py deleted file mode 100644 index 6c91939b1a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_folders_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListFoldersResponse200ItemExtraPerms") - - -@_attrs_define -class ListFoldersResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_folders_response_200_item_extra_perms = cls( - ) - - - list_folders_response_200_item_extra_perms.additional_properties = d - return list_folders_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_groups_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_groups_response_200_item.py deleted file mode 100644 index a65654eee3..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_groups_response_200_item.py +++ /dev/null @@ -1,121 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_groups_response_200_item_extra_perms import ListGroupsResponse200ItemExtraPerms - - - - - -T = TypeVar("T", bound="ListGroupsResponse200Item") - - -@_attrs_define -class ListGroupsResponse200Item: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - members (Union[Unset, List[str]]): - extra_perms (Union[Unset, ListGroupsResponse200ItemExtraPerms]): - """ - - name: str - summary: Union[Unset, str] = UNSET - members: Union[Unset, List[str]] = UNSET - extra_perms: Union[Unset, 'ListGroupsResponse200ItemExtraPerms'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_groups_response_200_item_extra_perms import ListGroupsResponse200ItemExtraPerms - name = self.name - summary = self.summary - members: Union[Unset, List[str]] = UNSET - if not isinstance(self.members, Unset): - members = self.members - - - - - extra_perms: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_perms, Unset): - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - if members is not UNSET: - field_dict["members"] = members - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_groups_response_200_item_extra_perms import ListGroupsResponse200ItemExtraPerms - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - members = cast(List[str], d.pop("members", UNSET)) - - - _extra_perms = d.pop("extra_perms", UNSET) - extra_perms: Union[Unset, ListGroupsResponse200ItemExtraPerms] - if isinstance(_extra_perms, Unset): - extra_perms = UNSET - else: - extra_perms = ListGroupsResponse200ItemExtraPerms.from_dict(_extra_perms) - - - - - list_groups_response_200_item = cls( - name=name, - summary=summary, - members=members, - extra_perms=extra_perms, - ) - - list_groups_response_200_item.additional_properties = d - return list_groups_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_groups_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_groups_response_200_item_extra_perms.py deleted file mode 100644 index 41ea91b035..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_groups_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListGroupsResponse200ItemExtraPerms") - - -@_attrs_define -class ListGroupsResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_groups_response_200_item_extra_perms = cls( - ) - - - list_groups_response_200_item_extra_perms.additional_properties = d - return list_groups_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_hub_apps_response_200.py b/python-client/windmill-api/windmill_api/models/list_hub_apps_response_200.py deleted file mode 100644 index 4774bd18ef..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_hub_apps_response_200.py +++ /dev/null @@ -1,98 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_hub_apps_response_200_apps_item import ListHubAppsResponse200AppsItem - - - - - -T = TypeVar("T", bound="ListHubAppsResponse200") - - -@_attrs_define -class ListHubAppsResponse200: - """ - Attributes: - apps (Union[Unset, List['ListHubAppsResponse200AppsItem']]): - """ - - apps: Union[Unset, List['ListHubAppsResponse200AppsItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_hub_apps_response_200_apps_item import ListHubAppsResponse200AppsItem - apps: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.apps, Unset): - apps = [] - for apps_item_data in self.apps: - apps_item = apps_item_data.to_dict() - - apps.append(apps_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if apps is not UNSET: - field_dict["apps"] = apps - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_hub_apps_response_200_apps_item import ListHubAppsResponse200AppsItem - d = src_dict.copy() - apps = [] - _apps = d.pop("apps", UNSET) - for apps_item_data in (_apps or []): - apps_item = ListHubAppsResponse200AppsItem.from_dict(apps_item_data) - - - - apps.append(apps_item) - - - list_hub_apps_response_200 = cls( - apps=apps, - ) - - list_hub_apps_response_200.additional_properties = d - return list_hub_apps_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_hub_apps_response_200_apps_item.py b/python-client/windmill-api/windmill_api/models/list_hub_apps_response_200_apps_item.py deleted file mode 100644 index f560ec1d04..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_hub_apps_response_200_apps_item.py +++ /dev/null @@ -1,111 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListHubAppsResponse200AppsItem") - - -@_attrs_define -class ListHubAppsResponse200AppsItem: - """ - Attributes: - id (float): - app_id (float): - summary (str): - apps (List[str]): - approved (bool): - votes (float): - """ - - id: float - app_id: float - summary: str - apps: List[str] - approved: bool - votes: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - app_id = self.app_id - summary = self.summary - apps = self.apps - - - - - approved = self.approved - votes = self.votes - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "app_id": app_id, - "summary": summary, - "apps": apps, - "approved": approved, - "votes": votes, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - app_id = d.pop("app_id") - - summary = d.pop("summary") - - apps = cast(List[str], d.pop("apps")) - - - approved = d.pop("approved") - - votes = d.pop("votes") - - list_hub_apps_response_200_apps_item = cls( - id=id, - app_id=app_id, - summary=summary, - apps=apps, - approved=approved, - votes=votes, - ) - - list_hub_apps_response_200_apps_item.additional_properties = d - return list_hub_apps_response_200_apps_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_hub_flows_response_200.py b/python-client/windmill-api/windmill_api/models/list_hub_flows_response_200.py deleted file mode 100644 index 1436802ae4..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_hub_flows_response_200.py +++ /dev/null @@ -1,98 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_hub_flows_response_200_flows_item import ListHubFlowsResponse200FlowsItem - - - - - -T = TypeVar("T", bound="ListHubFlowsResponse200") - - -@_attrs_define -class ListHubFlowsResponse200: - """ - Attributes: - flows (Union[Unset, List['ListHubFlowsResponse200FlowsItem']]): - """ - - flows: Union[Unset, List['ListHubFlowsResponse200FlowsItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_hub_flows_response_200_flows_item import ListHubFlowsResponse200FlowsItem - flows: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.flows, Unset): - flows = [] - for flows_item_data in self.flows: - flows_item = flows_item_data.to_dict() - - flows.append(flows_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if flows is not UNSET: - field_dict["flows"] = flows - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_hub_flows_response_200_flows_item import ListHubFlowsResponse200FlowsItem - d = src_dict.copy() - flows = [] - _flows = d.pop("flows", UNSET) - for flows_item_data in (_flows or []): - flows_item = ListHubFlowsResponse200FlowsItem.from_dict(flows_item_data) - - - - flows.append(flows_item) - - - list_hub_flows_response_200 = cls( - flows=flows, - ) - - list_hub_flows_response_200.additional_properties = d - return list_hub_flows_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_hub_flows_response_200_flows_item.py b/python-client/windmill-api/windmill_api/models/list_hub_flows_response_200_flows_item.py deleted file mode 100644 index 6cd40cd568..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_hub_flows_response_200_flows_item.py +++ /dev/null @@ -1,111 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListHubFlowsResponse200FlowsItem") - - -@_attrs_define -class ListHubFlowsResponse200FlowsItem: - """ - Attributes: - id (float): - flow_id (float): - summary (str): - apps (List[str]): - approved (bool): - votes (float): - """ - - id: float - flow_id: float - summary: str - apps: List[str] - approved: bool - votes: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - flow_id = self.flow_id - summary = self.summary - apps = self.apps - - - - - approved = self.approved - votes = self.votes - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "flow_id": flow_id, - "summary": summary, - "apps": apps, - "approved": approved, - "votes": votes, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - flow_id = d.pop("flow_id") - - summary = d.pop("summary") - - apps = cast(List[str], d.pop("apps")) - - - approved = d.pop("approved") - - votes = d.pop("votes") - - list_hub_flows_response_200_flows_item = cls( - id=id, - flow_id=flow_id, - summary=summary, - apps=apps, - approved=approved, - votes=votes, - ) - - list_hub_flows_response_200_flows_item.additional_properties = d - return list_hub_flows_response_200_flows_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_hub_integrations_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_hub_integrations_response_200_item.py deleted file mode 100644 index 7d03ec869f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_hub_integrations_response_200_item.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListHubIntegrationsResponse200Item") - - -@_attrs_define -class ListHubIntegrationsResponse200Item: - """ - Attributes: - name (str): - """ - - name: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - list_hub_integrations_response_200_item = cls( - name=name, - ) - - list_hub_integrations_response_200_item.additional_properties = d - return list_hub_integrations_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_inputs_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_inputs_response_200_item.py deleted file mode 100644 index 0160441cad..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_inputs_response_200_item.py +++ /dev/null @@ -1,131 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_inputs_response_200_item_args import ListInputsResponse200ItemArgs - - - - - -T = TypeVar("T", bound="ListInputsResponse200Item") - - -@_attrs_define -class ListInputsResponse200Item: - """ - Attributes: - id (str): - name (str): - args (ListInputsResponse200ItemArgs): - created_by (str): - created_at (datetime.datetime): - is_public (bool): - success (Union[Unset, bool]): - """ - - id: str - name: str - args: 'ListInputsResponse200ItemArgs' - created_by: str - created_at: datetime.datetime - is_public: bool - success: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_inputs_response_200_item_args import ListInputsResponse200ItemArgs - id = self.id - name = self.name - args = self.args.to_dict() - - created_by = self.created_by - created_at = self.created_at.isoformat() - - is_public = self.is_public - success = self.success - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "args": args, - "created_by": created_by, - "created_at": created_at, - "is_public": is_public, - }) - if success is not UNSET: - field_dict["success"] = success - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_inputs_response_200_item_args import ListInputsResponse200ItemArgs - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - args = ListInputsResponse200ItemArgs.from_dict(d.pop("args")) - - - - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - is_public = d.pop("is_public") - - success = d.pop("success", UNSET) - - list_inputs_response_200_item = cls( - id=id, - name=name, - args=args, - created_by=created_by, - created_at=created_at, - is_public=is_public, - success=success, - ) - - list_inputs_response_200_item.additional_properties = d - return list_inputs_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_inputs_response_200_item_args.py b/python-client/windmill-api/windmill_api/models/list_inputs_response_200_item_args.py deleted file mode 100644 index e1e4522384..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_inputs_response_200_item_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListInputsResponse200ItemArgs") - - -@_attrs_define -class ListInputsResponse200ItemArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_inputs_response_200_item_args = cls( - ) - - list_inputs_response_200_item_args.additional_properties = d - return list_inputs_response_200_item_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_inputs_runnable_type.py b/python-client/windmill-api/windmill_api/models/list_inputs_runnable_type.py deleted file mode 100644 index 648b5aa443..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_inputs_runnable_type.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class ListInputsRunnableType(str, Enum): - FLOWPATH = "FlowPath" - SCRIPTHASH = "ScriptHash" - SCRIPTPATH = "ScriptPath" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_instance_groups_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_instance_groups_response_200_item.py deleted file mode 100644 index 317ecd126e..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_instance_groups_response_200_item.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListInstanceGroupsResponse200Item") - - -@_attrs_define -class ListInstanceGroupsResponse200Item: - """ - Attributes: - name (str): - summary (Union[Unset, str]): - emails (Union[Unset, List[str]]): - """ - - name: str - summary: Union[Unset, str] = UNSET - emails: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - summary = self.summary - emails: Union[Unset, List[str]] = UNSET - if not isinstance(self.emails, Unset): - emails = self.emails - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if summary is not UNSET: - field_dict["summary"] = summary - if emails is not UNSET: - field_dict["emails"] = emails - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - summary = d.pop("summary", UNSET) - - emails = cast(List[str], d.pop("emails", UNSET)) - - - list_instance_groups_response_200_item = cls( - name=name, - summary=summary, - emails=emails, - ) - - list_instance_groups_response_200_item.additional_properties = d - return list_instance_groups_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_jobs_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_jobs_response_200_item.py deleted file mode 100644 index b7597100eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_jobs_response_200_item.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_jobs_response_200_item_type import ListJobsResponse200ItemType - - - - - - -T = TypeVar("T", bound="ListJobsResponse200Item") - - -@_attrs_define -class ListJobsResponse200Item: - """ - Attributes: - type (Union[Unset, ListJobsResponse200ItemType]): - """ - - type: Union[Unset, ListJobsResponse200ItemType] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type: Union[Unset, str] = UNSET - if not isinstance(self.type, Unset): - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if type is not UNSET: - field_dict["type"] = type - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - _type = d.pop("type", UNSET) - type: Union[Unset, ListJobsResponse200ItemType] - if isinstance(_type, Unset): - type = UNSET - else: - type = ListJobsResponse200ItemType(_type) - - - - - list_jobs_response_200_item = cls( - type=type, - ) - - list_jobs_response_200_item.additional_properties = d - return list_jobs_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_jobs_response_200_item_type.py b/python-client/windmill-api/windmill_api/models/list_jobs_response_200_item_type.py deleted file mode 100644 index 5c93b5c6f8..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_jobs_response_200_item_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class ListJobsResponse200ItemType(str, Enum): - COMPLETEDJOB = "CompletedJob" - QUEUEDJOB = "QueuedJob" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_o_auth_logins_response_200.py b/python-client/windmill-api/windmill_api/models/list_o_auth_logins_response_200.py deleted file mode 100644 index c2d53f7916..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_o_auth_logins_response_200.py +++ /dev/null @@ -1,86 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListOAuthLoginsResponse200") - - -@_attrs_define -class ListOAuthLoginsResponse200: - """ - Attributes: - oauth (List[str]): - saml (Union[Unset, str]): - """ - - oauth: List[str] - saml: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - oauth = self.oauth - - - - - saml = self.saml - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "oauth": oauth, - }) - if saml is not UNSET: - field_dict["saml"] = saml - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - oauth = cast(List[str], d.pop("oauth")) - - - saml = d.pop("saml", UNSET) - - list_o_auth_logins_response_200 = cls( - oauth=oauth, - saml=saml, - ) - - list_o_auth_logins_response_200.additional_properties = d - return list_o_auth_logins_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_pending_invites_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_pending_invites_response_200_item.py deleted file mode 100644 index 1b397aac28..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_pending_invites_response_200_item.py +++ /dev/null @@ -1,91 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListPendingInvitesResponse200Item") - - -@_attrs_define -class ListPendingInvitesResponse200Item: - """ - Attributes: - workspace_id (str): - email (str): - is_admin (bool): - operator (bool): - """ - - workspace_id: str - email: str - is_admin: bool - operator: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - workspace_id = self.workspace_id - email = self.email - is_admin = self.is_admin - operator = self.operator - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "email": email, - "is_admin": is_admin, - "operator": operator, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - email = d.pop("email") - - is_admin = d.pop("is_admin") - - operator = d.pop("operator") - - list_pending_invites_response_200_item = cls( - workspace_id=workspace_id, - email=email, - is_admin=is_admin, - operator=operator, - ) - - list_pending_invites_response_200_item.additional_properties = d - return list_pending_invites_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item.py deleted file mode 100644 index 7235b80b42..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item.py +++ /dev/null @@ -1,397 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from ..models.list_queue_response_200_item_job_kind import ListQueueResponse200ItemJobKind -from dateutil.parser import isoparse -from ..types import UNSET, Unset -from ..models.list_queue_response_200_item_language import ListQueueResponse200ItemLanguage - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow import ListQueueResponse200ItemRawFlow - from ..models.list_queue_response_200_item_flow_status import ListQueueResponse200ItemFlowStatus - from ..models.list_queue_response_200_item_args import ListQueueResponse200ItemArgs - - - - - -T = TypeVar("T", bound="ListQueueResponse200Item") - - -@_attrs_define -class ListQueueResponse200Item: - """ - Attributes: - id (str): - running (bool): - canceled (bool): - job_kind (ListQueueResponse200ItemJobKind): - permissioned_as (str): The user (u/userfoo) or group (g/groupfoo) whom - the execution of this script will be permissioned_as and by extension its DT_TOKEN. - is_flow_step (bool): - email (str): - visible_to_owner (bool): - tag (str): - workspace_id (Union[Unset, str]): - parent_job (Union[Unset, str]): - created_by (Union[Unset, str]): - created_at (Union[Unset, datetime.datetime]): - started_at (Union[Unset, datetime.datetime]): - scheduled_for (Union[Unset, datetime.datetime]): - script_path (Union[Unset, str]): - script_hash (Union[Unset, str]): - args (Union[Unset, ListQueueResponse200ItemArgs]): - logs (Union[Unset, str]): - raw_code (Union[Unset, str]): - canceled_by (Union[Unset, str]): - canceled_reason (Union[Unset, str]): - last_ping (Union[Unset, datetime.datetime]): - schedule_path (Union[Unset, str]): - flow_status (Union[Unset, ListQueueResponse200ItemFlowStatus]): - raw_flow (Union[Unset, ListQueueResponse200ItemRawFlow]): - language (Union[Unset, ListQueueResponse200ItemLanguage]): - mem_peak (Union[Unset, int]): - priority (Union[Unset, int]): - """ - - id: str - running: bool - canceled: bool - job_kind: ListQueueResponse200ItemJobKind - permissioned_as: str - is_flow_step: bool - email: str - visible_to_owner: bool - tag: str - workspace_id: Union[Unset, str] = UNSET - parent_job: Union[Unset, str] = UNSET - created_by: Union[Unset, str] = UNSET - created_at: Union[Unset, datetime.datetime] = UNSET - started_at: Union[Unset, datetime.datetime] = UNSET - scheduled_for: Union[Unset, datetime.datetime] = UNSET - script_path: Union[Unset, str] = UNSET - script_hash: Union[Unset, str] = UNSET - args: Union[Unset, 'ListQueueResponse200ItemArgs'] = UNSET - logs: Union[Unset, str] = UNSET - raw_code: Union[Unset, str] = UNSET - canceled_by: Union[Unset, str] = UNSET - canceled_reason: Union[Unset, str] = UNSET - last_ping: Union[Unset, datetime.datetime] = UNSET - schedule_path: Union[Unset, str] = UNSET - flow_status: Union[Unset, 'ListQueueResponse200ItemFlowStatus'] = UNSET - raw_flow: Union[Unset, 'ListQueueResponse200ItemRawFlow'] = UNSET - language: Union[Unset, ListQueueResponse200ItemLanguage] = UNSET - mem_peak: Union[Unset, int] = UNSET - priority: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow import ListQueueResponse200ItemRawFlow - from ..models.list_queue_response_200_item_flow_status import ListQueueResponse200ItemFlowStatus - from ..models.list_queue_response_200_item_args import ListQueueResponse200ItemArgs - id = self.id - running = self.running - canceled = self.canceled - job_kind = self.job_kind.value - - permissioned_as = self.permissioned_as - is_flow_step = self.is_flow_step - email = self.email - visible_to_owner = self.visible_to_owner - tag = self.tag - workspace_id = self.workspace_id - parent_job = self.parent_job - created_by = self.created_by - created_at: Union[Unset, str] = UNSET - if not isinstance(self.created_at, Unset): - created_at = self.created_at.isoformat() - - started_at: Union[Unset, str] = UNSET - if not isinstance(self.started_at, Unset): - started_at = self.started_at.isoformat() - - scheduled_for: Union[Unset, str] = UNSET - if not isinstance(self.scheduled_for, Unset): - scheduled_for = self.scheduled_for.isoformat() - - script_path = self.script_path - script_hash = self.script_hash - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - logs = self.logs - raw_code = self.raw_code - canceled_by = self.canceled_by - canceled_reason = self.canceled_reason - last_ping: Union[Unset, str] = UNSET - if not isinstance(self.last_ping, Unset): - last_ping = self.last_ping.isoformat() - - schedule_path = self.schedule_path - flow_status: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.flow_status, Unset): - flow_status = self.flow_status.to_dict() - - raw_flow: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.raw_flow, Unset): - raw_flow = self.raw_flow.to_dict() - - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - mem_peak = self.mem_peak - priority = self.priority - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "running": running, - "canceled": canceled, - "job_kind": job_kind, - "permissioned_as": permissioned_as, - "is_flow_step": is_flow_step, - "email": email, - "visible_to_owner": visible_to_owner, - "tag": tag, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_job is not UNSET: - field_dict["parent_job"] = parent_job - if created_by is not UNSET: - field_dict["created_by"] = created_by - if created_at is not UNSET: - field_dict["created_at"] = created_at - if started_at is not UNSET: - field_dict["started_at"] = started_at - if scheduled_for is not UNSET: - field_dict["scheduled_for"] = scheduled_for - if script_path is not UNSET: - field_dict["script_path"] = script_path - if script_hash is not UNSET: - field_dict["script_hash"] = script_hash - if args is not UNSET: - field_dict["args"] = args - if logs is not UNSET: - field_dict["logs"] = logs - if raw_code is not UNSET: - field_dict["raw_code"] = raw_code - if canceled_by is not UNSET: - field_dict["canceled_by"] = canceled_by - if canceled_reason is not UNSET: - field_dict["canceled_reason"] = canceled_reason - if last_ping is not UNSET: - field_dict["last_ping"] = last_ping - if schedule_path is not UNSET: - field_dict["schedule_path"] = schedule_path - if flow_status is not UNSET: - field_dict["flow_status"] = flow_status - if raw_flow is not UNSET: - field_dict["raw_flow"] = raw_flow - if language is not UNSET: - field_dict["language"] = language - if mem_peak is not UNSET: - field_dict["mem_peak"] = mem_peak - if priority is not UNSET: - field_dict["priority"] = priority - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow import ListQueueResponse200ItemRawFlow - from ..models.list_queue_response_200_item_flow_status import ListQueueResponse200ItemFlowStatus - from ..models.list_queue_response_200_item_args import ListQueueResponse200ItemArgs - d = src_dict.copy() - id = d.pop("id") - - running = d.pop("running") - - canceled = d.pop("canceled") - - job_kind = ListQueueResponse200ItemJobKind(d.pop("job_kind")) - - - - - permissioned_as = d.pop("permissioned_as") - - is_flow_step = d.pop("is_flow_step") - - email = d.pop("email") - - visible_to_owner = d.pop("visible_to_owner") - - tag = d.pop("tag") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_job = d.pop("parent_job", UNSET) - - created_by = d.pop("created_by", UNSET) - - _created_at = d.pop("created_at", UNSET) - created_at: Union[Unset, datetime.datetime] - if isinstance(_created_at, Unset): - created_at = UNSET - else: - created_at = isoparse(_created_at) - - - - - _started_at = d.pop("started_at", UNSET) - started_at: Union[Unset, datetime.datetime] - if isinstance(_started_at, Unset): - started_at = UNSET - else: - started_at = isoparse(_started_at) - - - - - _scheduled_for = d.pop("scheduled_for", UNSET) - scheduled_for: Union[Unset, datetime.datetime] - if isinstance(_scheduled_for, Unset): - scheduled_for = UNSET - else: - scheduled_for = isoparse(_scheduled_for) - - - - - script_path = d.pop("script_path", UNSET) - - script_hash = d.pop("script_hash", UNSET) - - _args = d.pop("args", UNSET) - args: Union[Unset, ListQueueResponse200ItemArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = ListQueueResponse200ItemArgs.from_dict(_args) - - - - - logs = d.pop("logs", UNSET) - - raw_code = d.pop("raw_code", UNSET) - - canceled_by = d.pop("canceled_by", UNSET) - - canceled_reason = d.pop("canceled_reason", UNSET) - - _last_ping = d.pop("last_ping", UNSET) - last_ping: Union[Unset, datetime.datetime] - if isinstance(_last_ping, Unset): - last_ping = UNSET - else: - last_ping = isoparse(_last_ping) - - - - - schedule_path = d.pop("schedule_path", UNSET) - - _flow_status = d.pop("flow_status", UNSET) - flow_status: Union[Unset, ListQueueResponse200ItemFlowStatus] - if isinstance(_flow_status, Unset): - flow_status = UNSET - else: - flow_status = ListQueueResponse200ItemFlowStatus.from_dict(_flow_status) - - - - - _raw_flow = d.pop("raw_flow", UNSET) - raw_flow: Union[Unset, ListQueueResponse200ItemRawFlow] - if isinstance(_raw_flow, Unset): - raw_flow = UNSET - else: - raw_flow = ListQueueResponse200ItemRawFlow.from_dict(_raw_flow) - - - - - _language = d.pop("language", UNSET) - language: Union[Unset, ListQueueResponse200ItemLanguage] - if isinstance(_language, Unset): - language = UNSET - else: - language = ListQueueResponse200ItemLanguage(_language) - - - - - mem_peak = d.pop("mem_peak", UNSET) - - priority = d.pop("priority", UNSET) - - list_queue_response_200_item = cls( - id=id, - running=running, - canceled=canceled, - job_kind=job_kind, - permissioned_as=permissioned_as, - is_flow_step=is_flow_step, - email=email, - visible_to_owner=visible_to_owner, - tag=tag, - workspace_id=workspace_id, - parent_job=parent_job, - created_by=created_by, - created_at=created_at, - started_at=started_at, - scheduled_for=scheduled_for, - script_path=script_path, - script_hash=script_hash, - args=args, - logs=logs, - raw_code=raw_code, - canceled_by=canceled_by, - canceled_reason=canceled_reason, - last_ping=last_ping, - schedule_path=schedule_path, - flow_status=flow_status, - raw_flow=raw_flow, - language=language, - mem_peak=mem_peak, - priority=priority, - ) - - list_queue_response_200_item.additional_properties = d - return list_queue_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_args.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_args.py deleted file mode 100644 index 5d1486105a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemArgs") - - -@_attrs_define -class ListQueueResponse200ItemArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_queue_response_200_item_args = cls( - ) - - list_queue_response_200_item_args.additional_properties = d - return list_queue_response_200_item_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status.py deleted file mode 100644 index 318af17e0e..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status.py +++ /dev/null @@ -1,138 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_flow_status_failure_module import ListQueueResponse200ItemFlowStatusFailureModule - from ..models.list_queue_response_200_item_flow_status_retry import ListQueueResponse200ItemFlowStatusRetry - from ..models.list_queue_response_200_item_flow_status_modules_item import ListQueueResponse200ItemFlowStatusModulesItem - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatus") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatus: - """ - Attributes: - step (int): - modules (List['ListQueueResponse200ItemFlowStatusModulesItem']): - failure_module (ListQueueResponse200ItemFlowStatusFailureModule): - retry (Union[Unset, ListQueueResponse200ItemFlowStatusRetry]): - """ - - step: int - modules: List['ListQueueResponse200ItemFlowStatusModulesItem'] - failure_module: 'ListQueueResponse200ItemFlowStatusFailureModule' - retry: Union[Unset, 'ListQueueResponse200ItemFlowStatusRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_flow_status_failure_module import ListQueueResponse200ItemFlowStatusFailureModule - from ..models.list_queue_response_200_item_flow_status_retry import ListQueueResponse200ItemFlowStatusRetry - from ..models.list_queue_response_200_item_flow_status_modules_item import ListQueueResponse200ItemFlowStatusModulesItem - step = self.step - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module = self.failure_module.to_dict() - - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "step": step, - "modules": modules, - "failure_module": failure_module, - }) - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_flow_status_failure_module import ListQueueResponse200ItemFlowStatusFailureModule - from ..models.list_queue_response_200_item_flow_status_retry import ListQueueResponse200ItemFlowStatusRetry - from ..models.list_queue_response_200_item_flow_status_modules_item import ListQueueResponse200ItemFlowStatusModulesItem - d = src_dict.copy() - step = d.pop("step") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = ListQueueResponse200ItemFlowStatusModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - failure_module = ListQueueResponse200ItemFlowStatusFailureModule.from_dict(d.pop("failure_module")) - - - - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListQueueResponse200ItemFlowStatusRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListQueueResponse200ItemFlowStatusRetry.from_dict(_retry) - - - - - list_queue_response_200_item_flow_status = cls( - step=step, - modules=modules, - failure_module=failure_module, - retry=retry, - ) - - list_queue_response_200_item_flow_status.additional_properties = d - return list_queue_response_200_item_flow_status - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module.py deleted file mode 100644 index 0ce0790f52..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module.py +++ /dev/null @@ -1,223 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.list_queue_response_200_item_flow_status_failure_module_type import ListQueueResponse200ItemFlowStatusFailureModuleType -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_flow_status_failure_module_branchall import ListQueueResponse200ItemFlowStatusFailureModuleBranchall - from ..models.list_queue_response_200_item_flow_status_failure_module_iterator import ListQueueResponse200ItemFlowStatusFailureModuleIterator - from ..models.list_queue_response_200_item_flow_status_failure_module_approvers_item import ListQueueResponse200ItemFlowStatusFailureModuleApproversItem - from ..models.list_queue_response_200_item_flow_status_failure_module_branch_chosen import ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusFailureModule") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusFailureModule: - """ - Attributes: - type (ListQueueResponse200ItemFlowStatusFailureModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, ListQueueResponse200ItemFlowStatusFailureModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen]): - branchall (Union[Unset, ListQueueResponse200ItemFlowStatusFailureModuleBranchall]): - approvers (Union[Unset, List['ListQueueResponse200ItemFlowStatusFailureModuleApproversItem']]): - parent_module (Union[Unset, str]): - """ - - type: ListQueueResponse200ItemFlowStatusFailureModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'ListQueueResponse200ItemFlowStatusFailureModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'ListQueueResponse200ItemFlowStatusFailureModuleBranchall'] = UNSET - approvers: Union[Unset, List['ListQueueResponse200ItemFlowStatusFailureModuleApproversItem']] = UNSET - parent_module: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_flow_status_failure_module_branchall import ListQueueResponse200ItemFlowStatusFailureModuleBranchall - from ..models.list_queue_response_200_item_flow_status_failure_module_iterator import ListQueueResponse200ItemFlowStatusFailureModuleIterator - from ..models.list_queue_response_200_item_flow_status_failure_module_approvers_item import ListQueueResponse200ItemFlowStatusFailureModuleApproversItem - from ..models.list_queue_response_200_item_flow_status_failure_module_branch_chosen import ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - parent_module = self.parent_module - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - if parent_module is not UNSET: - field_dict["parent_module"] = parent_module - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_flow_status_failure_module_branchall import ListQueueResponse200ItemFlowStatusFailureModuleBranchall - from ..models.list_queue_response_200_item_flow_status_failure_module_iterator import ListQueueResponse200ItemFlowStatusFailureModuleIterator - from ..models.list_queue_response_200_item_flow_status_failure_module_approvers_item import ListQueueResponse200ItemFlowStatusFailureModuleApproversItem - from ..models.list_queue_response_200_item_flow_status_failure_module_branch_chosen import ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen - d = src_dict.copy() - type = ListQueueResponse200ItemFlowStatusFailureModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, ListQueueResponse200ItemFlowStatusFailureModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = ListQueueResponse200ItemFlowStatusFailureModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, ListQueueResponse200ItemFlowStatusFailureModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = ListQueueResponse200ItemFlowStatusFailureModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = ListQueueResponse200ItemFlowStatusFailureModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - parent_module = d.pop("parent_module", UNSET) - - list_queue_response_200_item_flow_status_failure_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - parent_module=parent_module, - ) - - list_queue_response_200_item_flow_status_failure_module.additional_properties = d - return list_queue_response_200_item_flow_status_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_approvers_item.py deleted file mode 100644 index 07adfcb7ce..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusFailureModuleApproversItem") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusFailureModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - list_queue_response_200_item_flow_status_failure_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - list_queue_response_200_item_flow_status_failure_module_approvers_item.additional_properties = d - return list_queue_response_200_item_flow_status_failure_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branch_chosen.py deleted file mode 100644 index 9df72055d2..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.list_queue_response_200_item_flow_status_failure_module_branch_chosen_type import ListQueueResponse200ItemFlowStatusFailureModuleBranchChosenType -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusFailureModuleBranchChosen: - """ - Attributes: - type (ListQueueResponse200ItemFlowStatusFailureModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: ListQueueResponse200ItemFlowStatusFailureModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListQueueResponse200ItemFlowStatusFailureModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - list_queue_response_200_item_flow_status_failure_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - list_queue_response_200_item_flow_status_failure_module_branch_chosen.additional_properties = d - return list_queue_response_200_item_flow_status_failure_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branch_chosen_type.py deleted file mode 100644 index f153505099..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemFlowStatusFailureModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branchall.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branchall.py deleted file mode 100644 index c4fd9d67be..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusFailureModuleBranchall") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusFailureModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - list_queue_response_200_item_flow_status_failure_module_branchall = cls( - branch=branch, - len_=len_, - ) - - list_queue_response_200_item_flow_status_failure_module_branchall.additional_properties = d - return list_queue_response_200_item_flow_status_failure_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_iterator.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_iterator.py deleted file mode 100644 index e5b7d2f892..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusFailureModuleIterator") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusFailureModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - list_queue_response_200_item_flow_status_failure_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - list_queue_response_200_item_flow_status_failure_module_iterator.additional_properties = d - return list_queue_response_200_item_flow_status_failure_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_type.py deleted file mode 100644 index 45af48b824..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_failure_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemFlowStatusFailureModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item.py deleted file mode 100644 index be3edb598c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.list_queue_response_200_item_flow_status_modules_item_type import ListQueueResponse200ItemFlowStatusModulesItemType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_flow_status_modules_item_branchall import ListQueueResponse200ItemFlowStatusModulesItemBranchall - from ..models.list_queue_response_200_item_flow_status_modules_item_branch_chosen import ListQueueResponse200ItemFlowStatusModulesItemBranchChosen - from ..models.list_queue_response_200_item_flow_status_modules_item_approvers_item import ListQueueResponse200ItemFlowStatusModulesItemApproversItem - from ..models.list_queue_response_200_item_flow_status_modules_item_iterator import ListQueueResponse200ItemFlowStatusModulesItemIterator - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusModulesItem") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusModulesItem: - """ - Attributes: - type (ListQueueResponse200ItemFlowStatusModulesItemType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemBranchChosen]): - branchall (Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemBranchall]): - approvers (Union[Unset, List['ListQueueResponse200ItemFlowStatusModulesItemApproversItem']]): - """ - - type: ListQueueResponse200ItemFlowStatusModulesItemType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'ListQueueResponse200ItemFlowStatusModulesItemIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'ListQueueResponse200ItemFlowStatusModulesItemBranchChosen'] = UNSET - branchall: Union[Unset, 'ListQueueResponse200ItemFlowStatusModulesItemBranchall'] = UNSET - approvers: Union[Unset, List['ListQueueResponse200ItemFlowStatusModulesItemApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_flow_status_modules_item_branchall import ListQueueResponse200ItemFlowStatusModulesItemBranchall - from ..models.list_queue_response_200_item_flow_status_modules_item_branch_chosen import ListQueueResponse200ItemFlowStatusModulesItemBranchChosen - from ..models.list_queue_response_200_item_flow_status_modules_item_approvers_item import ListQueueResponse200ItemFlowStatusModulesItemApproversItem - from ..models.list_queue_response_200_item_flow_status_modules_item_iterator import ListQueueResponse200ItemFlowStatusModulesItemIterator - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_flow_status_modules_item_branchall import ListQueueResponse200ItemFlowStatusModulesItemBranchall - from ..models.list_queue_response_200_item_flow_status_modules_item_branch_chosen import ListQueueResponse200ItemFlowStatusModulesItemBranchChosen - from ..models.list_queue_response_200_item_flow_status_modules_item_approvers_item import ListQueueResponse200ItemFlowStatusModulesItemApproversItem - from ..models.list_queue_response_200_item_flow_status_modules_item_iterator import ListQueueResponse200ItemFlowStatusModulesItemIterator - d = src_dict.copy() - type = ListQueueResponse200ItemFlowStatusModulesItemType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = ListQueueResponse200ItemFlowStatusModulesItemIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = ListQueueResponse200ItemFlowStatusModulesItemBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, ListQueueResponse200ItemFlowStatusModulesItemBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = ListQueueResponse200ItemFlowStatusModulesItemBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = ListQueueResponse200ItemFlowStatusModulesItemApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - list_queue_response_200_item_flow_status_modules_item = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - list_queue_response_200_item_flow_status_modules_item.additional_properties = d - return list_queue_response_200_item_flow_status_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_approvers_item.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_approvers_item.py deleted file mode 100644 index 5d482c6476..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusModulesItemApproversItem") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusModulesItemApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - list_queue_response_200_item_flow_status_modules_item_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - list_queue_response_200_item_flow_status_modules_item_approvers_item.additional_properties = d - return list_queue_response_200_item_flow_status_modules_item_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branch_chosen.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branch_chosen.py deleted file mode 100644 index 9cf22ae307..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.list_queue_response_200_item_flow_status_modules_item_branch_chosen_type import ListQueueResponse200ItemFlowStatusModulesItemBranchChosenType -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusModulesItemBranchChosen") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusModulesItemBranchChosen: - """ - Attributes: - type (ListQueueResponse200ItemFlowStatusModulesItemBranchChosenType): - branch (Union[Unset, int]): - """ - - type: ListQueueResponse200ItemFlowStatusModulesItemBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListQueueResponse200ItemFlowStatusModulesItemBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - list_queue_response_200_item_flow_status_modules_item_branch_chosen = cls( - type=type, - branch=branch, - ) - - list_queue_response_200_item_flow_status_modules_item_branch_chosen.additional_properties = d - return list_queue_response_200_item_flow_status_modules_item_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branch_chosen_type.py deleted file mode 100644 index 876e617c1e..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemFlowStatusModulesItemBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branchall.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branchall.py deleted file mode 100644 index 8da2ce7a7d..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusModulesItemBranchall") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusModulesItemBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - list_queue_response_200_item_flow_status_modules_item_branchall = cls( - branch=branch, - len_=len_, - ) - - list_queue_response_200_item_flow_status_modules_item_branchall.additional_properties = d - return list_queue_response_200_item_flow_status_modules_item_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_iterator.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_iterator.py deleted file mode 100644 index 010f5bcd99..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusModulesItemIterator") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusModulesItemIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - list_queue_response_200_item_flow_status_modules_item_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - list_queue_response_200_item_flow_status_modules_item_iterator.additional_properties = d - return list_queue_response_200_item_flow_status_modules_item_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_type.py deleted file mode 100644 index fd8043c576..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_modules_item_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemFlowStatusModulesItemType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_retry.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_retry.py deleted file mode 100644 index 93e2ac78bf..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_flow_status_retry.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemFlowStatusRetry") - - -@_attrs_define -class ListQueueResponse200ItemFlowStatusRetry: - """ - Attributes: - fail_count (Union[Unset, int]): - failed_jobs (Union[Unset, List[str]]): - """ - - fail_count: Union[Unset, int] = UNSET - failed_jobs: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - fail_count = self.fail_count - failed_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.failed_jobs, Unset): - failed_jobs = self.failed_jobs - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if fail_count is not UNSET: - field_dict["fail_count"] = fail_count - if failed_jobs is not UNSET: - field_dict["failed_jobs"] = failed_jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - fail_count = d.pop("fail_count", UNSET) - - failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET)) - - - list_queue_response_200_item_flow_status_retry = cls( - fail_count=fail_count, - failed_jobs=failed_jobs, - ) - - list_queue_response_200_item_flow_status_retry.additional_properties = d - return list_queue_response_200_item_flow_status_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_job_kind.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_job_kind.py deleted file mode 100644 index 6126b15c62..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_job_kind.py +++ /dev/null @@ -1,17 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemJobKind(str, Enum): - APPDEPENDENCIES = "appdependencies" - DEPENDENCIES = "dependencies" - DEPLOYMENTCALLBACK = "deploymentcallback" - FLOW = "flow" - FLOWDEPENDENCIES = "flowdependencies" - FLOWPREVIEW = "flowpreview" - IDENTITY = "identity" - PREVIEW = "preview" - SCRIPT = "script" - SCRIPT_HUB = "script_hub" - SINGLESCRIPTFLOW = "singlescriptflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_language.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_language.py deleted file mode 100644 index 5eae9e3d42..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow.py deleted file mode 100644 index 139e9e7772..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_modules_item import ListQueueResponse200ItemRawFlowModulesItem - from ..models.list_queue_response_200_item_raw_flow_failure_module import ListQueueResponse200ItemRawFlowFailureModule - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlow") - - -@_attrs_define -class ListQueueResponse200ItemRawFlow: - """ - Attributes: - modules (List['ListQueueResponse200ItemRawFlowModulesItem']): - failure_module (Union[Unset, ListQueueResponse200ItemRawFlowFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['ListQueueResponse200ItemRawFlowModulesItem'] - failure_module: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_modules_item import ListQueueResponse200ItemRawFlowModulesItem - from ..models.list_queue_response_200_item_raw_flow_failure_module import ListQueueResponse200ItemRawFlowFailureModule - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_modules_item import ListQueueResponse200ItemRawFlowModulesItem - from ..models.list_queue_response_200_item_raw_flow_failure_module import ListQueueResponse200ItemRawFlowFailureModule - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = ListQueueResponse200ItemRawFlowModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, ListQueueResponse200ItemRawFlowFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = ListQueueResponse200ItemRawFlowFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - list_queue_response_200_item_raw_flow = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - list_queue_response_200_item_raw_flow.additional_properties = d - return list_queue_response_200_item_raw_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module.py deleted file mode 100644 index 4fd377a894..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_failure_module_mock import ListQueueResponse200ItemRawFlowFailureModuleMock - from ..models.list_queue_response_200_item_raw_flow_failure_module_stop_after_if import ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend import ListQueueResponse200ItemRawFlowFailureModuleSuspend - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry import ListQueueResponse200ItemRawFlowFailureModuleRetry - from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_0 import ListQueueResponse200ItemRawFlowFailureModuleSleepType0 - from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_1 import ListQueueResponse200ItemRawFlowFailureModuleSleepType1 - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModule") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf]): - sleep (Union['ListQueueResponse200ItemRawFlowFailureModuleSleepType0', - 'ListQueueResponse200ItemRawFlowFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleMock]): - suspend (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf'] = UNSET - sleep: Union['ListQueueResponse200ItemRawFlowFailureModuleSleepType0', 'ListQueueResponse200ItemRawFlowFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleMock'] = UNSET - suspend: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_failure_module_mock import ListQueueResponse200ItemRawFlowFailureModuleMock - from ..models.list_queue_response_200_item_raw_flow_failure_module_stop_after_if import ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend import ListQueueResponse200ItemRawFlowFailureModuleSuspend - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry import ListQueueResponse200ItemRawFlowFailureModuleRetry - from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_0 import ListQueueResponse200ItemRawFlowFailureModuleSleepType0 - from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_1 import ListQueueResponse200ItemRawFlowFailureModuleSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, ListQueueResponse200ItemRawFlowFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_failure_module_mock import ListQueueResponse200ItemRawFlowFailureModuleMock - from ..models.list_queue_response_200_item_raw_flow_failure_module_stop_after_if import ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend import ListQueueResponse200ItemRawFlowFailureModuleSuspend - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry import ListQueueResponse200ItemRawFlowFailureModuleRetry - from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_0 import ListQueueResponse200ItemRawFlowFailureModuleSleepType0 - from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_1 import ListQueueResponse200ItemRawFlowFailureModuleSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['ListQueueResponse200ItemRawFlowFailureModuleSleepType0', 'ListQueueResponse200ItemRawFlowFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = ListQueueResponse200ItemRawFlowFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = ListQueueResponse200ItemRawFlowFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = ListQueueResponse200ItemRawFlowFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = ListQueueResponse200ItemRawFlowFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListQueueResponse200ItemRawFlowFailureModuleRetry.from_dict(_retry) - - - - - list_queue_response_200_item_raw_flow_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - list_queue_response_200_item_raw_flow_failure_module.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_mock.py deleted file mode 100644 index b0dc68da51..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleMock") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - list_queue_response_200_item_raw_flow_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - list_queue_response_200_item_raw_flow_failure_module_mock.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry.py deleted file mode 100644 index 17fd0c2633..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry_exponential import ListQueueResponse200ItemRawFlowFailureModuleRetryExponential - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry_constant import ListQueueResponse200ItemRawFlowFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleRetry") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleRetryConstant]): - exponential (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry_exponential import ListQueueResponse200ItemRawFlowFailureModuleRetryExponential - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry_constant import ListQueueResponse200ItemRawFlowFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry_exponential import ListQueueResponse200ItemRawFlowFailureModuleRetryExponential - from ..models.list_queue_response_200_item_raw_flow_failure_module_retry_constant import ListQueueResponse200ItemRawFlowFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ListQueueResponse200ItemRawFlowFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ListQueueResponse200ItemRawFlowFailureModuleRetryExponential.from_dict(_exponential) - - - - - list_queue_response_200_item_raw_flow_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - list_queue_response_200_item_raw_flow_failure_module_retry.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry_constant.py deleted file mode 100644 index 5601780b60..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleRetryConstant") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - list_queue_response_200_item_raw_flow_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - list_queue_response_200_item_raw_flow_failure_module_retry_constant.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry_exponential.py deleted file mode 100644 index 570a6dfa87..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleRetryExponential") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - list_queue_response_200_item_raw_flow_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - list_queue_response_200_item_raw_flow_failure_module_retry_exponential.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_0.py deleted file mode 100644 index c66328945b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_0_type import ListQueueResponse200ItemRawFlowFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleSleepType0") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleSleepType0: - """ - Attributes: - type (ListQueueResponse200ItemRawFlowFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: ListQueueResponse200ItemRawFlowFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListQueueResponse200ItemRawFlowFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_queue_response_200_item_raw_flow_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - list_queue_response_200_item_raw_flow_failure_module_sleep_type_0.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_0_type.py deleted file mode 100644 index ee3956ceb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_1.py deleted file mode 100644 index e0a9c5ad03..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_queue_response_200_item_raw_flow_failure_module_sleep_type_1_type import ListQueueResponse200ItemRawFlowFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleSleepType1") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (ListQueueResponse200ItemRawFlowFailureModuleSleepType1Type): - """ - - expr: str - type: ListQueueResponse200ItemRawFlowFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListQueueResponse200ItemRawFlowFailureModuleSleepType1Type(d.pop("type")) - - - - - list_queue_response_200_item_raw_flow_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - list_queue_response_200_item_raw_flow_failure_module_sleep_type_1.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_1_type.py deleted file mode 100644 index 5d72db7322..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_stop_after_if.py deleted file mode 100644 index 0697bd300f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - list_queue_response_200_item_raw_flow_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - list_queue_response_200_item_raw_flow_failure_module_stop_after_if.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend.py deleted file mode 100644 index dd2eacedfd..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form import ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleSuspend") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0', - 'ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form import ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form import ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - list_queue_response_200_item_raw_flow_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - list_queue_response_200_item_raw_flow_failure_module_suspend.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form.py deleted file mode 100644 index de2b425968..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema import ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema import ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema import ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index 29915035eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema = cls( - ) - - list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 4e1e5a4f7f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index b8b1c1128f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index fa794e3c0d..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type import ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 06dbe88f2b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item.py deleted file mode 100644 index 91b12c0ce4..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry import ListQueueResponse200ItemRawFlowModulesItemRetry - from ..models.list_queue_response_200_item_raw_flow_modules_item_stop_after_if import ListQueueResponse200ItemRawFlowModulesItemStopAfterIf - from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_0 import ListQueueResponse200ItemRawFlowModulesItemSleepType0 - from ..models.list_queue_response_200_item_raw_flow_modules_item_mock import ListQueueResponse200ItemRawFlowModulesItemMock - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend import ListQueueResponse200ItemRawFlowModulesItemSuspend - from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_1 import ListQueueResponse200ItemRawFlowModulesItemSleepType1 - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItem") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemStopAfterIf]): - sleep (Union['ListQueueResponse200ItemRawFlowModulesItemSleepType0', - 'ListQueueResponse200ItemRawFlowModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemMock]): - suspend (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemStopAfterIf'] = UNSET - sleep: Union['ListQueueResponse200ItemRawFlowModulesItemSleepType0', 'ListQueueResponse200ItemRawFlowModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemMock'] = UNSET - suspend: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry import ListQueueResponse200ItemRawFlowModulesItemRetry - from ..models.list_queue_response_200_item_raw_flow_modules_item_stop_after_if import ListQueueResponse200ItemRawFlowModulesItemStopAfterIf - from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_0 import ListQueueResponse200ItemRawFlowModulesItemSleepType0 - from ..models.list_queue_response_200_item_raw_flow_modules_item_mock import ListQueueResponse200ItemRawFlowModulesItemMock - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend import ListQueueResponse200ItemRawFlowModulesItemSuspend - from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_1 import ListQueueResponse200ItemRawFlowModulesItemSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, ListQueueResponse200ItemRawFlowModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry import ListQueueResponse200ItemRawFlowModulesItemRetry - from ..models.list_queue_response_200_item_raw_flow_modules_item_stop_after_if import ListQueueResponse200ItemRawFlowModulesItemStopAfterIf - from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_0 import ListQueueResponse200ItemRawFlowModulesItemSleepType0 - from ..models.list_queue_response_200_item_raw_flow_modules_item_mock import ListQueueResponse200ItemRawFlowModulesItemMock - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend import ListQueueResponse200ItemRawFlowModulesItemSuspend - from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_1 import ListQueueResponse200ItemRawFlowModulesItemSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = ListQueueResponse200ItemRawFlowModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['ListQueueResponse200ItemRawFlowModulesItemSleepType0', 'ListQueueResponse200ItemRawFlowModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = ListQueueResponse200ItemRawFlowModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = ListQueueResponse200ItemRawFlowModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = ListQueueResponse200ItemRawFlowModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = ListQueueResponse200ItemRawFlowModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListQueueResponse200ItemRawFlowModulesItemRetry.from_dict(_retry) - - - - - list_queue_response_200_item_raw_flow_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - list_queue_response_200_item_raw_flow_modules_item.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_mock.py deleted file mode 100644 index 1cd185b93e..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemMock") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - list_queue_response_200_item_raw_flow_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - list_queue_response_200_item_raw_flow_modules_item_mock.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry.py deleted file mode 100644 index 615cdc99c3..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry_exponential import ListQueueResponse200ItemRawFlowModulesItemRetryExponential - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry_constant import ListQueueResponse200ItemRawFlowModulesItemRetryConstant - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemRetry") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemRetry: - """ - Attributes: - constant (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemRetryConstant]): - exponential (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry_exponential import ListQueueResponse200ItemRawFlowModulesItemRetryExponential - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry_constant import ListQueueResponse200ItemRawFlowModulesItemRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry_exponential import ListQueueResponse200ItemRawFlowModulesItemRetryExponential - from ..models.list_queue_response_200_item_raw_flow_modules_item_retry_constant import ListQueueResponse200ItemRawFlowModulesItemRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ListQueueResponse200ItemRawFlowModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ListQueueResponse200ItemRawFlowModulesItemRetryExponential.from_dict(_exponential) - - - - - list_queue_response_200_item_raw_flow_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - list_queue_response_200_item_raw_flow_modules_item_retry.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry_constant.py deleted file mode 100644 index f7f21751cf..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemRetryConstant") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - list_queue_response_200_item_raw_flow_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - list_queue_response_200_item_raw_flow_modules_item_retry_constant.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry_exponential.py deleted file mode 100644 index fc67ee2505..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemRetryExponential") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - list_queue_response_200_item_raw_flow_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - list_queue_response_200_item_raw_flow_modules_item_retry_exponential.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_0.py deleted file mode 100644 index 0d8dac5368..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_0_type import ListQueueResponse200ItemRawFlowModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemSleepType0") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemSleepType0: - """ - Attributes: - type (ListQueueResponse200ItemRawFlowModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: ListQueueResponse200ItemRawFlowModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListQueueResponse200ItemRawFlowModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_queue_response_200_item_raw_flow_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - list_queue_response_200_item_raw_flow_modules_item_sleep_type_0.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_0_type.py deleted file mode 100644 index e9e6606ac5..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_1.py deleted file mode 100644 index fc24ab1615..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_queue_response_200_item_raw_flow_modules_item_sleep_type_1_type import ListQueueResponse200ItemRawFlowModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemSleepType1") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemSleepType1: - """ - Attributes: - expr (str): - type (ListQueueResponse200ItemRawFlowModulesItemSleepType1Type): - """ - - expr: str - type: ListQueueResponse200ItemRawFlowModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListQueueResponse200ItemRawFlowModulesItemSleepType1Type(d.pop("type")) - - - - - list_queue_response_200_item_raw_flow_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - list_queue_response_200_item_raw_flow_modules_item_sleep_type_1.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_1_type.py deleted file mode 100644 index a4eb135e89..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_stop_after_if.py deleted file mode 100644 index f093dd0d6c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemStopAfterIf") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - list_queue_response_200_item_raw_flow_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - list_queue_response_200_item_raw_flow_modules_item_stop_after_if.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend.py deleted file mode 100644 index 7732adae6c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form import ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemSuspend") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0', - 'ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0', 'ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form import ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form import ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0', 'ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - list_queue_response_200_item_raw_flow_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - list_queue_response_200_item_raw_flow_modules_item_suspend.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form.py deleted file mode 100644 index 9670ce88dc..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema import ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema import ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema import ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index e9adc0ec9b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema = cls( - ) - - list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index b0d5701b86..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 2902c33e3a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index a43dce2a68..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type import ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 7191082291..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_queue_response_200_item_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class ListQueueResponse200ItemRawFlowModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_raw_apps_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_raw_apps_response_200_item.py deleted file mode 100644 index ad3b3517bf..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_raw_apps_response_200_item.py +++ /dev/null @@ -1,131 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_raw_apps_response_200_item_extra_perms import ListRawAppsResponse200ItemExtraPerms - - - - - -T = TypeVar("T", bound="ListRawAppsResponse200Item") - - -@_attrs_define -class ListRawAppsResponse200Item: - """ - Attributes: - workspace_id (str): - path (str): - summary (str): - extra_perms (ListRawAppsResponse200ItemExtraPerms): - version (float): - edited_at (datetime.datetime): - starred (Union[Unset, bool]): - """ - - workspace_id: str - path: str - summary: str - extra_perms: 'ListRawAppsResponse200ItemExtraPerms' - version: float - edited_at: datetime.datetime - starred: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_raw_apps_response_200_item_extra_perms import ListRawAppsResponse200ItemExtraPerms - workspace_id = self.workspace_id - path = self.path - summary = self.summary - extra_perms = self.extra_perms.to_dict() - - version = self.version - edited_at = self.edited_at.isoformat() - - starred = self.starred - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "extra_perms": extra_perms, - "version": version, - "edited_at": edited_at, - }) - if starred is not UNSET: - field_dict["starred"] = starred - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_raw_apps_response_200_item_extra_perms import ListRawAppsResponse200ItemExtraPerms - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - extra_perms = ListRawAppsResponse200ItemExtraPerms.from_dict(d.pop("extra_perms")) - - - - - version = d.pop("version") - - edited_at = isoparse(d.pop("edited_at")) - - - - - starred = d.pop("starred", UNSET) - - list_raw_apps_response_200_item = cls( - workspace_id=workspace_id, - path=path, - summary=summary, - extra_perms=extra_perms, - version=version, - edited_at=edited_at, - starred=starred, - ) - - list_raw_apps_response_200_item.additional_properties = d - return list_raw_apps_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_raw_apps_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_raw_apps_response_200_item_extra_perms.py deleted file mode 100644 index 173cd206bc..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_raw_apps_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListRawAppsResponse200ItemExtraPerms") - - -@_attrs_define -class ListRawAppsResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_raw_apps_response_200_item_extra_perms = cls( - ) - - - list_raw_apps_response_200_item_extra_perms.additional_properties = d - return list_raw_apps_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_resource_names_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_resource_names_response_200_item.py deleted file mode 100644 index 4f96894eac..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_resource_names_response_200_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListResourceNamesResponse200Item") - - -@_attrs_define -class ListResourceNamesResponse200Item: - """ - Attributes: - name (str): - path (str): - """ - - name: str - path: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - path = self.path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "path": path, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - path = d.pop("path") - - list_resource_names_response_200_item = cls( - name=name, - path=path, - ) - - list_resource_names_response_200_item.additional_properties = d - return list_resource_names_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_resource_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_resource_response_200_item.py deleted file mode 100644 index 383d1c04b3..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_resource_response_200_item.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_resource_response_200_item_extra_perms import ListResourceResponse200ItemExtraPerms - - - - - -T = TypeVar("T", bound="ListResourceResponse200Item") - - -@_attrs_define -class ListResourceResponse200Item: - """ - Attributes: - path (str): - resource_type (str): - is_oauth (bool): - is_linked (bool): - is_refreshed (bool): - workspace_id (Union[Unset, str]): - description (Union[Unset, str]): - value (Union[Unset, Any]): - extra_perms (Union[Unset, ListResourceResponse200ItemExtraPerms]): - is_expired (Union[Unset, bool]): - refresh_error (Union[Unset, str]): - account (Union[Unset, float]): - """ - - path: str - resource_type: str - is_oauth: bool - is_linked: bool - is_refreshed: bool - workspace_id: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - value: Union[Unset, Any] = UNSET - extra_perms: Union[Unset, 'ListResourceResponse200ItemExtraPerms'] = UNSET - is_expired: Union[Unset, bool] = UNSET - refresh_error: Union[Unset, str] = UNSET - account: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_resource_response_200_item_extra_perms import ListResourceResponse200ItemExtraPerms - path = self.path - resource_type = self.resource_type - is_oauth = self.is_oauth - is_linked = self.is_linked - is_refreshed = self.is_refreshed - workspace_id = self.workspace_id - description = self.description - value = self.value - extra_perms: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_perms, Unset): - extra_perms = self.extra_perms.to_dict() - - is_expired = self.is_expired - refresh_error = self.refresh_error - account = self.account - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "resource_type": resource_type, - "is_oauth": is_oauth, - "is_linked": is_linked, - "is_refreshed": is_refreshed, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if description is not UNSET: - field_dict["description"] = description - if value is not UNSET: - field_dict["value"] = value - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - if is_expired is not UNSET: - field_dict["is_expired"] = is_expired - if refresh_error is not UNSET: - field_dict["refresh_error"] = refresh_error - if account is not UNSET: - field_dict["account"] = account - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_resource_response_200_item_extra_perms import ListResourceResponse200ItemExtraPerms - d = src_dict.copy() - path = d.pop("path") - - resource_type = d.pop("resource_type") - - is_oauth = d.pop("is_oauth") - - is_linked = d.pop("is_linked") - - is_refreshed = d.pop("is_refreshed") - - workspace_id = d.pop("workspace_id", UNSET) - - description = d.pop("description", UNSET) - - value = d.pop("value", UNSET) - - _extra_perms = d.pop("extra_perms", UNSET) - extra_perms: Union[Unset, ListResourceResponse200ItemExtraPerms] - if isinstance(_extra_perms, Unset): - extra_perms = UNSET - else: - extra_perms = ListResourceResponse200ItemExtraPerms.from_dict(_extra_perms) - - - - - is_expired = d.pop("is_expired", UNSET) - - refresh_error = d.pop("refresh_error", UNSET) - - account = d.pop("account", UNSET) - - list_resource_response_200_item = cls( - path=path, - resource_type=resource_type, - is_oauth=is_oauth, - is_linked=is_linked, - is_refreshed=is_refreshed, - workspace_id=workspace_id, - description=description, - value=value, - extra_perms=extra_perms, - is_expired=is_expired, - refresh_error=refresh_error, - account=account, - ) - - list_resource_response_200_item.additional_properties = d - return list_resource_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_resource_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_resource_response_200_item_extra_perms.py deleted file mode 100644 index e458a16677..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_resource_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListResourceResponse200ItemExtraPerms") - - -@_attrs_define -class ListResourceResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_resource_response_200_item_extra_perms = cls( - ) - - - list_resource_response_200_item_extra_perms.additional_properties = d - return list_resource_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_resource_type_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_resource_type_response_200_item.py deleted file mode 100644 index d4d9a8cb45..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_resource_type_response_200_item.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListResourceTypeResponse200Item") - - -@_attrs_define -class ListResourceTypeResponse200Item: - """ - Attributes: - name (str): - workspace_id (Union[Unset, str]): - schema (Union[Unset, Any]): - description (Union[Unset, str]): - """ - - name: str - workspace_id: Union[Unset, str] = UNSET - schema: Union[Unset, Any] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - workspace_id = self.workspace_id - schema = self.schema - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if schema is not UNSET: - field_dict["schema"] = schema - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - workspace_id = d.pop("workspace_id", UNSET) - - schema = d.pop("schema", UNSET) - - description = d.pop("description", UNSET) - - list_resource_type_response_200_item = cls( - name=name, - workspace_id=workspace_id, - schema=schema, - description=description, - ) - - list_resource_type_response_200_item.additional_properties = d - return list_resource_type_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item.py deleted file mode 100644 index 9e82396d43..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item.py +++ /dev/null @@ -1,319 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_schedules_response_200_item_args import ListSchedulesResponse200ItemArgs - from ..models.list_schedules_response_200_item_retry import ListSchedulesResponse200ItemRetry - from ..models.list_schedules_response_200_item_extra_perms import ListSchedulesResponse200ItemExtraPerms - from ..models.list_schedules_response_200_item_on_failure_extra_args import ListSchedulesResponse200ItemOnFailureExtraArgs - from ..models.list_schedules_response_200_item_on_recovery_extra_args import ListSchedulesResponse200ItemOnRecoveryExtraArgs - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200Item") - - -@_attrs_define -class ListSchedulesResponse200Item: - """ - Attributes: - path (str): - edited_by (str): - edited_at (datetime.datetime): - schedule (str): - timezone (str): - enabled (bool): - script_path (str): - is_flow (bool): - extra_perms (ListSchedulesResponse200ItemExtraPerms): - email (str): - args (Union[Unset, ListSchedulesResponse200ItemArgs]): - error (Union[Unset, str]): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, ListSchedulesResponse200ItemOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, ListSchedulesResponse200ItemOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, ListSchedulesResponse200ItemRetry]): - summary (Union[Unset, str]): - no_flow_overlap (Union[Unset, bool]): - tag (Union[Unset, str]): - """ - - path: str - edited_by: str - edited_at: datetime.datetime - schedule: str - timezone: str - enabled: bool - script_path: str - is_flow: bool - extra_perms: 'ListSchedulesResponse200ItemExtraPerms' - email: str - args: Union[Unset, 'ListSchedulesResponse200ItemArgs'] = UNSET - error: Union[Unset, str] = UNSET - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'ListSchedulesResponse200ItemOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'ListSchedulesResponse200ItemOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'ListSchedulesResponse200ItemRetry'] = UNSET - summary: Union[Unset, str] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_schedules_response_200_item_args import ListSchedulesResponse200ItemArgs - from ..models.list_schedules_response_200_item_retry import ListSchedulesResponse200ItemRetry - from ..models.list_schedules_response_200_item_extra_perms import ListSchedulesResponse200ItemExtraPerms - from ..models.list_schedules_response_200_item_on_failure_extra_args import ListSchedulesResponse200ItemOnFailureExtraArgs - from ..models.list_schedules_response_200_item_on_recovery_extra_args import ListSchedulesResponse200ItemOnRecoveryExtraArgs - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - schedule = self.schedule - timezone = self.timezone - enabled = self.enabled - script_path = self.script_path - is_flow = self.is_flow - extra_perms = self.extra_perms.to_dict() - - email = self.email - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - error = self.error - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - summary = self.summary - no_flow_overlap = self.no_flow_overlap - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "schedule": schedule, - "timezone": timezone, - "enabled": enabled, - "script_path": script_path, - "is_flow": is_flow, - "extra_perms": extra_perms, - "email": email, - }) - if args is not UNSET: - field_dict["args"] = args - if error is not UNSET: - field_dict["error"] = error - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if summary is not UNSET: - field_dict["summary"] = summary - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if tag is not UNSET: - field_dict["tag"] = tag - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_schedules_response_200_item_args import ListSchedulesResponse200ItemArgs - from ..models.list_schedules_response_200_item_retry import ListSchedulesResponse200ItemRetry - from ..models.list_schedules_response_200_item_extra_perms import ListSchedulesResponse200ItemExtraPerms - from ..models.list_schedules_response_200_item_on_failure_extra_args import ListSchedulesResponse200ItemOnFailureExtraArgs - from ..models.list_schedules_response_200_item_on_recovery_extra_args import ListSchedulesResponse200ItemOnRecoveryExtraArgs - d = src_dict.copy() - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - enabled = d.pop("enabled") - - script_path = d.pop("script_path") - - is_flow = d.pop("is_flow") - - extra_perms = ListSchedulesResponse200ItemExtraPerms.from_dict(d.pop("extra_perms")) - - - - - email = d.pop("email") - - _args = d.pop("args", UNSET) - args: Union[Unset, ListSchedulesResponse200ItemArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = ListSchedulesResponse200ItemArgs.from_dict(_args) - - - - - error = d.pop("error", UNSET) - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, ListSchedulesResponse200ItemOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = ListSchedulesResponse200ItemOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, ListSchedulesResponse200ItemOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = ListSchedulesResponse200ItemOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListSchedulesResponse200ItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListSchedulesResponse200ItemRetry.from_dict(_retry) - - - - - summary = d.pop("summary", UNSET) - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - tag = d.pop("tag", UNSET) - - list_schedules_response_200_item = cls( - path=path, - edited_by=edited_by, - edited_at=edited_at, - schedule=schedule, - timezone=timezone, - enabled=enabled, - script_path=script_path, - is_flow=is_flow, - extra_perms=extra_perms, - email=email, - args=args, - error=error, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - summary=summary, - no_flow_overlap=no_flow_overlap, - tag=tag, - ) - - list_schedules_response_200_item.additional_properties = d - return list_schedules_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_args.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_args.py deleted file mode 100644 index 069655f00d..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200ItemArgs") - - -@_attrs_define -class ListSchedulesResponse200ItemArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_response_200_item_args = cls( - ) - - list_schedules_response_200_item_args.additional_properties = d - return list_schedules_response_200_item_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_extra_perms.py deleted file mode 100644 index 4c8866a1a8..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200ItemExtraPerms") - - -@_attrs_define -class ListSchedulesResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_response_200_item_extra_perms = cls( - ) - - - list_schedules_response_200_item_extra_perms.additional_properties = d - return list_schedules_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_on_failure_extra_args.py deleted file mode 100644 index 0b30d8bb8c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200ItemOnFailureExtraArgs") - - -@_attrs_define -class ListSchedulesResponse200ItemOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_response_200_item_on_failure_extra_args = cls( - ) - - list_schedules_response_200_item_on_failure_extra_args.additional_properties = d - return list_schedules_response_200_item_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_on_recovery_extra_args.py deleted file mode 100644 index 16672748b2..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200ItemOnRecoveryExtraArgs") - - -@_attrs_define -class ListSchedulesResponse200ItemOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_response_200_item_on_recovery_extra_args = cls( - ) - - list_schedules_response_200_item_on_recovery_extra_args.additional_properties = d - return list_schedules_response_200_item_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry.py deleted file mode 100644 index e4cb710cef..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_schedules_response_200_item_retry_constant import ListSchedulesResponse200ItemRetryConstant - from ..models.list_schedules_response_200_item_retry_exponential import ListSchedulesResponse200ItemRetryExponential - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200ItemRetry") - - -@_attrs_define -class ListSchedulesResponse200ItemRetry: - """ - Attributes: - constant (Union[Unset, ListSchedulesResponse200ItemRetryConstant]): - exponential (Union[Unset, ListSchedulesResponse200ItemRetryExponential]): - """ - - constant: Union[Unset, 'ListSchedulesResponse200ItemRetryConstant'] = UNSET - exponential: Union[Unset, 'ListSchedulesResponse200ItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_schedules_response_200_item_retry_constant import ListSchedulesResponse200ItemRetryConstant - from ..models.list_schedules_response_200_item_retry_exponential import ListSchedulesResponse200ItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_schedules_response_200_item_retry_constant import ListSchedulesResponse200ItemRetryConstant - from ..models.list_schedules_response_200_item_retry_exponential import ListSchedulesResponse200ItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ListSchedulesResponse200ItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ListSchedulesResponse200ItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ListSchedulesResponse200ItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ListSchedulesResponse200ItemRetryExponential.from_dict(_exponential) - - - - - list_schedules_response_200_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - list_schedules_response_200_item_retry.additional_properties = d - return list_schedules_response_200_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry_constant.py deleted file mode 100644 index 95da4e2663..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200ItemRetryConstant") - - -@_attrs_define -class ListSchedulesResponse200ItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - list_schedules_response_200_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - list_schedules_response_200_item_retry_constant.additional_properties = d - return list_schedules_response_200_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry_exponential.py deleted file mode 100644 index 3d869b50f0..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_response_200_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListSchedulesResponse200ItemRetryExponential") - - -@_attrs_define -class ListSchedulesResponse200ItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - list_schedules_response_200_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - list_schedules_response_200_item_retry_exponential.additional_properties = d - return list_schedules_response_200_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item.py deleted file mode 100644 index c5558762d4..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item.py +++ /dev/null @@ -1,349 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_schedules_with_jobs_response_200_item_jobs_item import ListSchedulesWithJobsResponse200ItemJobsItem - from ..models.list_schedules_with_jobs_response_200_item_on_failure_extra_args import ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs - from ..models.list_schedules_with_jobs_response_200_item_extra_perms import ListSchedulesWithJobsResponse200ItemExtraPerms - from ..models.list_schedules_with_jobs_response_200_item_args import ListSchedulesWithJobsResponse200ItemArgs - from ..models.list_schedules_with_jobs_response_200_item_retry import ListSchedulesWithJobsResponse200ItemRetry - from ..models.list_schedules_with_jobs_response_200_item_on_recovery_extra_args import ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200Item") - - -@_attrs_define -class ListSchedulesWithJobsResponse200Item: - """ - Attributes: - path (str): - edited_by (str): - edited_at (datetime.datetime): - schedule (str): - timezone (str): - enabled (bool): - script_path (str): - is_flow (bool): - extra_perms (ListSchedulesWithJobsResponse200ItemExtraPerms): - email (str): - args (Union[Unset, ListSchedulesWithJobsResponse200ItemArgs]): - error (Union[Unset, str]): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, ListSchedulesWithJobsResponse200ItemRetry]): - summary (Union[Unset, str]): - no_flow_overlap (Union[Unset, bool]): - tag (Union[Unset, str]): - jobs (Union[Unset, List['ListSchedulesWithJobsResponse200ItemJobsItem']]): - """ - - path: str - edited_by: str - edited_at: datetime.datetime - schedule: str - timezone: str - enabled: bool - script_path: str - is_flow: bool - extra_perms: 'ListSchedulesWithJobsResponse200ItemExtraPerms' - email: str - args: Union[Unset, 'ListSchedulesWithJobsResponse200ItemArgs'] = UNSET - error: Union[Unset, str] = UNSET - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'ListSchedulesWithJobsResponse200ItemRetry'] = UNSET - summary: Union[Unset, str] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - jobs: Union[Unset, List['ListSchedulesWithJobsResponse200ItemJobsItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_schedules_with_jobs_response_200_item_jobs_item import ListSchedulesWithJobsResponse200ItemJobsItem - from ..models.list_schedules_with_jobs_response_200_item_on_failure_extra_args import ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs - from ..models.list_schedules_with_jobs_response_200_item_extra_perms import ListSchedulesWithJobsResponse200ItemExtraPerms - from ..models.list_schedules_with_jobs_response_200_item_args import ListSchedulesWithJobsResponse200ItemArgs - from ..models.list_schedules_with_jobs_response_200_item_retry import ListSchedulesWithJobsResponse200ItemRetry - from ..models.list_schedules_with_jobs_response_200_item_on_recovery_extra_args import ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - schedule = self.schedule - timezone = self.timezone - enabled = self.enabled - script_path = self.script_path - is_flow = self.is_flow - extra_perms = self.extra_perms.to_dict() - - email = self.email - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - error = self.error - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - summary = self.summary - no_flow_overlap = self.no_flow_overlap - tag = self.tag - jobs: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.jobs, Unset): - jobs = [] - for jobs_item_data in self.jobs: - jobs_item = jobs_item_data.to_dict() - - jobs.append(jobs_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "schedule": schedule, - "timezone": timezone, - "enabled": enabled, - "script_path": script_path, - "is_flow": is_flow, - "extra_perms": extra_perms, - "email": email, - }) - if args is not UNSET: - field_dict["args"] = args - if error is not UNSET: - field_dict["error"] = error - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if summary is not UNSET: - field_dict["summary"] = summary - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if tag is not UNSET: - field_dict["tag"] = tag - if jobs is not UNSET: - field_dict["jobs"] = jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_schedules_with_jobs_response_200_item_jobs_item import ListSchedulesWithJobsResponse200ItemJobsItem - from ..models.list_schedules_with_jobs_response_200_item_on_failure_extra_args import ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs - from ..models.list_schedules_with_jobs_response_200_item_extra_perms import ListSchedulesWithJobsResponse200ItemExtraPerms - from ..models.list_schedules_with_jobs_response_200_item_args import ListSchedulesWithJobsResponse200ItemArgs - from ..models.list_schedules_with_jobs_response_200_item_retry import ListSchedulesWithJobsResponse200ItemRetry - from ..models.list_schedules_with_jobs_response_200_item_on_recovery_extra_args import ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs - d = src_dict.copy() - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - enabled = d.pop("enabled") - - script_path = d.pop("script_path") - - is_flow = d.pop("is_flow") - - extra_perms = ListSchedulesWithJobsResponse200ItemExtraPerms.from_dict(d.pop("extra_perms")) - - - - - email = d.pop("email") - - _args = d.pop("args", UNSET) - args: Union[Unset, ListSchedulesWithJobsResponse200ItemArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = ListSchedulesWithJobsResponse200ItemArgs.from_dict(_args) - - - - - error = d.pop("error", UNSET) - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ListSchedulesWithJobsResponse200ItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ListSchedulesWithJobsResponse200ItemRetry.from_dict(_retry) - - - - - summary = d.pop("summary", UNSET) - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - tag = d.pop("tag", UNSET) - - jobs = [] - _jobs = d.pop("jobs", UNSET) - for jobs_item_data in (_jobs or []): - jobs_item = ListSchedulesWithJobsResponse200ItemJobsItem.from_dict(jobs_item_data) - - - - jobs.append(jobs_item) - - - list_schedules_with_jobs_response_200_item = cls( - path=path, - edited_by=edited_by, - edited_at=edited_at, - schedule=schedule, - timezone=timezone, - enabled=enabled, - script_path=script_path, - is_flow=is_flow, - extra_perms=extra_perms, - email=email, - args=args, - error=error, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - summary=summary, - no_flow_overlap=no_flow_overlap, - tag=tag, - jobs=jobs, - ) - - list_schedules_with_jobs_response_200_item.additional_properties = d - return list_schedules_with_jobs_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_args.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_args.py deleted file mode 100644 index 0d7f8c034f..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemArgs") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_with_jobs_response_200_item_args = cls( - ) - - list_schedules_with_jobs_response_200_item_args.additional_properties = d - return list_schedules_with_jobs_response_200_item_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_extra_perms.py deleted file mode 100644 index 7ed425e150..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemExtraPerms") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_with_jobs_response_200_item_extra_perms = cls( - ) - - - list_schedules_with_jobs_response_200_item_extra_perms.additional_properties = d - return list_schedules_with_jobs_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_jobs_item.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_jobs_item.py deleted file mode 100644 index 66391040eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_jobs_item.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemJobsItem") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemJobsItem: - """ - Attributes: - id (str): - success (bool): - duration_ms (float): - """ - - id: str - success: bool - duration_ms: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - success = self.success - duration_ms = self.duration_ms - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "success": success, - "duration_ms": duration_ms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - success = d.pop("success") - - duration_ms = d.pop("duration_ms") - - list_schedules_with_jobs_response_200_item_jobs_item = cls( - id=id, - success=success, - duration_ms=duration_ms, - ) - - list_schedules_with_jobs_response_200_item_jobs_item.additional_properties = d - return list_schedules_with_jobs_response_200_item_jobs_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_on_failure_extra_args.py deleted file mode 100644 index 6acfb7b276..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_with_jobs_response_200_item_on_failure_extra_args = cls( - ) - - list_schedules_with_jobs_response_200_item_on_failure_extra_args.additional_properties = d - return list_schedules_with_jobs_response_200_item_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_on_recovery_extra_args.py deleted file mode 100644 index 63ccbe27da..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_schedules_with_jobs_response_200_item_on_recovery_extra_args = cls( - ) - - list_schedules_with_jobs_response_200_item_on_recovery_extra_args.additional_properties = d - return list_schedules_with_jobs_response_200_item_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry.py deleted file mode 100644 index ebeb44f9c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_schedules_with_jobs_response_200_item_retry_constant import ListSchedulesWithJobsResponse200ItemRetryConstant - from ..models.list_schedules_with_jobs_response_200_item_retry_exponential import ListSchedulesWithJobsResponse200ItemRetryExponential - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemRetry") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemRetry: - """ - Attributes: - constant (Union[Unset, ListSchedulesWithJobsResponse200ItemRetryConstant]): - exponential (Union[Unset, ListSchedulesWithJobsResponse200ItemRetryExponential]): - """ - - constant: Union[Unset, 'ListSchedulesWithJobsResponse200ItemRetryConstant'] = UNSET - exponential: Union[Unset, 'ListSchedulesWithJobsResponse200ItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_schedules_with_jobs_response_200_item_retry_constant import ListSchedulesWithJobsResponse200ItemRetryConstant - from ..models.list_schedules_with_jobs_response_200_item_retry_exponential import ListSchedulesWithJobsResponse200ItemRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_schedules_with_jobs_response_200_item_retry_constant import ListSchedulesWithJobsResponse200ItemRetryConstant - from ..models.list_schedules_with_jobs_response_200_item_retry_exponential import ListSchedulesWithJobsResponse200ItemRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ListSchedulesWithJobsResponse200ItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ListSchedulesWithJobsResponse200ItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ListSchedulesWithJobsResponse200ItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ListSchedulesWithJobsResponse200ItemRetryExponential.from_dict(_exponential) - - - - - list_schedules_with_jobs_response_200_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - list_schedules_with_jobs_response_200_item_retry.additional_properties = d - return list_schedules_with_jobs_response_200_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry_constant.py deleted file mode 100644 index 6b4974c0c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemRetryConstant") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - list_schedules_with_jobs_response_200_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - list_schedules_with_jobs_response_200_item_retry_constant.additional_properties = d - return list_schedules_with_jobs_response_200_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry_exponential.py deleted file mode 100644 index 8876e1fdbc..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_schedules_with_jobs_response_200_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListSchedulesWithJobsResponse200ItemRetryExponential") - - -@_attrs_define -class ListSchedulesWithJobsResponse200ItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - list_schedules_with_jobs_response_200_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - list_schedules_with_jobs_response_200_item_retry_exponential.additional_properties = d - return list_schedules_with_jobs_response_200_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item.py deleted file mode 100644 index f53aa0f8bb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item.py +++ /dev/null @@ -1,363 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from ..models.list_scripts_response_200_item_kind import ListScriptsResponse200ItemKind -from dateutil.parser import isoparse -from ..models.list_scripts_response_200_item_language import ListScriptsResponse200ItemLanguage -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_scripts_response_200_item_extra_perms import ListScriptsResponse200ItemExtraPerms - from ..models.list_scripts_response_200_item_schema import ListScriptsResponse200ItemSchema - - - - - -T = TypeVar("T", bound="ListScriptsResponse200Item") - - -@_attrs_define -class ListScriptsResponse200Item: - """ - Attributes: - hash_ (str): - path (str): - summary (str): - description (str): - content (str): - created_by (str): - created_at (datetime.datetime): - archived (bool): - deleted (bool): - is_template (bool): - extra_perms (ListScriptsResponse200ItemExtraPerms): - language (ListScriptsResponse200ItemLanguage): - kind (ListScriptsResponse200ItemKind): - starred (bool): - workspace_id (Union[Unset, str]): - parent_hashes (Union[Unset, List[str]]): The first element is the direct parent of the script, the second is the - parent of the first, etc - schema (Union[Unset, ListScriptsResponse200ItemSchema]): - lock (Union[Unset, str]): - lock_error_logs (Union[Unset, str]): - tag (Union[Unset, str]): - has_draft (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - """ - - hash_: str - path: str - summary: str - description: str - content: str - created_by: str - created_at: datetime.datetime - archived: bool - deleted: bool - is_template: bool - extra_perms: 'ListScriptsResponse200ItemExtraPerms' - language: ListScriptsResponse200ItemLanguage - kind: ListScriptsResponse200ItemKind - starred: bool - workspace_id: Union[Unset, str] = UNSET - parent_hashes: Union[Unset, List[str]] = UNSET - schema: Union[Unset, 'ListScriptsResponse200ItemSchema'] = UNSET - lock: Union[Unset, str] = UNSET - lock_error_logs: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - has_draft: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_scripts_response_200_item_extra_perms import ListScriptsResponse200ItemExtraPerms - from ..models.list_scripts_response_200_item_schema import ListScriptsResponse200ItemSchema - hash_ = self.hash_ - path = self.path - summary = self.summary - description = self.description - content = self.content - created_by = self.created_by - created_at = self.created_at.isoformat() - - archived = self.archived - deleted = self.deleted - is_template = self.is_template - extra_perms = self.extra_perms.to_dict() - - language = self.language.value - - kind = self.kind.value - - starred = self.starred - workspace_id = self.workspace_id - parent_hashes: Union[Unset, List[str]] = UNSET - if not isinstance(self.parent_hashes, Unset): - parent_hashes = self.parent_hashes - - - - - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - lock = self.lock - lock_error_logs = self.lock_error_logs - tag = self.tag - has_draft = self.has_draft - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "hash": hash_, - "path": path, - "summary": summary, - "description": description, - "content": content, - "created_by": created_by, - "created_at": created_at, - "archived": archived, - "deleted": deleted, - "is_template": is_template, - "extra_perms": extra_perms, - "language": language, - "kind": kind, - "starred": starred, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_hashes is not UNSET: - field_dict["parent_hashes"] = parent_hashes - if schema is not UNSET: - field_dict["schema"] = schema - if lock is not UNSET: - field_dict["lock"] = lock - if lock_error_logs is not UNSET: - field_dict["lock_error_logs"] = lock_error_logs - if tag is not UNSET: - field_dict["tag"] = tag - if has_draft is not UNSET: - field_dict["has_draft"] = has_draft - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_scripts_response_200_item_extra_perms import ListScriptsResponse200ItemExtraPerms - from ..models.list_scripts_response_200_item_schema import ListScriptsResponse200ItemSchema - d = src_dict.copy() - hash_ = d.pop("hash") - - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - archived = d.pop("archived") - - deleted = d.pop("deleted") - - is_template = d.pop("is_template") - - extra_perms = ListScriptsResponse200ItemExtraPerms.from_dict(d.pop("extra_perms")) - - - - - language = ListScriptsResponse200ItemLanguage(d.pop("language")) - - - - - kind = ListScriptsResponse200ItemKind(d.pop("kind")) - - - - - starred = d.pop("starred") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_hashes = cast(List[str], d.pop("parent_hashes", UNSET)) - - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ListScriptsResponse200ItemSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ListScriptsResponse200ItemSchema.from_dict(_schema) - - - - - lock = d.pop("lock", UNSET) - - lock_error_logs = d.pop("lock_error_logs", UNSET) - - tag = d.pop("tag", UNSET) - - has_draft = d.pop("has_draft", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - list_scripts_response_200_item = cls( - hash_=hash_, - path=path, - summary=summary, - description=description, - content=content, - created_by=created_by, - created_at=created_at, - archived=archived, - deleted=deleted, - is_template=is_template, - extra_perms=extra_perms, - language=language, - kind=kind, - starred=starred, - workspace_id=workspace_id, - parent_hashes=parent_hashes, - schema=schema, - lock=lock, - lock_error_logs=lock_error_logs, - tag=tag, - has_draft=has_draft, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - ) - - list_scripts_response_200_item.additional_properties = d - return list_scripts_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_extra_perms.py deleted file mode 100644 index 575e34d938..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListScriptsResponse200ItemExtraPerms") - - -@_attrs_define -class ListScriptsResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_scripts_response_200_item_extra_perms = cls( - ) - - - list_scripts_response_200_item_extra_perms.additional_properties = d - return list_scripts_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_kind.py b/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_kind.py deleted file mode 100644 index 50b655e70b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class ListScriptsResponse200ItemKind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_language.py b/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_language.py deleted file mode 100644 index 894e43b5a9..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class ListScriptsResponse200ItemLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_schema.py b/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_schema.py deleted file mode 100644 index 20067841f2..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_scripts_response_200_item_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListScriptsResponse200ItemSchema") - - -@_attrs_define -class ListScriptsResponse200ItemSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_scripts_response_200_item_schema = cls( - ) - - list_scripts_response_200_item_schema.additional_properties = d - return list_scripts_response_200_item_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_search_app_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_search_app_response_200_item.py deleted file mode 100644 index 7eb8d06d55..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_search_app_response_200_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSearchAppResponse200Item") - - -@_attrs_define -class ListSearchAppResponse200Item: - """ - Attributes: - path (str): - value (Any): - """ - - path: str - value: Any - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - list_search_app_response_200_item = cls( - path=path, - value=value, - ) - - list_search_app_response_200_item.additional_properties = d - return list_search_app_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_search_flow_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_search_flow_response_200_item.py deleted file mode 100644 index 345d84753c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_search_flow_response_200_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSearchFlowResponse200Item") - - -@_attrs_define -class ListSearchFlowResponse200Item: - """ - Attributes: - path (str): - value (Any): - """ - - path: str - value: Any - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - list_search_flow_response_200_item = cls( - path=path, - value=value, - ) - - list_search_flow_response_200_item.additional_properties = d - return list_search_flow_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_search_resource_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_search_resource_response_200_item.py deleted file mode 100644 index 693237bd66..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_search_resource_response_200_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSearchResourceResponse200Item") - - -@_attrs_define -class ListSearchResourceResponse200Item: - """ - Attributes: - path (str): - value (Any): - """ - - path: str - value: Any - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "value": value, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - value = d.pop("value") - - list_search_resource_response_200_item = cls( - path=path, - value=value, - ) - - list_search_resource_response_200_item.additional_properties = d - return list_search_resource_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_search_script_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_search_script_response_200_item.py deleted file mode 100644 index 38d3050927..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_search_script_response_200_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListSearchScriptResponse200Item") - - -@_attrs_define -class ListSearchScriptResponse200Item: - """ - Attributes: - path (str): - content (str): - """ - - path: str - content: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - content = self.content - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "content": content, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - content = d.pop("content") - - list_search_script_response_200_item = cls( - path=path, - content=content, - ) - - list_search_script_response_200_item.additional_properties = d - return list_search_script_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_stored_files_response_200.py b/python-client/windmill-api/windmill_api/models/list_stored_files_response_200.py deleted file mode 100644 index c72e85b6e6..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_stored_files_response_200.py +++ /dev/null @@ -1,103 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_stored_files_response_200_windmill_large_files_item import ListStoredFilesResponse200WindmillLargeFilesItem - - - - - -T = TypeVar("T", bound="ListStoredFilesResponse200") - - -@_attrs_define -class ListStoredFilesResponse200: - """ - Attributes: - windmill_large_files (List['ListStoredFilesResponse200WindmillLargeFilesItem']): - next_marker (Union[Unset, str]): - """ - - windmill_large_files: List['ListStoredFilesResponse200WindmillLargeFilesItem'] - next_marker: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_stored_files_response_200_windmill_large_files_item import ListStoredFilesResponse200WindmillLargeFilesItem - windmill_large_files = [] - for windmill_large_files_item_data in self.windmill_large_files: - windmill_large_files_item = windmill_large_files_item_data.to_dict() - - windmill_large_files.append(windmill_large_files_item) - - - - - next_marker = self.next_marker - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "windmill_large_files": windmill_large_files, - }) - if next_marker is not UNSET: - field_dict["next_marker"] = next_marker - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_stored_files_response_200_windmill_large_files_item import ListStoredFilesResponse200WindmillLargeFilesItem - d = src_dict.copy() - windmill_large_files = [] - _windmill_large_files = d.pop("windmill_large_files") - for windmill_large_files_item_data in (_windmill_large_files): - windmill_large_files_item = ListStoredFilesResponse200WindmillLargeFilesItem.from_dict(windmill_large_files_item_data) - - - - windmill_large_files.append(windmill_large_files_item) - - - next_marker = d.pop("next_marker", UNSET) - - list_stored_files_response_200 = cls( - windmill_large_files=windmill_large_files, - next_marker=next_marker, - ) - - list_stored_files_response_200.additional_properties = d - return list_stored_files_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_stored_files_response_200_windmill_large_files_item.py b/python-client/windmill-api/windmill_api/models/list_stored_files_response_200_windmill_large_files_item.py deleted file mode 100644 index 9418a1088b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_stored_files_response_200_windmill_large_files_item.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListStoredFilesResponse200WindmillLargeFilesItem") - - -@_attrs_define -class ListStoredFilesResponse200WindmillLargeFilesItem: - """ - Attributes: - s3 (str): - """ - - s3: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - s3 = self.s3 - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "s3": s3, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - s3 = d.pop("s3") - - list_stored_files_response_200_windmill_large_files_item = cls( - s3=s3, - ) - - list_stored_files_response_200_windmill_large_files_item.additional_properties = d - return list_stored_files_response_200_windmill_large_files_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_tokens_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_tokens_response_200_item.py deleted file mode 100644 index c4fc2939a8..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_tokens_response_200_item.py +++ /dev/null @@ -1,140 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListTokensResponse200Item") - - -@_attrs_define -class ListTokensResponse200Item: - """ - Attributes: - token_prefix (str): - created_at (datetime.datetime): - last_used_at (datetime.datetime): - label (Union[Unset, str]): - expiration (Union[Unset, datetime.datetime]): - scopes (Union[Unset, List[str]]): - """ - - token_prefix: str - created_at: datetime.datetime - last_used_at: datetime.datetime - label: Union[Unset, str] = UNSET - expiration: Union[Unset, datetime.datetime] = UNSET - scopes: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - token_prefix = self.token_prefix - created_at = self.created_at.isoformat() - - last_used_at = self.last_used_at.isoformat() - - label = self.label - expiration: Union[Unset, str] = UNSET - if not isinstance(self.expiration, Unset): - expiration = self.expiration.isoformat() - - scopes: Union[Unset, List[str]] = UNSET - if not isinstance(self.scopes, Unset): - scopes = self.scopes - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "token_prefix": token_prefix, - "created_at": created_at, - "last_used_at": last_used_at, - }) - if label is not UNSET: - field_dict["label"] = label - if expiration is not UNSET: - field_dict["expiration"] = expiration - if scopes is not UNSET: - field_dict["scopes"] = scopes - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - token_prefix = d.pop("token_prefix") - - created_at = isoparse(d.pop("created_at")) - - - - - last_used_at = isoparse(d.pop("last_used_at")) - - - - - label = d.pop("label", UNSET) - - _expiration = d.pop("expiration", UNSET) - expiration: Union[Unset, datetime.datetime] - if isinstance(_expiration, Unset): - expiration = UNSET - else: - expiration = isoparse(_expiration) - - - - - scopes = cast(List[str], d.pop("scopes", UNSET)) - - - list_tokens_response_200_item = cls( - token_prefix=token_prefix, - created_at=created_at, - last_used_at=last_used_at, - label=label, - expiration=expiration, - scopes=scopes, - ) - - list_tokens_response_200_item.additional_properties = d - return list_tokens_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_user_workspaces_response_200.py b/python-client/windmill-api/windmill_api/models/list_user_workspaces_response_200.py deleted file mode 100644 index ff6a65701e..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_user_workspaces_response_200.py +++ /dev/null @@ -1,100 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, List - -if TYPE_CHECKING: - from ..models.list_user_workspaces_response_200_workspaces_item import ListUserWorkspacesResponse200WorkspacesItem - - - - - -T = TypeVar("T", bound="ListUserWorkspacesResponse200") - - -@_attrs_define -class ListUserWorkspacesResponse200: - """ - Attributes: - email (str): - workspaces (List['ListUserWorkspacesResponse200WorkspacesItem']): - """ - - email: str - workspaces: List['ListUserWorkspacesResponse200WorkspacesItem'] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_user_workspaces_response_200_workspaces_item import ListUserWorkspacesResponse200WorkspacesItem - email = self.email - workspaces = [] - for workspaces_item_data in self.workspaces: - workspaces_item = workspaces_item_data.to_dict() - - workspaces.append(workspaces_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "workspaces": workspaces, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_user_workspaces_response_200_workspaces_item import ListUserWorkspacesResponse200WorkspacesItem - d = src_dict.copy() - email = d.pop("email") - - workspaces = [] - _workspaces = d.pop("workspaces") - for workspaces_item_data in (_workspaces): - workspaces_item = ListUserWorkspacesResponse200WorkspacesItem.from_dict(workspaces_item_data) - - - - workspaces.append(workspaces_item) - - - list_user_workspaces_response_200 = cls( - email=email, - workspaces=workspaces, - ) - - list_user_workspaces_response_200.additional_properties = d - return list_user_workspaces_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_user_workspaces_response_200_workspaces_item.py b/python-client/windmill-api/windmill_api/models/list_user_workspaces_response_200_workspaces_item.py deleted file mode 100644 index 4fe74c2b5c..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListUserWorkspacesResponse200WorkspacesItem") - - -@_attrs_define -class ListUserWorkspacesResponse200WorkspacesItem: - """ - Attributes: - id (str): - name (str): - username (str): - """ - - id: str - name: str - username: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "username": username, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - username = d.pop("username") - - list_user_workspaces_response_200_workspaces_item = cls( - id=id, - name=name, - username=username, - ) - - list_user_workspaces_response_200_workspaces_item.additional_properties = d - return list_user_workspaces_response_200_workspaces_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_users_as_super_admin_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_users_as_super_admin_response_200_item.py deleted file mode 100644 index 8d9da16383..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_users_as_super_admin_response_200_item.py +++ /dev/null @@ -1,114 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.list_users_as_super_admin_response_200_item_login_type import ListUsersAsSuperAdminResponse200ItemLoginType -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListUsersAsSuperAdminResponse200Item") - - -@_attrs_define -class ListUsersAsSuperAdminResponse200Item: - """ - Attributes: - email (str): - login_type (ListUsersAsSuperAdminResponse200ItemLoginType): - super_admin (bool): - verified (bool): - name (Union[Unset, str]): - company (Union[Unset, str]): - """ - - email: str - login_type: ListUsersAsSuperAdminResponse200ItemLoginType - super_admin: bool - verified: bool - name: Union[Unset, str] = UNSET - company: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - login_type = self.login_type.value - - super_admin = self.super_admin - verified = self.verified - name = self.name - company = self.company - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "login_type": login_type, - "super_admin": super_admin, - "verified": verified, - }) - if name is not UNSET: - field_dict["name"] = name - if company is not UNSET: - field_dict["company"] = company - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - login_type = ListUsersAsSuperAdminResponse200ItemLoginType(d.pop("login_type")) - - - - - super_admin = d.pop("super_admin") - - verified = d.pop("verified") - - name = d.pop("name", UNSET) - - company = d.pop("company", UNSET) - - list_users_as_super_admin_response_200_item = cls( - email=email, - login_type=login_type, - super_admin=super_admin, - verified=verified, - name=name, - company=company, - ) - - list_users_as_super_admin_response_200_item.additional_properties = d - return list_users_as_super_admin_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_users_as_super_admin_response_200_item_login_type.py b/python-client/windmill-api/windmill_api/models/list_users_as_super_admin_response_200_item_login_type.py deleted file mode 100644 index 068c05665d..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_users_as_super_admin_response_200_item_login_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class ListUsersAsSuperAdminResponse200ItemLoginType(str, Enum): - GITHUB = "github" - PASSWORD = "password" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/list_users_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_users_response_200_item.py deleted file mode 100644 index 337a9d5844..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_users_response_200_item.py +++ /dev/null @@ -1,185 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.list_users_response_200_item_usage import ListUsersResponse200ItemUsage - - - - - -T = TypeVar("T", bound="ListUsersResponse200Item") - - -@_attrs_define -class ListUsersResponse200Item: - """ - Attributes: - email (str): - username (str): - is_admin (bool): - is_super_admin (bool): - created_at (datetime.datetime): - operator (bool): - disabled (bool): - folders (List[str]): - folders_owners (List[str]): - groups (Union[Unset, List[str]]): - usage (Union[Unset, ListUsersResponse200ItemUsage]): - """ - - email: str - username: str - is_admin: bool - is_super_admin: bool - created_at: datetime.datetime - operator: bool - disabled: bool - folders: List[str] - folders_owners: List[str] - groups: Union[Unset, List[str]] = UNSET - usage: Union[Unset, 'ListUsersResponse200ItemUsage'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_users_response_200_item_usage import ListUsersResponse200ItemUsage - email = self.email - username = self.username - is_admin = self.is_admin - is_super_admin = self.is_super_admin - created_at = self.created_at.isoformat() - - operator = self.operator - disabled = self.disabled - folders = self.folders - - - - - folders_owners = self.folders_owners - - - - - groups: Union[Unset, List[str]] = UNSET - if not isinstance(self.groups, Unset): - groups = self.groups - - - - - usage: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.usage, Unset): - usage = self.usage.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "username": username, - "is_admin": is_admin, - "is_super_admin": is_super_admin, - "created_at": created_at, - "operator": operator, - "disabled": disabled, - "folders": folders, - "folders_owners": folders_owners, - }) - if groups is not UNSET: - field_dict["groups"] = groups - if usage is not UNSET: - field_dict["usage"] = usage - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_users_response_200_item_usage import ListUsersResponse200ItemUsage - d = src_dict.copy() - email = d.pop("email") - - username = d.pop("username") - - is_admin = d.pop("is_admin") - - is_super_admin = d.pop("is_super_admin") - - created_at = isoparse(d.pop("created_at")) - - - - - operator = d.pop("operator") - - disabled = d.pop("disabled") - - folders = cast(List[str], d.pop("folders")) - - - folders_owners = cast(List[str], d.pop("folders_owners")) - - - groups = cast(List[str], d.pop("groups", UNSET)) - - - _usage = d.pop("usage", UNSET) - usage: Union[Unset, ListUsersResponse200ItemUsage] - if isinstance(_usage, Unset): - usage = UNSET - else: - usage = ListUsersResponse200ItemUsage.from_dict(_usage) - - - - - list_users_response_200_item = cls( - email=email, - username=username, - is_admin=is_admin, - is_super_admin=is_super_admin, - created_at=created_at, - operator=operator, - disabled=disabled, - folders=folders, - folders_owners=folders_owners, - groups=groups, - usage=usage, - ) - - list_users_response_200_item.additional_properties = d - return list_users_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_users_response_200_item_usage.py b/python-client/windmill-api/windmill_api/models/list_users_response_200_item_usage.py deleted file mode 100644 index c611c052d0..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_users_response_200_item_usage.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListUsersResponse200ItemUsage") - - -@_attrs_define -class ListUsersResponse200ItemUsage: - """ - Attributes: - executions (Union[Unset, float]): - """ - - executions: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - executions = self.executions - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if executions is not UNSET: - field_dict["executions"] = executions - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - executions = d.pop("executions", UNSET) - - list_users_response_200_item_usage = cls( - executions=executions, - ) - - list_users_response_200_item_usage.additional_properties = d - return list_users_response_200_item_usage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_variable_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_variable_response_200_item.py deleted file mode 100644 index 7aac0e8592..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_variable_response_200_item.py +++ /dev/null @@ -1,167 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.list_variable_response_200_item_extra_perms import ListVariableResponse200ItemExtraPerms - - - - - -T = TypeVar("T", bound="ListVariableResponse200Item") - - -@_attrs_define -class ListVariableResponse200Item: - """ - Attributes: - workspace_id (str): - path (str): - is_secret (bool): - extra_perms (ListVariableResponse200ItemExtraPerms): - value (Union[Unset, str]): - description (Union[Unset, str]): - account (Union[Unset, int]): - is_oauth (Union[Unset, bool]): - is_expired (Union[Unset, bool]): - refresh_error (Union[Unset, str]): - is_linked (Union[Unset, bool]): - is_refreshed (Union[Unset, bool]): - """ - - workspace_id: str - path: str - is_secret: bool - extra_perms: 'ListVariableResponse200ItemExtraPerms' - value: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - account: Union[Unset, int] = UNSET - is_oauth: Union[Unset, bool] = UNSET - is_expired: Union[Unset, bool] = UNSET - refresh_error: Union[Unset, str] = UNSET - is_linked: Union[Unset, bool] = UNSET - is_refreshed: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.list_variable_response_200_item_extra_perms import ListVariableResponse200ItemExtraPerms - workspace_id = self.workspace_id - path = self.path - is_secret = self.is_secret - extra_perms = self.extra_perms.to_dict() - - value = self.value - description = self.description - account = self.account - is_oauth = self.is_oauth - is_expired = self.is_expired - refresh_error = self.refresh_error - is_linked = self.is_linked - is_refreshed = self.is_refreshed - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "path": path, - "is_secret": is_secret, - "extra_perms": extra_perms, - }) - if value is not UNSET: - field_dict["value"] = value - if description is not UNSET: - field_dict["description"] = description - if account is not UNSET: - field_dict["account"] = account - if is_oauth is not UNSET: - field_dict["is_oauth"] = is_oauth - if is_expired is not UNSET: - field_dict["is_expired"] = is_expired - if refresh_error is not UNSET: - field_dict["refresh_error"] = refresh_error - if is_linked is not UNSET: - field_dict["is_linked"] = is_linked - if is_refreshed is not UNSET: - field_dict["is_refreshed"] = is_refreshed - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.list_variable_response_200_item_extra_perms import ListVariableResponse200ItemExtraPerms - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - is_secret = d.pop("is_secret") - - extra_perms = ListVariableResponse200ItemExtraPerms.from_dict(d.pop("extra_perms")) - - - - - value = d.pop("value", UNSET) - - description = d.pop("description", UNSET) - - account = d.pop("account", UNSET) - - is_oauth = d.pop("is_oauth", UNSET) - - is_expired = d.pop("is_expired", UNSET) - - refresh_error = d.pop("refresh_error", UNSET) - - is_linked = d.pop("is_linked", UNSET) - - is_refreshed = d.pop("is_refreshed", UNSET) - - list_variable_response_200_item = cls( - workspace_id=workspace_id, - path=path, - is_secret=is_secret, - extra_perms=extra_perms, - value=value, - description=description, - account=account, - is_oauth=is_oauth, - is_expired=is_expired, - refresh_error=refresh_error, - is_linked=is_linked, - is_refreshed=is_refreshed, - ) - - list_variable_response_200_item.additional_properties = d - return list_variable_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_variable_response_200_item_extra_perms.py b/python-client/windmill-api/windmill_api/models/list_variable_response_200_item_extra_perms.py deleted file mode 100644 index f44e767730..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_variable_response_200_item_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListVariableResponse200ItemExtraPerms") - - -@_attrs_define -class ListVariableResponse200ItemExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - list_variable_response_200_item_extra_perms = cls( - ) - - - list_variable_response_200_item_extra_perms.additional_properties = d - return list_variable_response_200_item_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_worker_groups_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_worker_groups_response_200_item.py deleted file mode 100644 index f5b065937b..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_worker_groups_response_200_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListWorkerGroupsResponse200Item") - - -@_attrs_define -class ListWorkerGroupsResponse200Item: - """ - Attributes: - name (str): - config (Any): - """ - - name: str - config: Any - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - config = self.config - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "config": config, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - config = d.pop("config") - - list_worker_groups_response_200_item = cls( - name=name, - config=config, - ) - - list_worker_groups_response_200_item.additional_properties = d - return list_worker_groups_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_workers_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_workers_response_200_item.py deleted file mode 100644 index b4801d85fb..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_workers_response_200_item.py +++ /dev/null @@ -1,145 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListWorkersResponse200Item") - - -@_attrs_define -class ListWorkersResponse200Item: - """ - Attributes: - worker (str): - worker_instance (str): - started_at (datetime.datetime): - ip (str): - jobs_executed (int): - worker_group (str): - wm_version (str): - last_ping (Union[Unset, float]): - custom_tags (Union[Unset, List[str]]): - """ - - worker: str - worker_instance: str - started_at: datetime.datetime - ip: str - jobs_executed: int - worker_group: str - wm_version: str - last_ping: Union[Unset, float] = UNSET - custom_tags: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - worker = self.worker - worker_instance = self.worker_instance - started_at = self.started_at.isoformat() - - ip = self.ip - jobs_executed = self.jobs_executed - worker_group = self.worker_group - wm_version = self.wm_version - last_ping = self.last_ping - custom_tags: Union[Unset, List[str]] = UNSET - if not isinstance(self.custom_tags, Unset): - custom_tags = self.custom_tags - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "worker": worker, - "worker_instance": worker_instance, - "started_at": started_at, - "ip": ip, - "jobs_executed": jobs_executed, - "worker_group": worker_group, - "wm_version": wm_version, - }) - if last_ping is not UNSET: - field_dict["last_ping"] = last_ping - if custom_tags is not UNSET: - field_dict["custom_tags"] = custom_tags - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - worker = d.pop("worker") - - worker_instance = d.pop("worker_instance") - - started_at = isoparse(d.pop("started_at")) - - - - - ip = d.pop("ip") - - jobs_executed = d.pop("jobs_executed") - - worker_group = d.pop("worker_group") - - wm_version = d.pop("wm_version") - - last_ping = d.pop("last_ping", UNSET) - - custom_tags = cast(List[str], d.pop("custom_tags", UNSET)) - - - list_workers_response_200_item = cls( - worker=worker, - worker_instance=worker_instance, - started_at=started_at, - ip=ip, - jobs_executed=jobs_executed, - worker_group=worker_group, - wm_version=wm_version, - last_ping=last_ping, - custom_tags=custom_tags, - ) - - list_workers_response_200_item.additional_properties = d - return list_workers_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_workspace_invites_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_workspace_invites_response_200_item.py deleted file mode 100644 index 548d15f312..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_workspace_invites_response_200_item.py +++ /dev/null @@ -1,91 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListWorkspaceInvitesResponse200Item") - - -@_attrs_define -class ListWorkspaceInvitesResponse200Item: - """ - Attributes: - workspace_id (str): - email (str): - is_admin (bool): - operator (bool): - """ - - workspace_id: str - email: str - is_admin: bool - operator: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - workspace_id = self.workspace_id - email = self.email - is_admin = self.is_admin - operator = self.operator - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "email": email, - "is_admin": is_admin, - "operator": operator, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - email = d.pop("email") - - is_admin = d.pop("is_admin") - - operator = d.pop("operator") - - list_workspace_invites_response_200_item = cls( - workspace_id=workspace_id, - email=email, - is_admin=is_admin, - operator=operator, - ) - - list_workspace_invites_response_200_item.additional_properties = d - return list_workspace_invites_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_workspaces_as_super_admin_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_workspaces_as_super_admin_response_200_item.py deleted file mode 100644 index 590075dd3a..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_workspaces_as_super_admin_response_200_item.py +++ /dev/null @@ -1,94 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListWorkspacesAsSuperAdminResponse200Item") - - -@_attrs_define -class ListWorkspacesAsSuperAdminResponse200Item: - """ - Attributes: - id (str): - name (str): - owner (str): - domain (Union[Unset, str]): - """ - - id: str - name: str - owner: str - domain: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - owner = self.owner - domain = self.domain - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "owner": owner, - }) - if domain is not UNSET: - field_dict["domain"] = domain - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - owner = d.pop("owner") - - domain = d.pop("domain", UNSET) - - list_workspaces_as_super_admin_response_200_item = cls( - id=id, - name=name, - owner=owner, - domain=domain, - ) - - list_workspaces_as_super_admin_response_200_item.additional_properties = d - return list_workspaces_as_super_admin_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/list_workspaces_response_200_item.py b/python-client/windmill-api/windmill_api/models/list_workspaces_response_200_item.py deleted file mode 100644 index e2d805edd9..0000000000 --- a/python-client/windmill-api/windmill_api/models/list_workspaces_response_200_item.py +++ /dev/null @@ -1,94 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ListWorkspacesResponse200Item") - - -@_attrs_define -class ListWorkspacesResponse200Item: - """ - Attributes: - id (str): - name (str): - owner (str): - domain (Union[Unset, str]): - """ - - id: str - name: str - owner: str - domain: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - owner = self.owner - domain = self.domain - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "owner": owner, - }) - if domain is not UNSET: - field_dict["domain"] = domain - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - owner = d.pop("owner") - - domain = d.pop("domain", UNSET) - - list_workspaces_response_200_item = cls( - id=id, - name=name, - owner=owner, - domain=domain, - ) - - list_workspaces_response_200_item.additional_properties = d - return list_workspaces_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_app.py b/python-client/windmill-api/windmill_api/models/listable_app.py deleted file mode 100644 index 3c1cb7b6b5..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_app.py +++ /dev/null @@ -1,150 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset -from ..models.listable_app_execution_mode import ListableAppExecutionMode - -if TYPE_CHECKING: - from ..models.listable_app_extra_perms import ListableAppExtraPerms - - - - - -T = TypeVar("T", bound="ListableApp") - - -@_attrs_define -class ListableApp: - """ - Attributes: - id (int): - workspace_id (str): - path (str): - summary (str): - version (int): - extra_perms (ListableAppExtraPerms): - edited_at (datetime.datetime): - execution_mode (ListableAppExecutionMode): - starred (Union[Unset, bool]): - """ - - id: int - workspace_id: str - path: str - summary: str - version: int - extra_perms: 'ListableAppExtraPerms' - edited_at: datetime.datetime - execution_mode: ListableAppExecutionMode - starred: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.listable_app_extra_perms import ListableAppExtraPerms - id = self.id - workspace_id = self.workspace_id - path = self.path - summary = self.summary - version = self.version - extra_perms = self.extra_perms.to_dict() - - edited_at = self.edited_at.isoformat() - - execution_mode = self.execution_mode.value - - starred = self.starred - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "version": version, - "extra_perms": extra_perms, - "edited_at": edited_at, - "execution_mode": execution_mode, - }) - if starred is not UNSET: - field_dict["starred"] = starred - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.listable_app_extra_perms import ListableAppExtraPerms - d = src_dict.copy() - id = d.pop("id") - - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - version = d.pop("version") - - extra_perms = ListableAppExtraPerms.from_dict(d.pop("extra_perms")) - - - - - edited_at = isoparse(d.pop("edited_at")) - - - - - execution_mode = ListableAppExecutionMode(d.pop("execution_mode")) - - - - - starred = d.pop("starred", UNSET) - - listable_app = cls( - id=id, - workspace_id=workspace_id, - path=path, - summary=summary, - version=version, - extra_perms=extra_perms, - edited_at=edited_at, - execution_mode=execution_mode, - starred=starred, - ) - - listable_app.additional_properties = d - return listable_app - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_app_execution_mode.py b/python-client/windmill-api/windmill_api/models/listable_app_execution_mode.py deleted file mode 100644 index 14b80f5026..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_app_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class ListableAppExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/listable_app_extra_perms.py b/python-client/windmill-api/windmill_api/models/listable_app_extra_perms.py deleted file mode 100644 index 61ab63292b..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_app_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListableAppExtraPerms") - - -@_attrs_define -class ListableAppExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - listable_app_extra_perms = cls( - ) - - - listable_app_extra_perms.additional_properties = d - return listable_app_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_raw_app.py b/python-client/windmill-api/windmill_api/models/listable_raw_app.py deleted file mode 100644 index b2f232cfe0..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_raw_app.py +++ /dev/null @@ -1,131 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.listable_raw_app_extra_perms import ListableRawAppExtraPerms - - - - - -T = TypeVar("T", bound="ListableRawApp") - - -@_attrs_define -class ListableRawApp: - """ - Attributes: - workspace_id (str): - path (str): - summary (str): - extra_perms (ListableRawAppExtraPerms): - version (float): - edited_at (datetime.datetime): - starred (Union[Unset, bool]): - """ - - workspace_id: str - path: str - summary: str - extra_perms: 'ListableRawAppExtraPerms' - version: float - edited_at: datetime.datetime - starred: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.listable_raw_app_extra_perms import ListableRawAppExtraPerms - workspace_id = self.workspace_id - path = self.path - summary = self.summary - extra_perms = self.extra_perms.to_dict() - - version = self.version - edited_at = self.edited_at.isoformat() - - starred = self.starred - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "path": path, - "summary": summary, - "extra_perms": extra_perms, - "version": version, - "edited_at": edited_at, - }) - if starred is not UNSET: - field_dict["starred"] = starred - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.listable_raw_app_extra_perms import ListableRawAppExtraPerms - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - summary = d.pop("summary") - - extra_perms = ListableRawAppExtraPerms.from_dict(d.pop("extra_perms")) - - - - - version = d.pop("version") - - edited_at = isoparse(d.pop("edited_at")) - - - - - starred = d.pop("starred", UNSET) - - listable_raw_app = cls( - workspace_id=workspace_id, - path=path, - summary=summary, - extra_perms=extra_perms, - version=version, - edited_at=edited_at, - starred=starred, - ) - - listable_raw_app.additional_properties = d - return listable_raw_app - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_raw_app_extra_perms.py b/python-client/windmill-api/windmill_api/models/listable_raw_app_extra_perms.py deleted file mode 100644 index ce1aa195ed..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_raw_app_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListableRawAppExtraPerms") - - -@_attrs_define -class ListableRawAppExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - listable_raw_app_extra_perms = cls( - ) - - - listable_raw_app_extra_perms.additional_properties = d - return listable_raw_app_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_resource.py b/python-client/windmill-api/windmill_api/models/listable_resource.py deleted file mode 100644 index b4c642dc26..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_resource.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.listable_resource_extra_perms import ListableResourceExtraPerms - - - - - -T = TypeVar("T", bound="ListableResource") - - -@_attrs_define -class ListableResource: - """ - Attributes: - path (str): - resource_type (str): - is_oauth (bool): - is_linked (bool): - is_refreshed (bool): - workspace_id (Union[Unset, str]): - description (Union[Unset, str]): - value (Union[Unset, Any]): - extra_perms (Union[Unset, ListableResourceExtraPerms]): - is_expired (Union[Unset, bool]): - refresh_error (Union[Unset, str]): - account (Union[Unset, float]): - """ - - path: str - resource_type: str - is_oauth: bool - is_linked: bool - is_refreshed: bool - workspace_id: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - value: Union[Unset, Any] = UNSET - extra_perms: Union[Unset, 'ListableResourceExtraPerms'] = UNSET - is_expired: Union[Unset, bool] = UNSET - refresh_error: Union[Unset, str] = UNSET - account: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.listable_resource_extra_perms import ListableResourceExtraPerms - path = self.path - resource_type = self.resource_type - is_oauth = self.is_oauth - is_linked = self.is_linked - is_refreshed = self.is_refreshed - workspace_id = self.workspace_id - description = self.description - value = self.value - extra_perms: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_perms, Unset): - extra_perms = self.extra_perms.to_dict() - - is_expired = self.is_expired - refresh_error = self.refresh_error - account = self.account - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "resource_type": resource_type, - "is_oauth": is_oauth, - "is_linked": is_linked, - "is_refreshed": is_refreshed, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if description is not UNSET: - field_dict["description"] = description - if value is not UNSET: - field_dict["value"] = value - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - if is_expired is not UNSET: - field_dict["is_expired"] = is_expired - if refresh_error is not UNSET: - field_dict["refresh_error"] = refresh_error - if account is not UNSET: - field_dict["account"] = account - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.listable_resource_extra_perms import ListableResourceExtraPerms - d = src_dict.copy() - path = d.pop("path") - - resource_type = d.pop("resource_type") - - is_oauth = d.pop("is_oauth") - - is_linked = d.pop("is_linked") - - is_refreshed = d.pop("is_refreshed") - - workspace_id = d.pop("workspace_id", UNSET) - - description = d.pop("description", UNSET) - - value = d.pop("value", UNSET) - - _extra_perms = d.pop("extra_perms", UNSET) - extra_perms: Union[Unset, ListableResourceExtraPerms] - if isinstance(_extra_perms, Unset): - extra_perms = UNSET - else: - extra_perms = ListableResourceExtraPerms.from_dict(_extra_perms) - - - - - is_expired = d.pop("is_expired", UNSET) - - refresh_error = d.pop("refresh_error", UNSET) - - account = d.pop("account", UNSET) - - listable_resource = cls( - path=path, - resource_type=resource_type, - is_oauth=is_oauth, - is_linked=is_linked, - is_refreshed=is_refreshed, - workspace_id=workspace_id, - description=description, - value=value, - extra_perms=extra_perms, - is_expired=is_expired, - refresh_error=refresh_error, - account=account, - ) - - listable_resource.additional_properties = d - return listable_resource - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_resource_extra_perms.py b/python-client/windmill-api/windmill_api/models/listable_resource_extra_perms.py deleted file mode 100644 index 5b52b3a5a5..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_resource_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListableResourceExtraPerms") - - -@_attrs_define -class ListableResourceExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - listable_resource_extra_perms = cls( - ) - - - listable_resource_extra_perms.additional_properties = d - return listable_resource_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_variable.py b/python-client/windmill-api/windmill_api/models/listable_variable.py deleted file mode 100644 index 4e8bc221a1..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_variable.py +++ /dev/null @@ -1,167 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.listable_variable_extra_perms import ListableVariableExtraPerms - - - - - -T = TypeVar("T", bound="ListableVariable") - - -@_attrs_define -class ListableVariable: - """ - Attributes: - workspace_id (str): - path (str): - is_secret (bool): - extra_perms (ListableVariableExtraPerms): - value (Union[Unset, str]): - description (Union[Unset, str]): - account (Union[Unset, int]): - is_oauth (Union[Unset, bool]): - is_expired (Union[Unset, bool]): - refresh_error (Union[Unset, str]): - is_linked (Union[Unset, bool]): - is_refreshed (Union[Unset, bool]): - """ - - workspace_id: str - path: str - is_secret: bool - extra_perms: 'ListableVariableExtraPerms' - value: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - account: Union[Unset, int] = UNSET - is_oauth: Union[Unset, bool] = UNSET - is_expired: Union[Unset, bool] = UNSET - refresh_error: Union[Unset, str] = UNSET - is_linked: Union[Unset, bool] = UNSET - is_refreshed: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.listable_variable_extra_perms import ListableVariableExtraPerms - workspace_id = self.workspace_id - path = self.path - is_secret = self.is_secret - extra_perms = self.extra_perms.to_dict() - - value = self.value - description = self.description - account = self.account - is_oauth = self.is_oauth - is_expired = self.is_expired - refresh_error = self.refresh_error - is_linked = self.is_linked - is_refreshed = self.is_refreshed - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "path": path, - "is_secret": is_secret, - "extra_perms": extra_perms, - }) - if value is not UNSET: - field_dict["value"] = value - if description is not UNSET: - field_dict["description"] = description - if account is not UNSET: - field_dict["account"] = account - if is_oauth is not UNSET: - field_dict["is_oauth"] = is_oauth - if is_expired is not UNSET: - field_dict["is_expired"] = is_expired - if refresh_error is not UNSET: - field_dict["refresh_error"] = refresh_error - if is_linked is not UNSET: - field_dict["is_linked"] = is_linked - if is_refreshed is not UNSET: - field_dict["is_refreshed"] = is_refreshed - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.listable_variable_extra_perms import ListableVariableExtraPerms - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - path = d.pop("path") - - is_secret = d.pop("is_secret") - - extra_perms = ListableVariableExtraPerms.from_dict(d.pop("extra_perms")) - - - - - value = d.pop("value", UNSET) - - description = d.pop("description", UNSET) - - account = d.pop("account", UNSET) - - is_oauth = d.pop("is_oauth", UNSET) - - is_expired = d.pop("is_expired", UNSET) - - refresh_error = d.pop("refresh_error", UNSET) - - is_linked = d.pop("is_linked", UNSET) - - is_refreshed = d.pop("is_refreshed", UNSET) - - listable_variable = cls( - workspace_id=workspace_id, - path=path, - is_secret=is_secret, - extra_perms=extra_perms, - value=value, - description=description, - account=account, - is_oauth=is_oauth, - is_expired=is_expired, - refresh_error=refresh_error, - is_linked=is_linked, - is_refreshed=is_refreshed, - ) - - listable_variable.additional_properties = d - return listable_variable - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/listable_variable_extra_perms.py b/python-client/windmill-api/windmill_api/models/listable_variable_extra_perms.py deleted file mode 100644 index cb0047f7b3..0000000000 --- a/python-client/windmill-api/windmill_api/models/listable_variable_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ListableVariableExtraPerms") - - -@_attrs_define -class ListableVariableExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - listable_variable_extra_perms = cls( - ) - - - listable_variable_extra_perms.additional_properties = d - return listable_variable_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/load_file_metadata_response_200.py b/python-client/windmill-api/windmill_api/models/load_file_metadata_response_200.py deleted file mode 100644 index 829a671250..0000000000 --- a/python-client/windmill-api/windmill_api/models/load_file_metadata_response_200.py +++ /dev/null @@ -1,130 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="LoadFileMetadataResponse200") - - -@_attrs_define -class LoadFileMetadataResponse200: - """ - Attributes: - mime_type (Union[Unset, str]): - size_in_bytes (Union[Unset, int]): - last_modified (Union[Unset, datetime.datetime]): - expires (Union[Unset, datetime.datetime]): - version_id (Union[Unset, str]): - """ - - mime_type: Union[Unset, str] = UNSET - size_in_bytes: Union[Unset, int] = UNSET - last_modified: Union[Unset, datetime.datetime] = UNSET - expires: Union[Unset, datetime.datetime] = UNSET - version_id: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - mime_type = self.mime_type - size_in_bytes = self.size_in_bytes - last_modified: Union[Unset, str] = UNSET - if not isinstance(self.last_modified, Unset): - last_modified = self.last_modified.isoformat() - - expires: Union[Unset, str] = UNSET - if not isinstance(self.expires, Unset): - expires = self.expires.isoformat() - - version_id = self.version_id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if mime_type is not UNSET: - field_dict["mime_type"] = mime_type - if size_in_bytes is not UNSET: - field_dict["size_in_bytes"] = size_in_bytes - if last_modified is not UNSET: - field_dict["last_modified"] = last_modified - if expires is not UNSET: - field_dict["expires"] = expires - if version_id is not UNSET: - field_dict["version_id"] = version_id - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - mime_type = d.pop("mime_type", UNSET) - - size_in_bytes = d.pop("size_in_bytes", UNSET) - - _last_modified = d.pop("last_modified", UNSET) - last_modified: Union[Unset, datetime.datetime] - if isinstance(_last_modified, Unset): - last_modified = UNSET - else: - last_modified = isoparse(_last_modified) - - - - - _expires = d.pop("expires", UNSET) - expires: Union[Unset, datetime.datetime] - if isinstance(_expires, Unset): - expires = UNSET - else: - expires = isoparse(_expires) - - - - - version_id = d.pop("version_id", UNSET) - - load_file_metadata_response_200 = cls( - mime_type=mime_type, - size_in_bytes=size_in_bytes, - last_modified=last_modified, - expires=expires, - version_id=version_id, - ) - - load_file_metadata_response_200.additional_properties = d - return load_file_metadata_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/load_file_preview_response_200.py b/python-client/windmill-api/windmill_api/models/load_file_preview_response_200.py deleted file mode 100644 index 0b9e16283f..0000000000 --- a/python-client/windmill-api/windmill_api/models/load_file_preview_response_200.py +++ /dev/null @@ -1,101 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.load_file_preview_response_200_content_type import LoadFilePreviewResponse200ContentType - - - - - - -T = TypeVar("T", bound="LoadFilePreviewResponse200") - - -@_attrs_define -class LoadFilePreviewResponse200: - """ - Attributes: - content_type (LoadFilePreviewResponse200ContentType): - msg (Union[Unset, str]): - content (Union[Unset, str]): - download_url (Union[Unset, str]): - """ - - content_type: LoadFilePreviewResponse200ContentType - msg: Union[Unset, str] = UNSET - content: Union[Unset, str] = UNSET - download_url: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - content_type = self.content_type.value - - msg = self.msg - content = self.content - download_url = self.download_url - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "content_type": content_type, - }) - if msg is not UNSET: - field_dict["msg"] = msg - if content is not UNSET: - field_dict["content"] = content - if download_url is not UNSET: - field_dict["download_url"] = download_url - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - content_type = LoadFilePreviewResponse200ContentType(d.pop("content_type")) - - - - - msg = d.pop("msg", UNSET) - - content = d.pop("content", UNSET) - - download_url = d.pop("download_url", UNSET) - - load_file_preview_response_200 = cls( - content_type=content_type, - msg=msg, - content=content, - download_url=download_url, - ) - - load_file_preview_response_200.additional_properties = d - return load_file_preview_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/load_file_preview_response_200_content_type.py b/python-client/windmill-api/windmill_api/models/load_file_preview_response_200_content_type.py deleted file mode 100644 index 2cb43e5563..0000000000 --- a/python-client/windmill-api/windmill_api/models/load_file_preview_response_200_content_type.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class LoadFilePreviewResponse200ContentType(str, Enum): - CSV = "Csv" - PARQUET = "Parquet" - RAWTEXT = "RawText" - UNKNOWN = "Unknown" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/login.py b/python-client/windmill-api/windmill_api/models/login.py deleted file mode 100644 index 4eaba40d13..0000000000 --- a/python-client/windmill-api/windmill_api/models/login.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="Login") - - -@_attrs_define -class Login: - """ - Attributes: - email (str): - password (str): - """ - - email: str - password: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - password = self.password - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "password": password, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - password = d.pop("password") - - login = cls( - email=email, - password=password, - ) - - login.additional_properties = d - return login - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/login_json_body.py b/python-client/windmill-api/windmill_api/models/login_json_body.py deleted file mode 100644 index 119bf2b3e2..0000000000 --- a/python-client/windmill-api/windmill_api/models/login_json_body.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="LoginJsonBody") - - -@_attrs_define -class LoginJsonBody: - """ - Attributes: - email (str): - password (str): - """ - - email: str - password: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - password = self.password - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "password": password, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - password = d.pop("password") - - login_json_body = cls( - email=email, - password=password, - ) - - login_json_body.additional_properties = d - return login_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/login_with_oauth_json_body.py b/python-client/windmill-api/windmill_api/models/login_with_oauth_json_body.py deleted file mode 100644 index f6f8ccef2d..0000000000 --- a/python-client/windmill-api/windmill_api/models/login_with_oauth_json_body.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="LoginWithOauthJsonBody") - - -@_attrs_define -class LoginWithOauthJsonBody: - """ - Attributes: - code (Union[Unset, str]): - state (Union[Unset, str]): - """ - - code: Union[Unset, str] = UNSET - state: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - code = self.code - state = self.state - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if code is not UNSET: - field_dict["code"] = code - if state is not UNSET: - field_dict["state"] = state - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - code = d.pop("code", UNSET) - - state = d.pop("state", UNSET) - - login_with_oauth_json_body = cls( - code=code, - state=state, - ) - - login_with_oauth_json_body.additional_properties = d - return login_with_oauth_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature.py b/python-client/windmill-api/windmill_api/models/main_arg_signature.py deleted file mode 100644 index 36e8c885ff..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature.py +++ /dev/null @@ -1,129 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.main_arg_signature_type import MainArgSignatureType -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.main_arg_signature_args_item import MainArgSignatureArgsItem - - - - - -T = TypeVar("T", bound="MainArgSignature") - - -@_attrs_define -class MainArgSignature: - """ - Attributes: - type (MainArgSignatureType): - error (str): - star_args (bool): - args (List['MainArgSignatureArgsItem']): - star_kwargs (Union[Unset, bool]): - """ - - type: MainArgSignatureType - error: str - star_args: bool - args: List['MainArgSignatureArgsItem'] - star_kwargs: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.main_arg_signature_args_item import MainArgSignatureArgsItem - type = self.type.value - - error = self.error - star_args = self.star_args - args = [] - for args_item_data in self.args: - args_item = args_item_data.to_dict() - - args.append(args_item) - - - - - star_kwargs = self.star_kwargs - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - "error": error, - "star_args": star_args, - "args": args, - }) - if star_kwargs is not UNSET: - field_dict["star_kwargs"] = star_kwargs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.main_arg_signature_args_item import MainArgSignatureArgsItem - d = src_dict.copy() - type = MainArgSignatureType(d.pop("type")) - - - - - error = d.pop("error") - - star_args = d.pop("star_args") - - args = [] - _args = d.pop("args") - for args_item_data in (_args): - args_item = MainArgSignatureArgsItem.from_dict(args_item_data) - - - - args.append(args_item) - - - star_kwargs = d.pop("star_kwargs", UNSET) - - main_arg_signature = cls( - type=type, - error=error, - star_args=star_args, - args=args, - star_kwargs=star_kwargs, - ) - - main_arg_signature.additional_properties = d - return main_arg_signature - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item.py deleted file mode 100644 index 3e93f043a2..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item.py +++ /dev/null @@ -1,181 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..models.main_arg_signature_args_item_typ_type_0 import MainArgSignatureArgsItemTypType0 -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.main_arg_signature_args_item_typ_type_3 import MainArgSignatureArgsItemTypType3 - from ..models.main_arg_signature_args_item_typ_type_1 import MainArgSignatureArgsItemTypType1 - from ..models.main_arg_signature_args_item_typ_type_4 import MainArgSignatureArgsItemTypType4 - from ..models.main_arg_signature_args_item_typ_type_2 import MainArgSignatureArgsItemTypType2 - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItem") - - -@_attrs_define -class MainArgSignatureArgsItem: - """ - Attributes: - name (str): - typ (Union['MainArgSignatureArgsItemTypType1', 'MainArgSignatureArgsItemTypType2', - 'MainArgSignatureArgsItemTypType3', 'MainArgSignatureArgsItemTypType4', MainArgSignatureArgsItemTypType0]): - has_default (Union[Unset, bool]): - default (Union[Unset, Any]): - """ - - name: str - typ: Union['MainArgSignatureArgsItemTypType1', 'MainArgSignatureArgsItemTypType2', 'MainArgSignatureArgsItemTypType3', 'MainArgSignatureArgsItemTypType4', MainArgSignatureArgsItemTypType0] - has_default: Union[Unset, bool] = UNSET - default: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.main_arg_signature_args_item_typ_type_3 import MainArgSignatureArgsItemTypType3 - from ..models.main_arg_signature_args_item_typ_type_1 import MainArgSignatureArgsItemTypType1 - from ..models.main_arg_signature_args_item_typ_type_4 import MainArgSignatureArgsItemTypType4 - from ..models.main_arg_signature_args_item_typ_type_2 import MainArgSignatureArgsItemTypType2 - name = self.name - typ: Union[Dict[str, Any], str] - - if isinstance(self.typ, MainArgSignatureArgsItemTypType0): - typ = self.typ.value - - elif isinstance(self.typ, MainArgSignatureArgsItemTypType1): - typ = self.typ.to_dict() - - elif isinstance(self.typ, MainArgSignatureArgsItemTypType2): - typ = self.typ.to_dict() - - elif isinstance(self.typ, MainArgSignatureArgsItemTypType3): - typ = self.typ.to_dict() - - else: - typ = self.typ.to_dict() - - - - has_default = self.has_default - default = self.default - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "typ": typ, - }) - if has_default is not UNSET: - field_dict["has_default"] = has_default - if default is not UNSET: - field_dict["default"] = default - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.main_arg_signature_args_item_typ_type_3 import MainArgSignatureArgsItemTypType3 - from ..models.main_arg_signature_args_item_typ_type_1 import MainArgSignatureArgsItemTypType1 - from ..models.main_arg_signature_args_item_typ_type_4 import MainArgSignatureArgsItemTypType4 - from ..models.main_arg_signature_args_item_typ_type_2 import MainArgSignatureArgsItemTypType2 - d = src_dict.copy() - name = d.pop("name") - - def _parse_typ(data: object) -> Union['MainArgSignatureArgsItemTypType1', 'MainArgSignatureArgsItemTypType2', 'MainArgSignatureArgsItemTypType3', 'MainArgSignatureArgsItemTypType4', MainArgSignatureArgsItemTypType0]: - try: - if not isinstance(data, str): - raise TypeError() - typ_type_0 = MainArgSignatureArgsItemTypType0(data) - - - - return typ_type_0 - except: # noqa: E722 - pass - try: - if not isinstance(data, dict): - raise TypeError() - typ_type_1 = MainArgSignatureArgsItemTypType1.from_dict(data) - - - - return typ_type_1 - except: # noqa: E722 - pass - try: - if not isinstance(data, dict): - raise TypeError() - typ_type_2 = MainArgSignatureArgsItemTypType2.from_dict(data) - - - - return typ_type_2 - except: # noqa: E722 - pass - try: - if not isinstance(data, dict): - raise TypeError() - typ_type_3 = MainArgSignatureArgsItemTypType3.from_dict(data) - - - - return typ_type_3 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - typ_type_4 = MainArgSignatureArgsItemTypType4.from_dict(data) - - - - return typ_type_4 - - typ = _parse_typ(d.pop("typ")) - - - has_default = d.pop("has_default", UNSET) - - default = d.pop("default", UNSET) - - main_arg_signature_args_item = cls( - name=name, - typ=typ, - has_default=has_default, - default=default, - ) - - main_arg_signature_args_item.additional_properties = d - return main_arg_signature_args_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_0.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_0.py deleted file mode 100644 index c63d752b7d..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_0.py +++ /dev/null @@ -1,15 +0,0 @@ -from enum import Enum - -class MainArgSignatureArgsItemTypType0(str, Enum): - BOOL = "bool" - BYTES = "bytes" - DATETIME = "datetime" - DICT = "dict" - EMAIL = "email" - FLOAT = "float" - INT = "int" - SQL = "sql" - UNKNOWN = "unknown" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_1.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_1.py deleted file mode 100644 index b3f861e8c0..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_1.py +++ /dev/null @@ -1,71 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Optional - - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItemTypType1") - - -@_attrs_define -class MainArgSignatureArgsItemTypType1: - """ - Attributes: - resource (Optional[str]): - """ - - resource: Optional[str] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resource = self.resource - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resource": resource, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resource = d.pop("resource") - - main_arg_signature_args_item_typ_type_1 = cls( - resource=resource, - ) - - main_arg_signature_args_item_typ_type_1.additional_properties = d - return main_arg_signature_args_item_typ_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_2.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_2.py deleted file mode 100644 index cc7faa994f..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_2.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Optional -from typing import cast, List - - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItemTypType2") - - -@_attrs_define -class MainArgSignatureArgsItemTypType2: - """ - Attributes: - str_ (Optional[List[str]]): - """ - - str_: Optional[List[str]] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - if self.str_ is None: - str_ = None - else: - str_ = self.str_ - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "str": str_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - str_ = cast(List[str], d.pop("str")) - - - main_arg_signature_args_item_typ_type_2 = cls( - str_=str_, - ) - - main_arg_signature_args_item_typ_type_2.additional_properties = d - return main_arg_signature_args_item_typ_type_2 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3.py deleted file mode 100644 index ea8cd902e5..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3.py +++ /dev/null @@ -1,93 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, List - -if TYPE_CHECKING: - from ..models.main_arg_signature_args_item_typ_type_3_object_item import MainArgSignatureArgsItemTypType3ObjectItem - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3") - - -@_attrs_define -class MainArgSignatureArgsItemTypType3: - """ - Attributes: - object_ (List['MainArgSignatureArgsItemTypType3ObjectItem']): - """ - - object_: List['MainArgSignatureArgsItemTypType3ObjectItem'] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.main_arg_signature_args_item_typ_type_3_object_item import MainArgSignatureArgsItemTypType3ObjectItem - object_ = [] - for object_item_data in self.object_: - object_item = object_item_data.to_dict() - - object_.append(object_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "object": object_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.main_arg_signature_args_item_typ_type_3_object_item import MainArgSignatureArgsItemTypType3ObjectItem - d = src_dict.copy() - object_ = [] - _object_ = d.pop("object") - for object_item_data in (_object_): - object_item = MainArgSignatureArgsItemTypType3ObjectItem.from_dict(object_item_data) - - - - object_.append(object_item) - - - main_arg_signature_args_item_typ_type_3 = cls( - object_=object_, - ) - - main_arg_signature_args_item_typ_type_3.additional_properties = d - return main_arg_signature_args_item_typ_type_3 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item.py deleted file mode 100644 index d932fa1942..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item.py +++ /dev/null @@ -1,115 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from ..models.main_arg_signature_args_item_typ_type_3_object_item_typ_type_0 import MainArgSignatureArgsItemTypType3ObjectItemTypType0 -from typing import cast, Union - -if TYPE_CHECKING: - from ..models.main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 import MainArgSignatureArgsItemTypType3ObjectItemTypType1 - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3ObjectItem") - - -@_attrs_define -class MainArgSignatureArgsItemTypType3ObjectItem: - """ - Attributes: - key (str): - typ (Union['MainArgSignatureArgsItemTypType3ObjectItemTypType1', - MainArgSignatureArgsItemTypType3ObjectItemTypType0]): - """ - - key: str - typ: Union['MainArgSignatureArgsItemTypType3ObjectItemTypType1', MainArgSignatureArgsItemTypType3ObjectItemTypType0] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 import MainArgSignatureArgsItemTypType3ObjectItemTypType1 - key = self.key - typ: Union[Dict[str, Any], str] - - if isinstance(self.typ, MainArgSignatureArgsItemTypType3ObjectItemTypType0): - typ = self.typ.value - - else: - typ = self.typ.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "key": key, - "typ": typ, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 import MainArgSignatureArgsItemTypType3ObjectItemTypType1 - d = src_dict.copy() - key = d.pop("key") - - def _parse_typ(data: object) -> Union['MainArgSignatureArgsItemTypType3ObjectItemTypType1', MainArgSignatureArgsItemTypType3ObjectItemTypType0]: - try: - if not isinstance(data, str): - raise TypeError() - typ_type_0 = MainArgSignatureArgsItemTypType3ObjectItemTypType0(data) - - - - return typ_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - typ_type_1 = MainArgSignatureArgsItemTypType3ObjectItemTypType1.from_dict(data) - - - - return typ_type_1 - - typ = _parse_typ(d.pop("typ")) - - - main_arg_signature_args_item_typ_type_3_object_item = cls( - key=key, - typ=typ, - ) - - main_arg_signature_args_item_typ_type_3_object_item.additional_properties = d - return main_arg_signature_args_item_typ_type_3_object_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_0.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_0.py deleted file mode 100644 index f958a1bd8f..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_0.py +++ /dev/null @@ -1,15 +0,0 @@ -from enum import Enum - -class MainArgSignatureArgsItemTypType3ObjectItemTypType0(str, Enum): - BOOL = "bool" - BYTES = "bytes" - DATETIME = "datetime" - DICT = "dict" - EMAIL = "email" - FLOAT = "float" - INT = "int" - SQL = "sql" - UNKNOWN = "unknown" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_1.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_1.py deleted file mode 100644 index 0be572eb17..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_3_object_item_typ_type_1.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItemTypType3ObjectItemTypType1") - - -@_attrs_define -class MainArgSignatureArgsItemTypType3ObjectItemTypType1: - """ - Attributes: - str_ (Any): - """ - - str_: Any - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - str_ = self.str_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "str": str_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - str_ = d.pop("str") - - main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 = cls( - str_=str_, - ) - - main_arg_signature_args_item_typ_type_3_object_item_typ_type_1.additional_properties = d - return main_arg_signature_args_item_typ_type_3_object_item_typ_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4.py deleted file mode 100644 index 63b3b262fb..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, Union -from typing import Optional -from ..models.main_arg_signature_args_item_typ_type_4_list_type_0 import MainArgSignatureArgsItemTypType4ListType0 - -if TYPE_CHECKING: - from ..models.main_arg_signature_args_item_typ_type_4_list_type_1 import MainArgSignatureArgsItemTypType4ListType1 - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItemTypType4") - - -@_attrs_define -class MainArgSignatureArgsItemTypType4: - """ - Attributes: - list_ (Union['MainArgSignatureArgsItemTypType4ListType1', MainArgSignatureArgsItemTypType4ListType0, None]): - """ - - list_: Union['MainArgSignatureArgsItemTypType4ListType1', MainArgSignatureArgsItemTypType4ListType0, None] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.main_arg_signature_args_item_typ_type_4_list_type_1 import MainArgSignatureArgsItemTypType4ListType1 - list_: Union[Dict[str, Any], None, str] - if self.list_ is None: - list_ = None - - elif isinstance(self.list_, MainArgSignatureArgsItemTypType4ListType0): - list_ = self.list_.value - - else: - list_ = self.list_.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "list": list_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.main_arg_signature_args_item_typ_type_4_list_type_1 import MainArgSignatureArgsItemTypType4ListType1 - d = src_dict.copy() - def _parse_list_(data: object) -> Union['MainArgSignatureArgsItemTypType4ListType1', MainArgSignatureArgsItemTypType4ListType0, None]: - if data is None: - return data - try: - if not isinstance(data, str): - raise TypeError() - list_type_0 = MainArgSignatureArgsItemTypType4ListType0(data) - - - - return list_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - list_type_1 = MainArgSignatureArgsItemTypType4ListType1.from_dict(data) - - - - return list_type_1 - - list_ = _parse_list_(d.pop("list")) - - - main_arg_signature_args_item_typ_type_4 = cls( - list_=list_, - ) - - main_arg_signature_args_item_typ_type_4.additional_properties = d - return main_arg_signature_args_item_typ_type_4 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_0.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_0.py deleted file mode 100644 index c5c7d4662a..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_0.py +++ /dev/null @@ -1,15 +0,0 @@ -from enum import Enum - -class MainArgSignatureArgsItemTypType4ListType0(str, Enum): - BOOL = "bool" - BYTES = "bytes" - DATETIME = "datetime" - DICT = "dict" - EMAIL = "email" - FLOAT = "float" - INT = "int" - SQL = "sql" - UNKNOWN = "unknown" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_1.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_1.py deleted file mode 100644 index e4b88fe759..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_args_item_typ_type_4_list_type_1.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="MainArgSignatureArgsItemTypType4ListType1") - - -@_attrs_define -class MainArgSignatureArgsItemTypType4ListType1: - """ - Attributes: - str_ (Any): - """ - - str_: Any - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - str_ = self.str_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "str": str_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - str_ = d.pop("str") - - main_arg_signature_args_item_typ_type_4_list_type_1 = cls( - str_=str_, - ) - - main_arg_signature_args_item_typ_type_4_list_type_1.additional_properties = d - return main_arg_signature_args_item_typ_type_4_list_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/main_arg_signature_type.py b/python-client/windmill-api/windmill_api/models/main_arg_signature_type.py deleted file mode 100644 index 4374eab9a8..0000000000 --- a/python-client/windmill-api/windmill_api/models/main_arg_signature_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class MainArgSignatureType(str, Enum): - INVALID = "Invalid" - VALID = "Valid" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/metric_data_point.py b/python-client/windmill-api/windmill_api/models/metric_data_point.py deleted file mode 100644 index ccb0f77db7..0000000000 --- a/python-client/windmill-api/windmill_api/models/metric_data_point.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -import datetime -from dateutil.parser import isoparse - - - - - - -T = TypeVar("T", bound="MetricDataPoint") - - -@_attrs_define -class MetricDataPoint: - """ - Attributes: - timestamp (datetime.datetime): - value (float): - """ - - timestamp: datetime.datetime - value: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - timestamp = self.timestamp.isoformat() - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "timestamp": timestamp, - "value": value, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - timestamp = isoparse(d.pop("timestamp")) - - - - - value = d.pop("value") - - metric_data_point = cls( - timestamp=timestamp, - value=value, - ) - - metric_data_point.additional_properties = d - return metric_data_point - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/metric_metadata.py b/python-client/windmill-api/windmill_api/models/metric_metadata.py deleted file mode 100644 index f17034feac..0000000000 --- a/python-client/windmill-api/windmill_api/models/metric_metadata.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="MetricMetadata") - - -@_attrs_define -class MetricMetadata: - """ - Attributes: - id (str): - name (Union[Unset, str]): - """ - - id: str - name: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - }) - if name is not UNSET: - field_dict["name"] = name - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name", UNSET) - - metric_metadata = cls( - id=id, - name=name, - ) - - metric_metadata.additional_properties = d - return metric_metadata - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/multipart_file_upload_json_body.py b/python-client/windmill-api/windmill_api/models/multipart_file_upload_json_body.py deleted file mode 100644 index 6b8ee75616..0000000000 --- a/python-client/windmill-api/windmill_api/models/multipart_file_upload_json_body.py +++ /dev/null @@ -1,147 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.multipart_file_upload_json_body_parts_item import MultipartFileUploadJsonBodyPartsItem - - - - - -T = TypeVar("T", bound="MultipartFileUploadJsonBody") - - -@_attrs_define -class MultipartFileUploadJsonBody: - """ - Attributes: - file_key (str): - parts (List['MultipartFileUploadJsonBodyPartsItem']): - is_final (bool): - cancel_upload (bool): - part_content (Union[Unset, List[int]]): - upload_id (Union[Unset, str]): - s3_resource_path (Union[Unset, str]): - """ - - file_key: str - parts: List['MultipartFileUploadJsonBodyPartsItem'] - is_final: bool - cancel_upload: bool - part_content: Union[Unset, List[int]] = UNSET - upload_id: Union[Unset, str] = UNSET - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.multipart_file_upload_json_body_parts_item import MultipartFileUploadJsonBodyPartsItem - file_key = self.file_key - parts = [] - for parts_item_data in self.parts: - parts_item = parts_item_data.to_dict() - - parts.append(parts_item) - - - - - is_final = self.is_final - cancel_upload = self.cancel_upload - part_content: Union[Unset, List[int]] = UNSET - if not isinstance(self.part_content, Unset): - part_content = self.part_content - - - - - upload_id = self.upload_id - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "file_key": file_key, - "parts": parts, - "is_final": is_final, - "cancel_upload": cancel_upload, - }) - if part_content is not UNSET: - field_dict["part_content"] = part_content - if upload_id is not UNSET: - field_dict["upload_id"] = upload_id - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.multipart_file_upload_json_body_parts_item import MultipartFileUploadJsonBodyPartsItem - d = src_dict.copy() - file_key = d.pop("file_key") - - parts = [] - _parts = d.pop("parts") - for parts_item_data in (_parts): - parts_item = MultipartFileUploadJsonBodyPartsItem.from_dict(parts_item_data) - - - - parts.append(parts_item) - - - is_final = d.pop("is_final") - - cancel_upload = d.pop("cancel_upload") - - part_content = cast(List[int], d.pop("part_content", UNSET)) - - - upload_id = d.pop("upload_id", UNSET) - - s3_resource_path = d.pop("s3_resource_path", UNSET) - - multipart_file_upload_json_body = cls( - file_key=file_key, - parts=parts, - is_final=is_final, - cancel_upload=cancel_upload, - part_content=part_content, - upload_id=upload_id, - s3_resource_path=s3_resource_path, - ) - - multipart_file_upload_json_body.additional_properties = d - return multipart_file_upload_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/multipart_file_upload_json_body_parts_item.py b/python-client/windmill-api/windmill_api/models/multipart_file_upload_json_body_parts_item.py deleted file mode 100644 index 1a693f147d..0000000000 --- a/python-client/windmill-api/windmill_api/models/multipart_file_upload_json_body_parts_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="MultipartFileUploadJsonBodyPartsItem") - - -@_attrs_define -class MultipartFileUploadJsonBodyPartsItem: - """ - Attributes: - part_number (int): - tag (str): - """ - - part_number: int - tag: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - part_number = self.part_number - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "part_number": part_number, - "tag": tag, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - part_number = d.pop("part_number") - - tag = d.pop("tag") - - multipart_file_upload_json_body_parts_item = cls( - part_number=part_number, - tag=tag, - ) - - multipart_file_upload_json_body_parts_item.additional_properties = d - return multipart_file_upload_json_body_parts_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/multipart_file_upload_response_200.py b/python-client/windmill-api/windmill_api/models/multipart_file_upload_response_200.py deleted file mode 100644 index 0ff4f79e64..0000000000 --- a/python-client/windmill-api/windmill_api/models/multipart_file_upload_response_200.py +++ /dev/null @@ -1,107 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, List - -if TYPE_CHECKING: - from ..models.multipart_file_upload_response_200_parts_item import MultipartFileUploadResponse200PartsItem - - - - - -T = TypeVar("T", bound="MultipartFileUploadResponse200") - - -@_attrs_define -class MultipartFileUploadResponse200: - """ - Attributes: - upload_id (str): - parts (List['MultipartFileUploadResponse200PartsItem']): - is_done (bool): - """ - - upload_id: str - parts: List['MultipartFileUploadResponse200PartsItem'] - is_done: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.multipart_file_upload_response_200_parts_item import MultipartFileUploadResponse200PartsItem - upload_id = self.upload_id - parts = [] - for parts_item_data in self.parts: - parts_item = parts_item_data.to_dict() - - parts.append(parts_item) - - - - - is_done = self.is_done - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "upload_id": upload_id, - "parts": parts, - "is_done": is_done, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.multipart_file_upload_response_200_parts_item import MultipartFileUploadResponse200PartsItem - d = src_dict.copy() - upload_id = d.pop("upload_id") - - parts = [] - _parts = d.pop("parts") - for parts_item_data in (_parts): - parts_item = MultipartFileUploadResponse200PartsItem.from_dict(parts_item_data) - - - - parts.append(parts_item) - - - is_done = d.pop("is_done") - - multipart_file_upload_response_200 = cls( - upload_id=upload_id, - parts=parts, - is_done=is_done, - ) - - multipart_file_upload_response_200.additional_properties = d - return multipart_file_upload_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/multipart_file_upload_response_200_parts_item.py b/python-client/windmill-api/windmill_api/models/multipart_file_upload_response_200_parts_item.py deleted file mode 100644 index cef5794eb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/multipart_file_upload_response_200_parts_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="MultipartFileUploadResponse200PartsItem") - - -@_attrs_define -class MultipartFileUploadResponse200PartsItem: - """ - Attributes: - part_number (int): - tag (str): - """ - - part_number: int - tag: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - part_number = self.part_number - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "part_number": part_number, - "tag": tag, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - part_number = d.pop("part_number") - - tag = d.pop("tag") - - multipart_file_upload_response_200_parts_item = cls( - part_number=part_number, - tag=tag, - ) - - multipart_file_upload_response_200_parts_item.additional_properties = d - return multipart_file_upload_response_200_parts_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_schedule.py b/python-client/windmill-api/windmill_api/models/new_schedule.py deleted file mode 100644 index 2af0af2be0..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_schedule.py +++ /dev/null @@ -1,263 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.new_schedule_on_recovery_extra_args import NewScheduleOnRecoveryExtraArgs - from ..models.new_schedule_args import NewScheduleArgs - from ..models.new_schedule_on_failure_extra_args import NewScheduleOnFailureExtraArgs - from ..models.new_schedule_retry import NewScheduleRetry - - - - - -T = TypeVar("T", bound="NewSchedule") - - -@_attrs_define -class NewSchedule: - """ - Attributes: - path (str): - schedule (str): - timezone (str): - script_path (str): - is_flow (bool): - args (NewScheduleArgs): - enabled (Union[Unset, bool]): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, NewScheduleOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, NewScheduleOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, NewScheduleRetry]): - no_flow_overlap (Union[Unset, bool]): - summary (Union[Unset, str]): - tag (Union[Unset, str]): - """ - - path: str - schedule: str - timezone: str - script_path: str - is_flow: bool - args: 'NewScheduleArgs' - enabled: Union[Unset, bool] = UNSET - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'NewScheduleOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'NewScheduleOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'NewScheduleRetry'] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.new_schedule_on_recovery_extra_args import NewScheduleOnRecoveryExtraArgs - from ..models.new_schedule_args import NewScheduleArgs - from ..models.new_schedule_on_failure_extra_args import NewScheduleOnFailureExtraArgs - from ..models.new_schedule_retry import NewScheduleRetry - path = self.path - schedule = self.schedule - timezone = self.timezone - script_path = self.script_path - is_flow = self.is_flow - args = self.args.to_dict() - - enabled = self.enabled - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - no_flow_overlap = self.no_flow_overlap - summary = self.summary - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "schedule": schedule, - "timezone": timezone, - "script_path": script_path, - "is_flow": is_flow, - "args": args, - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if summary is not UNSET: - field_dict["summary"] = summary - if tag is not UNSET: - field_dict["tag"] = tag - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.new_schedule_on_recovery_extra_args import NewScheduleOnRecoveryExtraArgs - from ..models.new_schedule_args import NewScheduleArgs - from ..models.new_schedule_on_failure_extra_args import NewScheduleOnFailureExtraArgs - from ..models.new_schedule_retry import NewScheduleRetry - d = src_dict.copy() - path = d.pop("path") - - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - script_path = d.pop("script_path") - - is_flow = d.pop("is_flow") - - args = NewScheduleArgs.from_dict(d.pop("args")) - - - - - enabled = d.pop("enabled", UNSET) - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, NewScheduleOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = NewScheduleOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, NewScheduleOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = NewScheduleOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, NewScheduleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = NewScheduleRetry.from_dict(_retry) - - - - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - summary = d.pop("summary", UNSET) - - tag = d.pop("tag", UNSET) - - new_schedule = cls( - path=path, - schedule=schedule, - timezone=timezone, - script_path=script_path, - is_flow=is_flow, - args=args, - enabled=enabled, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - no_flow_overlap=no_flow_overlap, - summary=summary, - tag=tag, - ) - - new_schedule.additional_properties = d - return new_schedule - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_schedule_args.py b/python-client/windmill-api/windmill_api/models/new_schedule_args.py deleted file mode 100644 index 844dd84ca3..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_schedule_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="NewScheduleArgs") - - -@_attrs_define -class NewScheduleArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - new_schedule_args = cls( - ) - - new_schedule_args.additional_properties = d - return new_schedule_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_schedule_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/new_schedule_on_failure_extra_args.py deleted file mode 100644 index 57a11cbcb4..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_schedule_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="NewScheduleOnFailureExtraArgs") - - -@_attrs_define -class NewScheduleOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - new_schedule_on_failure_extra_args = cls( - ) - - new_schedule_on_failure_extra_args.additional_properties = d - return new_schedule_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_schedule_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/new_schedule_on_recovery_extra_args.py deleted file mode 100644 index e5fc721250..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_schedule_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="NewScheduleOnRecoveryExtraArgs") - - -@_attrs_define -class NewScheduleOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - new_schedule_on_recovery_extra_args = cls( - ) - - new_schedule_on_recovery_extra_args.additional_properties = d - return new_schedule_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_schedule_retry.py b/python-client/windmill-api/windmill_api/models/new_schedule_retry.py deleted file mode 100644 index 2e91a6ee64..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_schedule_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.new_schedule_retry_constant import NewScheduleRetryConstant - from ..models.new_schedule_retry_exponential import NewScheduleRetryExponential - - - - - -T = TypeVar("T", bound="NewScheduleRetry") - - -@_attrs_define -class NewScheduleRetry: - """ - Attributes: - constant (Union[Unset, NewScheduleRetryConstant]): - exponential (Union[Unset, NewScheduleRetryExponential]): - """ - - constant: Union[Unset, 'NewScheduleRetryConstant'] = UNSET - exponential: Union[Unset, 'NewScheduleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.new_schedule_retry_constant import NewScheduleRetryConstant - from ..models.new_schedule_retry_exponential import NewScheduleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.new_schedule_retry_constant import NewScheduleRetryConstant - from ..models.new_schedule_retry_exponential import NewScheduleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, NewScheduleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = NewScheduleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, NewScheduleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = NewScheduleRetryExponential.from_dict(_exponential) - - - - - new_schedule_retry = cls( - constant=constant, - exponential=exponential, - ) - - new_schedule_retry.additional_properties = d - return new_schedule_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_schedule_retry_constant.py b/python-client/windmill-api/windmill_api/models/new_schedule_retry_constant.py deleted file mode 100644 index d9d812d9e4..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_schedule_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="NewScheduleRetryConstant") - - -@_attrs_define -class NewScheduleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - new_schedule_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - new_schedule_retry_constant.additional_properties = d - return new_schedule_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_schedule_retry_exponential.py b/python-client/windmill-api/windmill_api/models/new_schedule_retry_exponential.py deleted file mode 100644 index 86bf935b90..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_schedule_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="NewScheduleRetryExponential") - - -@_attrs_define -class NewScheduleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - new_schedule_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - new_schedule_retry_exponential.additional_properties = d - return new_schedule_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_script.py b/python-client/windmill-api/windmill_api/models/new_script.py deleted file mode 100644 index 314e352866..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script.py +++ /dev/null @@ -1,293 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.new_script_kind import NewScriptKind -from ..models.new_script_language import NewScriptLanguage -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.new_script_schema import NewScriptSchema - - - - - -T = TypeVar("T", bound="NewScript") - - -@_attrs_define -class NewScript: - """ - Attributes: - path (str): - summary (str): - description (str): - content (str): - language (NewScriptLanguage): - parent_hash (Union[Unset, str]): - schema (Union[Unset, NewScriptSchema]): - is_template (Union[Unset, bool]): - lock (Union[Unset, List[str]]): - kind (Union[Unset, NewScriptKind]): - tag (Union[Unset, str]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - """ - - path: str - summary: str - description: str - content: str - language: NewScriptLanguage - parent_hash: Union[Unset, str] = UNSET - schema: Union[Unset, 'NewScriptSchema'] = UNSET - is_template: Union[Unset, bool] = UNSET - lock: Union[Unset, List[str]] = UNSET - kind: Union[Unset, NewScriptKind] = UNSET - tag: Union[Unset, str] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.new_script_schema import NewScriptSchema - path = self.path - summary = self.summary - description = self.description - content = self.content - language = self.language.value - - parent_hash = self.parent_hash - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - is_template = self.is_template - lock: Union[Unset, List[str]] = UNSET - if not isinstance(self.lock, Unset): - lock = self.lock - - - - - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - tag = self.tag - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "summary": summary, - "description": description, - "content": content, - "language": language, - }) - if parent_hash is not UNSET: - field_dict["parent_hash"] = parent_hash - if schema is not UNSET: - field_dict["schema"] = schema - if is_template is not UNSET: - field_dict["is_template"] = is_template - if lock is not UNSET: - field_dict["lock"] = lock - if kind is not UNSET: - field_dict["kind"] = kind - if tag is not UNSET: - field_dict["tag"] = tag - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.new_script_schema import NewScriptSchema - d = src_dict.copy() - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - language = NewScriptLanguage(d.pop("language")) - - - - - parent_hash = d.pop("parent_hash", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, NewScriptSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = NewScriptSchema.from_dict(_schema) - - - - - is_template = d.pop("is_template", UNSET) - - lock = cast(List[str], d.pop("lock", UNSET)) - - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, NewScriptKind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = NewScriptKind(_kind) - - - - - tag = d.pop("tag", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - new_script = cls( - path=path, - summary=summary, - description=description, - content=content, - language=language, - parent_hash=parent_hash, - schema=schema, - is_template=is_template, - lock=lock, - kind=kind, - tag=tag, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - deployment_message=deployment_message, - ) - - new_script.additional_properties = d - return new_script - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_script_kind.py b/python-client/windmill-api/windmill_api/models/new_script_kind.py deleted file mode 100644 index 559ceae2ba..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class NewScriptKind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/new_script_language.py b/python-client/windmill-api/windmill_api/models/new_script_language.py deleted file mode 100644 index f5bdeaeba0..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class NewScriptLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/new_script_schema.py b/python-client/windmill-api/windmill_api/models/new_script_schema.py deleted file mode 100644 index 8f6234d3ad..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="NewScriptSchema") - - -@_attrs_define -class NewScriptSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - new_script_schema = cls( - ) - - new_script_schema.additional_properties = d - return new_script_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft.py deleted file mode 100644 index 5791fc5a10..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft.py +++ /dev/null @@ -1,322 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.new_script_with_draft_language import NewScriptWithDraftLanguage -from ..models.new_script_with_draft_kind import NewScriptWithDraftKind -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.new_script_with_draft_draft import NewScriptWithDraftDraft - from ..models.new_script_with_draft_schema import NewScriptWithDraftSchema - - - - - -T = TypeVar("T", bound="NewScriptWithDraft") - - -@_attrs_define -class NewScriptWithDraft: - """ - Attributes: - path (str): - summary (str): - description (str): - content (str): - language (NewScriptWithDraftLanguage): - hash_ (str): - parent_hash (Union[Unset, str]): - schema (Union[Unset, NewScriptWithDraftSchema]): - is_template (Union[Unset, bool]): - lock (Union[Unset, List[str]]): - kind (Union[Unset, NewScriptWithDraftKind]): - tag (Union[Unset, str]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - draft (Union[Unset, NewScriptWithDraftDraft]): - """ - - path: str - summary: str - description: str - content: str - language: NewScriptWithDraftLanguage - hash_: str - parent_hash: Union[Unset, str] = UNSET - schema: Union[Unset, 'NewScriptWithDraftSchema'] = UNSET - is_template: Union[Unset, bool] = UNSET - lock: Union[Unset, List[str]] = UNSET - kind: Union[Unset, NewScriptWithDraftKind] = UNSET - tag: Union[Unset, str] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - draft: Union[Unset, 'NewScriptWithDraftDraft'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.new_script_with_draft_draft import NewScriptWithDraftDraft - from ..models.new_script_with_draft_schema import NewScriptWithDraftSchema - path = self.path - summary = self.summary - description = self.description - content = self.content - language = self.language.value - - hash_ = self.hash_ - parent_hash = self.parent_hash - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - is_template = self.is_template - lock: Union[Unset, List[str]] = UNSET - if not isinstance(self.lock, Unset): - lock = self.lock - - - - - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - tag = self.tag - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - deployment_message = self.deployment_message - draft: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.draft, Unset): - draft = self.draft.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "summary": summary, - "description": description, - "content": content, - "language": language, - "hash": hash_, - }) - if parent_hash is not UNSET: - field_dict["parent_hash"] = parent_hash - if schema is not UNSET: - field_dict["schema"] = schema - if is_template is not UNSET: - field_dict["is_template"] = is_template - if lock is not UNSET: - field_dict["lock"] = lock - if kind is not UNSET: - field_dict["kind"] = kind - if tag is not UNSET: - field_dict["tag"] = tag - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - if draft is not UNSET: - field_dict["draft"] = draft - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.new_script_with_draft_draft import NewScriptWithDraftDraft - from ..models.new_script_with_draft_schema import NewScriptWithDraftSchema - d = src_dict.copy() - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - language = NewScriptWithDraftLanguage(d.pop("language")) - - - - - hash_ = d.pop("hash") - - parent_hash = d.pop("parent_hash", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, NewScriptWithDraftSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = NewScriptWithDraftSchema.from_dict(_schema) - - - - - is_template = d.pop("is_template", UNSET) - - lock = cast(List[str], d.pop("lock", UNSET)) - - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, NewScriptWithDraftKind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = NewScriptWithDraftKind(_kind) - - - - - tag = d.pop("tag", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - _draft = d.pop("draft", UNSET) - draft: Union[Unset, NewScriptWithDraftDraft] - if isinstance(_draft, Unset): - draft = UNSET - else: - draft = NewScriptWithDraftDraft.from_dict(_draft) - - - - - new_script_with_draft = cls( - path=path, - summary=summary, - description=description, - content=content, - language=language, - hash_=hash_, - parent_hash=parent_hash, - schema=schema, - is_template=is_template, - lock=lock, - kind=kind, - tag=tag, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - deployment_message=deployment_message, - draft=draft, - ) - - new_script_with_draft.additional_properties = d - return new_script_with_draft - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft.py deleted file mode 100644 index 984ff3575e..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft.py +++ /dev/null @@ -1,293 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.new_script_with_draft_draft_kind import NewScriptWithDraftDraftKind -from typing import Dict -from ..types import UNSET, Unset -from ..models.new_script_with_draft_draft_language import NewScriptWithDraftDraftLanguage - -if TYPE_CHECKING: - from ..models.new_script_with_draft_draft_schema import NewScriptWithDraftDraftSchema - - - - - -T = TypeVar("T", bound="NewScriptWithDraftDraft") - - -@_attrs_define -class NewScriptWithDraftDraft: - """ - Attributes: - path (str): - summary (str): - description (str): - content (str): - language (NewScriptWithDraftDraftLanguage): - parent_hash (Union[Unset, str]): - schema (Union[Unset, NewScriptWithDraftDraftSchema]): - is_template (Union[Unset, bool]): - lock (Union[Unset, List[str]]): - kind (Union[Unset, NewScriptWithDraftDraftKind]): - tag (Union[Unset, str]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - deployment_message (Union[Unset, str]): - """ - - path: str - summary: str - description: str - content: str - language: NewScriptWithDraftDraftLanguage - parent_hash: Union[Unset, str] = UNSET - schema: Union[Unset, 'NewScriptWithDraftDraftSchema'] = UNSET - is_template: Union[Unset, bool] = UNSET - lock: Union[Unset, List[str]] = UNSET - kind: Union[Unset, NewScriptWithDraftDraftKind] = UNSET - tag: Union[Unset, str] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.new_script_with_draft_draft_schema import NewScriptWithDraftDraftSchema - path = self.path - summary = self.summary - description = self.description - content = self.content - language = self.language.value - - parent_hash = self.parent_hash - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - is_template = self.is_template - lock: Union[Unset, List[str]] = UNSET - if not isinstance(self.lock, Unset): - lock = self.lock - - - - - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - tag = self.tag - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "summary": summary, - "description": description, - "content": content, - "language": language, - }) - if parent_hash is not UNSET: - field_dict["parent_hash"] = parent_hash - if schema is not UNSET: - field_dict["schema"] = schema - if is_template is not UNSET: - field_dict["is_template"] = is_template - if lock is not UNSET: - field_dict["lock"] = lock - if kind is not UNSET: - field_dict["kind"] = kind - if tag is not UNSET: - field_dict["tag"] = tag - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.new_script_with_draft_draft_schema import NewScriptWithDraftDraftSchema - d = src_dict.copy() - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - language = NewScriptWithDraftDraftLanguage(d.pop("language")) - - - - - parent_hash = d.pop("parent_hash", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, NewScriptWithDraftDraftSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = NewScriptWithDraftDraftSchema.from_dict(_schema) - - - - - is_template = d.pop("is_template", UNSET) - - lock = cast(List[str], d.pop("lock", UNSET)) - - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, NewScriptWithDraftDraftKind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = NewScriptWithDraftDraftKind(_kind) - - - - - tag = d.pop("tag", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - deployment_message = d.pop("deployment_message", UNSET) - - new_script_with_draft_draft = cls( - path=path, - summary=summary, - description=description, - content=content, - language=language, - parent_hash=parent_hash, - schema=schema, - is_template=is_template, - lock=lock, - kind=kind, - tag=tag, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - deployment_message=deployment_message, - ) - - new_script_with_draft_draft.additional_properties = d - return new_script_with_draft_draft - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_kind.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_kind.py deleted file mode 100644 index 5e4feefd80..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class NewScriptWithDraftDraftKind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_language.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_language.py deleted file mode 100644 index 5a6928c1b3..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class NewScriptWithDraftDraftLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_schema.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_schema.py deleted file mode 100644 index aba0ccebd9..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft_draft_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="NewScriptWithDraftDraftSchema") - - -@_attrs_define -class NewScriptWithDraftDraftSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - new_script_with_draft_draft_schema = cls( - ) - - new_script_with_draft_draft_schema.additional_properties = d - return new_script_with_draft_draft_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft_kind.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft_kind.py deleted file mode 100644 index 5709cb9662..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class NewScriptWithDraftKind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft_language.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft_language.py deleted file mode 100644 index 2ee34c26c2..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class NewScriptWithDraftLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/new_script_with_draft_schema.py b/python-client/windmill-api/windmill_api/models/new_script_with_draft_schema.py deleted file mode 100644 index b7a8ea0361..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_script_with_draft_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="NewScriptWithDraftSchema") - - -@_attrs_define -class NewScriptWithDraftSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - new_script_with_draft_schema = cls( - ) - - new_script_with_draft_schema.additional_properties = d - return new_script_with_draft_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_token.py b/python-client/windmill-api/windmill_api/models/new_token.py deleted file mode 100644 index 437a5afe9c..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_token.py +++ /dev/null @@ -1,111 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="NewToken") - - -@_attrs_define -class NewToken: - """ - Attributes: - label (Union[Unset, str]): - expiration (Union[Unset, datetime.datetime]): - scopes (Union[Unset, List[str]]): - """ - - label: Union[Unset, str] = UNSET - expiration: Union[Unset, datetime.datetime] = UNSET - scopes: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - label = self.label - expiration: Union[Unset, str] = UNSET - if not isinstance(self.expiration, Unset): - expiration = self.expiration.isoformat() - - scopes: Union[Unset, List[str]] = UNSET - if not isinstance(self.scopes, Unset): - scopes = self.scopes - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if label is not UNSET: - field_dict["label"] = label - if expiration is not UNSET: - field_dict["expiration"] = expiration - if scopes is not UNSET: - field_dict["scopes"] = scopes - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - label = d.pop("label", UNSET) - - _expiration = d.pop("expiration", UNSET) - expiration: Union[Unset, datetime.datetime] - if isinstance(_expiration, Unset): - expiration = UNSET - else: - expiration = isoparse(_expiration) - - - - - scopes = cast(List[str], d.pop("scopes", UNSET)) - - - new_token = cls( - label=label, - expiration=expiration, - scopes=scopes, - ) - - new_token.additional_properties = d - return new_token - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_token_impersonate.py b/python-client/windmill-api/windmill_api/models/new_token_impersonate.py deleted file mode 100644 index ddee76e17c..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_token_impersonate.py +++ /dev/null @@ -1,102 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="NewTokenImpersonate") - - -@_attrs_define -class NewTokenImpersonate: - """ - Attributes: - impersonate_email (str): - label (Union[Unset, str]): - expiration (Union[Unset, datetime.datetime]): - """ - - impersonate_email: str - label: Union[Unset, str] = UNSET - expiration: Union[Unset, datetime.datetime] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - impersonate_email = self.impersonate_email - label = self.label - expiration: Union[Unset, str] = UNSET - if not isinstance(self.expiration, Unset): - expiration = self.expiration.isoformat() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "impersonate_email": impersonate_email, - }) - if label is not UNSET: - field_dict["label"] = label - if expiration is not UNSET: - field_dict["expiration"] = expiration - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - impersonate_email = d.pop("impersonate_email") - - label = d.pop("label", UNSET) - - _expiration = d.pop("expiration", UNSET) - expiration: Union[Unset, datetime.datetime] - if isinstance(_expiration, Unset): - expiration = UNSET - else: - expiration = isoparse(_expiration) - - - - - new_token_impersonate = cls( - impersonate_email=impersonate_email, - label=label, - expiration=expiration, - ) - - new_token_impersonate.additional_properties = d - return new_token_impersonate - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/new_user.py b/python-client/windmill-api/windmill_api/models/new_user.py deleted file mode 100644 index d4ee47fc73..0000000000 --- a/python-client/windmill-api/windmill_api/models/new_user.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="NewUser") - - -@_attrs_define -class NewUser: - """ - Attributes: - email (str): - username (str): - is_admin (bool): - """ - - email: str - username: str - is_admin: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - username = self.username - is_admin = self.is_admin - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "username": username, - "is_admin": is_admin, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - username = d.pop("username") - - is_admin = d.pop("is_admin") - - new_user = cls( - email=email, - username=username, - is_admin=is_admin, - ) - - new_user.additional_properties = d - return new_user - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow.py b/python-client/windmill-api/windmill_api/models/open_flow.py deleted file mode 100644 index 39393387ad..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow.py +++ /dev/null @@ -1,119 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_value import OpenFlowValue - from ..models.open_flow_schema import OpenFlowSchema - - - - - -T = TypeVar("T", bound="OpenFlow") - - -@_attrs_define -class OpenFlow: - """ - Attributes: - summary (str): - value (OpenFlowValue): - description (Union[Unset, str]): - schema (Union[Unset, OpenFlowSchema]): - """ - - summary: str - value: 'OpenFlowValue' - description: Union[Unset, str] = UNSET - schema: Union[Unset, 'OpenFlowSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value import OpenFlowValue - from ..models.open_flow_schema import OpenFlowSchema - summary = self.summary - value = self.value.to_dict() - - description = self.description - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "summary": summary, - "value": value, - }) - if description is not UNSET: - field_dict["description"] = description - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value import OpenFlowValue - from ..models.open_flow_schema import OpenFlowSchema - d = src_dict.copy() - summary = d.pop("summary") - - value = OpenFlowValue.from_dict(d.pop("value")) - - - - - description = d.pop("description", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, OpenFlowSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = OpenFlowSchema.from_dict(_schema) - - - - - open_flow = cls( - summary=summary, - value=value, - description=description, - schema=schema, - ) - - open_flow.additional_properties = d - return open_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_schema.py b/python-client/windmill-api/windmill_api/models/open_flow_schema.py deleted file mode 100644 index 8601a44f01..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenFlowSchema") - - -@_attrs_define -class OpenFlowSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - open_flow_schema = cls( - ) - - open_flow_schema.additional_properties = d - return open_flow_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value.py b/python-client/windmill-api/windmill_api/models/open_flow_value.py deleted file mode 100644 index 51f4768b5a..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_value_failure_module import OpenFlowValueFailureModule - from ..models.open_flow_value_modules_item import OpenFlowValueModulesItem - - - - - -T = TypeVar("T", bound="OpenFlowValue") - - -@_attrs_define -class OpenFlowValue: - """ - Attributes: - modules (List['OpenFlowValueModulesItem']): - failure_module (Union[Unset, OpenFlowValueFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['OpenFlowValueModulesItem'] - failure_module: Union[Unset, 'OpenFlowValueFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_failure_module import OpenFlowValueFailureModule - from ..models.open_flow_value_modules_item import OpenFlowValueModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_failure_module import OpenFlowValueFailureModule - from ..models.open_flow_value_modules_item import OpenFlowValueModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = OpenFlowValueModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, OpenFlowValueFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = OpenFlowValueFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - open_flow_value = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - open_flow_value.additional_properties = d - return open_flow_value - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module.py deleted file mode 100644 index 4d882ed497..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_value_failure_module_sleep_type_0 import OpenFlowValueFailureModuleSleepType0 - from ..models.open_flow_value_failure_module_stop_after_if import OpenFlowValueFailureModuleStopAfterIf - from ..models.open_flow_value_failure_module_suspend import OpenFlowValueFailureModuleSuspend - from ..models.open_flow_value_failure_module_sleep_type_1 import OpenFlowValueFailureModuleSleepType1 - from ..models.open_flow_value_failure_module_mock import OpenFlowValueFailureModuleMock - from ..models.open_flow_value_failure_module_retry import OpenFlowValueFailureModuleRetry - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModule") - - -@_attrs_define -class OpenFlowValueFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, OpenFlowValueFailureModuleStopAfterIf]): - sleep (Union['OpenFlowValueFailureModuleSleepType0', 'OpenFlowValueFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, OpenFlowValueFailureModuleMock]): - suspend (Union[Unset, OpenFlowValueFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, OpenFlowValueFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'OpenFlowValueFailureModuleStopAfterIf'] = UNSET - sleep: Union['OpenFlowValueFailureModuleSleepType0', 'OpenFlowValueFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'OpenFlowValueFailureModuleMock'] = UNSET - suspend: Union[Unset, 'OpenFlowValueFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'OpenFlowValueFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_failure_module_sleep_type_0 import OpenFlowValueFailureModuleSleepType0 - from ..models.open_flow_value_failure_module_stop_after_if import OpenFlowValueFailureModuleStopAfterIf - from ..models.open_flow_value_failure_module_suspend import OpenFlowValueFailureModuleSuspend - from ..models.open_flow_value_failure_module_sleep_type_1 import OpenFlowValueFailureModuleSleepType1 - from ..models.open_flow_value_failure_module_mock import OpenFlowValueFailureModuleMock - from ..models.open_flow_value_failure_module_retry import OpenFlowValueFailureModuleRetry - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, OpenFlowValueFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_failure_module_sleep_type_0 import OpenFlowValueFailureModuleSleepType0 - from ..models.open_flow_value_failure_module_stop_after_if import OpenFlowValueFailureModuleStopAfterIf - from ..models.open_flow_value_failure_module_suspend import OpenFlowValueFailureModuleSuspend - from ..models.open_flow_value_failure_module_sleep_type_1 import OpenFlowValueFailureModuleSleepType1 - from ..models.open_flow_value_failure_module_mock import OpenFlowValueFailureModuleMock - from ..models.open_flow_value_failure_module_retry import OpenFlowValueFailureModuleRetry - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, OpenFlowValueFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = OpenFlowValueFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['OpenFlowValueFailureModuleSleepType0', 'OpenFlowValueFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, OpenFlowValueFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = OpenFlowValueFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, OpenFlowValueFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = OpenFlowValueFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, OpenFlowValueFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = OpenFlowValueFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, OpenFlowValueFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = OpenFlowValueFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, OpenFlowValueFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = OpenFlowValueFailureModuleRetry.from_dict(_retry) - - - - - open_flow_value_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - open_flow_value_failure_module.additional_properties = d - return open_flow_value_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_mock.py deleted file mode 100644 index 5f6789ef45..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleMock") - - -@_attrs_define -class OpenFlowValueFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - open_flow_value_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - open_flow_value_failure_module_mock.additional_properties = d - return open_flow_value_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry.py deleted file mode 100644 index 7c728d7779..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_value_failure_module_retry_exponential import OpenFlowValueFailureModuleRetryExponential - from ..models.open_flow_value_failure_module_retry_constant import OpenFlowValueFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleRetry") - - -@_attrs_define -class OpenFlowValueFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, OpenFlowValueFailureModuleRetryConstant]): - exponential (Union[Unset, OpenFlowValueFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'OpenFlowValueFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'OpenFlowValueFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_failure_module_retry_exponential import OpenFlowValueFailureModuleRetryExponential - from ..models.open_flow_value_failure_module_retry_constant import OpenFlowValueFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_failure_module_retry_exponential import OpenFlowValueFailureModuleRetryExponential - from ..models.open_flow_value_failure_module_retry_constant import OpenFlowValueFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, OpenFlowValueFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = OpenFlowValueFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, OpenFlowValueFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = OpenFlowValueFailureModuleRetryExponential.from_dict(_exponential) - - - - - open_flow_value_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - open_flow_value_failure_module_retry.additional_properties = d - return open_flow_value_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry_constant.py deleted file mode 100644 index 6dce7b17f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleRetryConstant") - - -@_attrs_define -class OpenFlowValueFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - open_flow_value_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - open_flow_value_failure_module_retry_constant.additional_properties = d - return open_flow_value_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry_exponential.py deleted file mode 100644 index 92bb3361fe..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleRetryExponential") - - -@_attrs_define -class OpenFlowValueFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - open_flow_value_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - open_flow_value_failure_module_retry_exponential.additional_properties = d - return open_flow_value_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_0.py deleted file mode 100644 index 5b70cf1676..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.open_flow_value_failure_module_sleep_type_0_type import OpenFlowValueFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleSleepType0") - - -@_attrs_define -class OpenFlowValueFailureModuleSleepType0: - """ - Attributes: - type (OpenFlowValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - open_flow_value_failure_module_sleep_type_0.additional_properties = d - return open_flow_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index 4b76cbc9c2..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_1.py deleted file mode 100644 index 8e9f316f20..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_value_failure_module_sleep_type_1_type import OpenFlowValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleSleepType1") - - -@_attrs_define -class OpenFlowValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (OpenFlowValueFailureModuleSleepType1Type): - """ - - expr: str - type: OpenFlowValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowValueFailureModuleSleepType1Type(d.pop("type")) - - - - - open_flow_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_value_failure_module_sleep_type_1.additional_properties = d - return open_flow_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index 3bc1014e5e..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_stop_after_if.py deleted file mode 100644 index c06358ba05..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleStopAfterIf") - - -@_attrs_define -class OpenFlowValueFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - open_flow_value_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - open_flow_value_failure_module_stop_after_if.additional_properties = d - return open_flow_value_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend.py deleted file mode 100644 index 3bdb3dd8e6..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_value_failure_module_suspend_resume_form import OpenFlowValueFailureModuleSuspendResumeForm - from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_0 import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_1 import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleSuspend") - - -@_attrs_define -class OpenFlowValueFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, OpenFlowValueFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0', - 'OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'OpenFlowValueFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0', 'OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_failure_module_suspend_resume_form import OpenFlowValueFailureModuleSuspendResumeForm - from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_0 import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_1 import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_failure_module_suspend_resume_form import OpenFlowValueFailureModuleSuspendResumeForm - from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_0 import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_1 import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, OpenFlowValueFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = OpenFlowValueFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0', 'OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - open_flow_value_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - open_flow_value_failure_module_suspend.additional_properties = d - return open_flow_value_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_resume_form.py deleted file mode 100644 index 5679056bf1..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_value_failure_module_suspend_resume_form_schema import OpenFlowValueFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleSuspendResumeForm") - - -@_attrs_define -class OpenFlowValueFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, OpenFlowValueFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'OpenFlowValueFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_failure_module_suspend_resume_form_schema import OpenFlowValueFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_failure_module_suspend_resume_form_schema import OpenFlowValueFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, OpenFlowValueFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = OpenFlowValueFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - open_flow_value_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - open_flow_value_failure_module_suspend_resume_form.additional_properties = d - return open_flow_value_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index 7d1cf70d77..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class OpenFlowValueFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - open_flow_value_failure_module_suspend_resume_form_schema = cls( - ) - - open_flow_value_failure_module_suspend_resume_form_schema.additional_properties = d - return open_flow_value_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index f5f0d9883a..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_0_type import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - open_flow_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return open_flow_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 06707a7c77..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index a22a45ff04..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_value_failure_module_suspend_user_groups_required_type_1_type import OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - open_flow_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return open_flow_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 9202b864eb..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item.py deleted file mode 100644 index 242e5b82ae..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_value_modules_item_suspend import OpenFlowValueModulesItemSuspend - from ..models.open_flow_value_modules_item_mock import OpenFlowValueModulesItemMock - from ..models.open_flow_value_modules_item_retry import OpenFlowValueModulesItemRetry - from ..models.open_flow_value_modules_item_stop_after_if import OpenFlowValueModulesItemStopAfterIf - from ..models.open_flow_value_modules_item_sleep_type_1 import OpenFlowValueModulesItemSleepType1 - from ..models.open_flow_value_modules_item_sleep_type_0 import OpenFlowValueModulesItemSleepType0 - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItem") - - -@_attrs_define -class OpenFlowValueModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, OpenFlowValueModulesItemStopAfterIf]): - sleep (Union['OpenFlowValueModulesItemSleepType0', 'OpenFlowValueModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, OpenFlowValueModulesItemMock]): - suspend (Union[Unset, OpenFlowValueModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, OpenFlowValueModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'OpenFlowValueModulesItemStopAfterIf'] = UNSET - sleep: Union['OpenFlowValueModulesItemSleepType0', 'OpenFlowValueModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'OpenFlowValueModulesItemMock'] = UNSET - suspend: Union[Unset, 'OpenFlowValueModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'OpenFlowValueModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_modules_item_suspend import OpenFlowValueModulesItemSuspend - from ..models.open_flow_value_modules_item_mock import OpenFlowValueModulesItemMock - from ..models.open_flow_value_modules_item_retry import OpenFlowValueModulesItemRetry - from ..models.open_flow_value_modules_item_stop_after_if import OpenFlowValueModulesItemStopAfterIf - from ..models.open_flow_value_modules_item_sleep_type_1 import OpenFlowValueModulesItemSleepType1 - from ..models.open_flow_value_modules_item_sleep_type_0 import OpenFlowValueModulesItemSleepType0 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, OpenFlowValueModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_modules_item_suspend import OpenFlowValueModulesItemSuspend - from ..models.open_flow_value_modules_item_mock import OpenFlowValueModulesItemMock - from ..models.open_flow_value_modules_item_retry import OpenFlowValueModulesItemRetry - from ..models.open_flow_value_modules_item_stop_after_if import OpenFlowValueModulesItemStopAfterIf - from ..models.open_flow_value_modules_item_sleep_type_1 import OpenFlowValueModulesItemSleepType1 - from ..models.open_flow_value_modules_item_sleep_type_0 import OpenFlowValueModulesItemSleepType0 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, OpenFlowValueModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = OpenFlowValueModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['OpenFlowValueModulesItemSleepType0', 'OpenFlowValueModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, OpenFlowValueModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = OpenFlowValueModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, OpenFlowValueModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = OpenFlowValueModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, OpenFlowValueModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = OpenFlowValueModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, OpenFlowValueModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = OpenFlowValueModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, OpenFlowValueModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = OpenFlowValueModulesItemRetry.from_dict(_retry) - - - - - open_flow_value_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - open_flow_value_modules_item.additional_properties = d - return open_flow_value_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_mock.py deleted file mode 100644 index d56420dfd0..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemMock") - - -@_attrs_define -class OpenFlowValueModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - open_flow_value_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - open_flow_value_modules_item_mock.additional_properties = d - return open_flow_value_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry.py deleted file mode 100644 index d97c9eb338..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_value_modules_item_retry_exponential import OpenFlowValueModulesItemRetryExponential - from ..models.open_flow_value_modules_item_retry_constant import OpenFlowValueModulesItemRetryConstant - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemRetry") - - -@_attrs_define -class OpenFlowValueModulesItemRetry: - """ - Attributes: - constant (Union[Unset, OpenFlowValueModulesItemRetryConstant]): - exponential (Union[Unset, OpenFlowValueModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'OpenFlowValueModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'OpenFlowValueModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_modules_item_retry_exponential import OpenFlowValueModulesItemRetryExponential - from ..models.open_flow_value_modules_item_retry_constant import OpenFlowValueModulesItemRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_modules_item_retry_exponential import OpenFlowValueModulesItemRetryExponential - from ..models.open_flow_value_modules_item_retry_constant import OpenFlowValueModulesItemRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, OpenFlowValueModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = OpenFlowValueModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, OpenFlowValueModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = OpenFlowValueModulesItemRetryExponential.from_dict(_exponential) - - - - - open_flow_value_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - open_flow_value_modules_item_retry.additional_properties = d - return open_flow_value_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry_constant.py deleted file mode 100644 index 1d0f699e32..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemRetryConstant") - - -@_attrs_define -class OpenFlowValueModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - open_flow_value_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - open_flow_value_modules_item_retry_constant.additional_properties = d - return open_flow_value_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry_exponential.py deleted file mode 100644 index a519f45630..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemRetryExponential") - - -@_attrs_define -class OpenFlowValueModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - open_flow_value_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - open_flow_value_modules_item_retry_exponential.additional_properties = d - return open_flow_value_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_0.py deleted file mode 100644 index ff7e47fc75..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.open_flow_value_modules_item_sleep_type_0_type import OpenFlowValueModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemSleepType0") - - -@_attrs_define -class OpenFlowValueModulesItemSleepType0: - """ - Attributes: - type (OpenFlowValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - open_flow_value_modules_item_sleep_type_0.additional_properties = d - return open_flow_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index 14088799fa..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_1.py deleted file mode 100644 index da363d6401..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_value_modules_item_sleep_type_1_type import OpenFlowValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemSleepType1") - - -@_attrs_define -class OpenFlowValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (OpenFlowValueModulesItemSleepType1Type): - """ - - expr: str - type: OpenFlowValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowValueModulesItemSleepType1Type(d.pop("type")) - - - - - open_flow_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_value_modules_item_sleep_type_1.additional_properties = d - return open_flow_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index dffc8d6dc4..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_stop_after_if.py deleted file mode 100644 index 9e54c7bc92..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemStopAfterIf") - - -@_attrs_define -class OpenFlowValueModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - open_flow_value_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - open_flow_value_modules_item_stop_after_if.additional_properties = d - return open_flow_value_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend.py deleted file mode 100644 index 0c26c5dc66..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_0 import OpenFlowValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.open_flow_value_modules_item_suspend_resume_form import OpenFlowValueModulesItemSuspendResumeForm - from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_1 import OpenFlowValueModulesItemSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemSuspend") - - -@_attrs_define -class OpenFlowValueModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, OpenFlowValueModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['OpenFlowValueModulesItemSuspendUserGroupsRequiredType0', - 'OpenFlowValueModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'OpenFlowValueModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['OpenFlowValueModulesItemSuspendUserGroupsRequiredType0', 'OpenFlowValueModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_0 import OpenFlowValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.open_flow_value_modules_item_suspend_resume_form import OpenFlowValueModulesItemSuspendResumeForm - from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_1 import OpenFlowValueModulesItemSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, OpenFlowValueModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_0 import OpenFlowValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.open_flow_value_modules_item_suspend_resume_form import OpenFlowValueModulesItemSuspendResumeForm - from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_1 import OpenFlowValueModulesItemSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, OpenFlowValueModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = OpenFlowValueModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['OpenFlowValueModulesItemSuspendUserGroupsRequiredType0', 'OpenFlowValueModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, OpenFlowValueModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = OpenFlowValueModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, OpenFlowValueModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = OpenFlowValueModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - open_flow_value_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - open_flow_value_modules_item_suspend.additional_properties = d - return open_flow_value_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_resume_form.py deleted file mode 100644 index c2ac3a172a..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_value_modules_item_suspend_resume_form_schema import OpenFlowValueModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemSuspendResumeForm") - - -@_attrs_define -class OpenFlowValueModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, OpenFlowValueModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'OpenFlowValueModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_value_modules_item_suspend_resume_form_schema import OpenFlowValueModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_value_modules_item_suspend_resume_form_schema import OpenFlowValueModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, OpenFlowValueModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = OpenFlowValueModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - open_flow_value_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - open_flow_value_modules_item_suspend_resume_form.additional_properties = d - return open_flow_value_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index cc0ef439b7..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class OpenFlowValueModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - open_flow_value_modules_item_suspend_resume_form_schema = cls( - ) - - open_flow_value_modules_item_suspend_resume_form_schema.additional_properties = d - return open_flow_value_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 66e37a676c..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_0_type import OpenFlowValueModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class OpenFlowValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (OpenFlowValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - open_flow_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return open_flow_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index a172974b82..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index a68f2a369d..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_value_modules_item_suspend_user_groups_required_type_1_type import OpenFlowValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class OpenFlowValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (OpenFlowValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: OpenFlowValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - open_flow_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return open_flow_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 0e035589e7..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path.py deleted file mode 100644 index 21ca8d2bc7..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path.py +++ /dev/null @@ -1,166 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value import OpenFlowWPathValue - from ..models.open_flow_w_path_schema import OpenFlowWPathSchema - - - - - -T = TypeVar("T", bound="OpenFlowWPath") - - -@_attrs_define -class OpenFlowWPath: - """ - Attributes: - summary (str): - value (OpenFlowWPathValue): - path (str): - description (Union[Unset, str]): - schema (Union[Unset, OpenFlowWPathSchema]): - tag (Union[Unset, str]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - dedicated_worker (Union[Unset, bool]): - timeout (Union[Unset, float]): - """ - - summary: str - value: 'OpenFlowWPathValue' - path: str - description: Union[Unset, str] = UNSET - schema: Union[Unset, 'OpenFlowWPathSchema'] = UNSET - tag: Union[Unset, str] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - timeout: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value import OpenFlowWPathValue - from ..models.open_flow_w_path_schema import OpenFlowWPathSchema - summary = self.summary - value = self.value.to_dict() - - path = self.path - description = self.description - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - tag = self.tag - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - dedicated_worker = self.dedicated_worker - timeout = self.timeout - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "summary": summary, - "value": value, - "path": path, - }) - if description is not UNSET: - field_dict["description"] = description - if schema is not UNSET: - field_dict["schema"] = schema - if tag is not UNSET: - field_dict["tag"] = tag - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if timeout is not UNSET: - field_dict["timeout"] = timeout - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value import OpenFlowWPathValue - from ..models.open_flow_w_path_schema import OpenFlowWPathSchema - d = src_dict.copy() - summary = d.pop("summary") - - value = OpenFlowWPathValue.from_dict(d.pop("value")) - - - - - path = d.pop("path") - - description = d.pop("description", UNSET) - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, OpenFlowWPathSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = OpenFlowWPathSchema.from_dict(_schema) - - - - - tag = d.pop("tag", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - timeout = d.pop("timeout", UNSET) - - open_flow_w_path = cls( - summary=summary, - value=value, - path=path, - description=description, - schema=schema, - tag=tag, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - dedicated_worker=dedicated_worker, - timeout=timeout, - ) - - open_flow_w_path.additional_properties = d - return open_flow_w_path - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_schema.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_schema.py deleted file mode 100644 index 451eac9d46..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenFlowWPathSchema") - - -@_attrs_define -class OpenFlowWPathSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - open_flow_w_path_schema = cls( - ) - - open_flow_w_path_schema.additional_properties = d - return open_flow_w_path_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value.py deleted file mode 100644 index 5009a70ca4..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_failure_module import OpenFlowWPathValueFailureModule - from ..models.open_flow_w_path_value_modules_item import OpenFlowWPathValueModulesItem - - - - - -T = TypeVar("T", bound="OpenFlowWPathValue") - - -@_attrs_define -class OpenFlowWPathValue: - """ - Attributes: - modules (List['OpenFlowWPathValueModulesItem']): - failure_module (Union[Unset, OpenFlowWPathValueFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['OpenFlowWPathValueModulesItem'] - failure_module: Union[Unset, 'OpenFlowWPathValueFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_failure_module import OpenFlowWPathValueFailureModule - from ..models.open_flow_w_path_value_modules_item import OpenFlowWPathValueModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_failure_module import OpenFlowWPathValueFailureModule - from ..models.open_flow_w_path_value_modules_item import OpenFlowWPathValueModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = OpenFlowWPathValueModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, OpenFlowWPathValueFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = OpenFlowWPathValueFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - open_flow_w_path_value = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - open_flow_w_path_value.additional_properties = d - return open_flow_w_path_value - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module.py deleted file mode 100644 index 4a50eb4e4c..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_failure_module_stop_after_if import OpenFlowWPathValueFailureModuleStopAfterIf - from ..models.open_flow_w_path_value_failure_module_suspend import OpenFlowWPathValueFailureModuleSuspend - from ..models.open_flow_w_path_value_failure_module_sleep_type_1 import OpenFlowWPathValueFailureModuleSleepType1 - from ..models.open_flow_w_path_value_failure_module_mock import OpenFlowWPathValueFailureModuleMock - from ..models.open_flow_w_path_value_failure_module_retry import OpenFlowWPathValueFailureModuleRetry - from ..models.open_flow_w_path_value_failure_module_sleep_type_0 import OpenFlowWPathValueFailureModuleSleepType0 - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModule") - - -@_attrs_define -class OpenFlowWPathValueFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, OpenFlowWPathValueFailureModuleStopAfterIf]): - sleep (Union['OpenFlowWPathValueFailureModuleSleepType0', 'OpenFlowWPathValueFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, OpenFlowWPathValueFailureModuleMock]): - suspend (Union[Unset, OpenFlowWPathValueFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, OpenFlowWPathValueFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'OpenFlowWPathValueFailureModuleStopAfterIf'] = UNSET - sleep: Union['OpenFlowWPathValueFailureModuleSleepType0', 'OpenFlowWPathValueFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'OpenFlowWPathValueFailureModuleMock'] = UNSET - suspend: Union[Unset, 'OpenFlowWPathValueFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'OpenFlowWPathValueFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_failure_module_stop_after_if import OpenFlowWPathValueFailureModuleStopAfterIf - from ..models.open_flow_w_path_value_failure_module_suspend import OpenFlowWPathValueFailureModuleSuspend - from ..models.open_flow_w_path_value_failure_module_sleep_type_1 import OpenFlowWPathValueFailureModuleSleepType1 - from ..models.open_flow_w_path_value_failure_module_mock import OpenFlowWPathValueFailureModuleMock - from ..models.open_flow_w_path_value_failure_module_retry import OpenFlowWPathValueFailureModuleRetry - from ..models.open_flow_w_path_value_failure_module_sleep_type_0 import OpenFlowWPathValueFailureModuleSleepType0 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, OpenFlowWPathValueFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_failure_module_stop_after_if import OpenFlowWPathValueFailureModuleStopAfterIf - from ..models.open_flow_w_path_value_failure_module_suspend import OpenFlowWPathValueFailureModuleSuspend - from ..models.open_flow_w_path_value_failure_module_sleep_type_1 import OpenFlowWPathValueFailureModuleSleepType1 - from ..models.open_flow_w_path_value_failure_module_mock import OpenFlowWPathValueFailureModuleMock - from ..models.open_flow_w_path_value_failure_module_retry import OpenFlowWPathValueFailureModuleRetry - from ..models.open_flow_w_path_value_failure_module_sleep_type_0 import OpenFlowWPathValueFailureModuleSleepType0 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, OpenFlowWPathValueFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = OpenFlowWPathValueFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['OpenFlowWPathValueFailureModuleSleepType0', 'OpenFlowWPathValueFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, OpenFlowWPathValueFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = OpenFlowWPathValueFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, OpenFlowWPathValueFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = OpenFlowWPathValueFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, OpenFlowWPathValueFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = OpenFlowWPathValueFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, OpenFlowWPathValueFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = OpenFlowWPathValueFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, OpenFlowWPathValueFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = OpenFlowWPathValueFailureModuleRetry.from_dict(_retry) - - - - - open_flow_w_path_value_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - open_flow_w_path_value_failure_module.additional_properties = d - return open_flow_w_path_value_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_mock.py deleted file mode 100644 index a2b0c05a76..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleMock") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - open_flow_w_path_value_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - open_flow_w_path_value_failure_module_mock.additional_properties = d - return open_flow_w_path_value_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry.py deleted file mode 100644 index 7f9a08054e..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_failure_module_retry_exponential import OpenFlowWPathValueFailureModuleRetryExponential - from ..models.open_flow_w_path_value_failure_module_retry_constant import OpenFlowWPathValueFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleRetry") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, OpenFlowWPathValueFailureModuleRetryConstant]): - exponential (Union[Unset, OpenFlowWPathValueFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'OpenFlowWPathValueFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'OpenFlowWPathValueFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_failure_module_retry_exponential import OpenFlowWPathValueFailureModuleRetryExponential - from ..models.open_flow_w_path_value_failure_module_retry_constant import OpenFlowWPathValueFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_failure_module_retry_exponential import OpenFlowWPathValueFailureModuleRetryExponential - from ..models.open_flow_w_path_value_failure_module_retry_constant import OpenFlowWPathValueFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, OpenFlowWPathValueFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = OpenFlowWPathValueFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, OpenFlowWPathValueFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = OpenFlowWPathValueFailureModuleRetryExponential.from_dict(_exponential) - - - - - open_flow_w_path_value_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - open_flow_w_path_value_failure_module_retry.additional_properties = d - return open_flow_w_path_value_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry_constant.py deleted file mode 100644 index b7767df403..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleRetryConstant") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - open_flow_w_path_value_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - open_flow_w_path_value_failure_module_retry_constant.additional_properties = d - return open_flow_w_path_value_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry_exponential.py deleted file mode 100644 index e455a7a949..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleRetryExponential") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - open_flow_w_path_value_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - open_flow_w_path_value_failure_module_retry_exponential.additional_properties = d - return open_flow_w_path_value_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_0.py deleted file mode 100644 index 667536c9cb..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.open_flow_w_path_value_failure_module_sleep_type_0_type import OpenFlowWPathValueFailureModuleSleepType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleSleepType0") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleSleepType0: - """ - Attributes: - type (OpenFlowWPathValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowWPathValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowWPathValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_w_path_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - open_flow_w_path_value_failure_module_sleep_type_0.additional_properties = d - return open_flow_w_path_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index 1ffb06cf63..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_1.py deleted file mode 100644 index 55bc0d9211..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_w_path_value_failure_module_sleep_type_1_type import OpenFlowWPathValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleSleepType1") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (OpenFlowWPathValueFailureModuleSleepType1Type): - """ - - expr: str - type: OpenFlowWPathValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowWPathValueFailureModuleSleepType1Type(d.pop("type")) - - - - - open_flow_w_path_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_w_path_value_failure_module_sleep_type_1.additional_properties = d - return open_flow_w_path_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index 6f05999771..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_stop_after_if.py deleted file mode 100644 index 9ff6cc877e..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleStopAfterIf") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - open_flow_w_path_value_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - open_flow_w_path_value_failure_module_stop_after_if.additional_properties = d - return open_flow_w_path_value_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend.py deleted file mode 100644 index b164a0fc96..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0 import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.open_flow_w_path_value_failure_module_suspend_resume_form import OpenFlowWPathValueFailureModuleSuspendResumeForm - from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1 import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleSuspend") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, OpenFlowWPathValueFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0', - 'OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'OpenFlowWPathValueFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0', 'OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0 import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.open_flow_w_path_value_failure_module_suspend_resume_form import OpenFlowWPathValueFailureModuleSuspendResumeForm - from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1 import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0 import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0 - from ..models.open_flow_w_path_value_failure_module_suspend_resume_form import OpenFlowWPathValueFailureModuleSuspendResumeForm - from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1 import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, OpenFlowWPathValueFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = OpenFlowWPathValueFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0', 'OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - open_flow_w_path_value_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - open_flow_w_path_value_failure_module_suspend.additional_properties = d - return open_flow_w_path_value_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_resume_form.py deleted file mode 100644 index c1ff6ce710..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_failure_module_suspend_resume_form_schema import OpenFlowWPathValueFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleSuspendResumeForm") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, OpenFlowWPathValueFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'OpenFlowWPathValueFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_failure_module_suspend_resume_form_schema import OpenFlowWPathValueFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_failure_module_suspend_resume_form_schema import OpenFlowWPathValueFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, OpenFlowWPathValueFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = OpenFlowWPathValueFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - open_flow_w_path_value_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - open_flow_w_path_value_failure_module_suspend_resume_form.additional_properties = d - return open_flow_w_path_value_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index f56c6cfba6..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - open_flow_w_path_value_failure_module_suspend_resume_form_schema = cls( - ) - - open_flow_w_path_value_failure_module_suspend_resume_form_schema.additional_properties = d - return open_flow_w_path_value_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index f620454409..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0_type import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 2cb5b73585..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 5bf75d339c..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1_type import OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 2d2dcf3b37..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item.py deleted file mode 100644 index 23e5a4a0e8..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_modules_item_sleep_type_1 import OpenFlowWPathValueModulesItemSleepType1 - from ..models.open_flow_w_path_value_modules_item_mock import OpenFlowWPathValueModulesItemMock - from ..models.open_flow_w_path_value_modules_item_stop_after_if import OpenFlowWPathValueModulesItemStopAfterIf - from ..models.open_flow_w_path_value_modules_item_suspend import OpenFlowWPathValueModulesItemSuspend - from ..models.open_flow_w_path_value_modules_item_sleep_type_0 import OpenFlowWPathValueModulesItemSleepType0 - from ..models.open_flow_w_path_value_modules_item_retry import OpenFlowWPathValueModulesItemRetry - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItem") - - -@_attrs_define -class OpenFlowWPathValueModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, OpenFlowWPathValueModulesItemStopAfterIf]): - sleep (Union['OpenFlowWPathValueModulesItemSleepType0', 'OpenFlowWPathValueModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, OpenFlowWPathValueModulesItemMock]): - suspend (Union[Unset, OpenFlowWPathValueModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, OpenFlowWPathValueModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'OpenFlowWPathValueModulesItemStopAfterIf'] = UNSET - sleep: Union['OpenFlowWPathValueModulesItemSleepType0', 'OpenFlowWPathValueModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'OpenFlowWPathValueModulesItemMock'] = UNSET - suspend: Union[Unset, 'OpenFlowWPathValueModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'OpenFlowWPathValueModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_modules_item_sleep_type_1 import OpenFlowWPathValueModulesItemSleepType1 - from ..models.open_flow_w_path_value_modules_item_mock import OpenFlowWPathValueModulesItemMock - from ..models.open_flow_w_path_value_modules_item_stop_after_if import OpenFlowWPathValueModulesItemStopAfterIf - from ..models.open_flow_w_path_value_modules_item_suspend import OpenFlowWPathValueModulesItemSuspend - from ..models.open_flow_w_path_value_modules_item_sleep_type_0 import OpenFlowWPathValueModulesItemSleepType0 - from ..models.open_flow_w_path_value_modules_item_retry import OpenFlowWPathValueModulesItemRetry - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, OpenFlowWPathValueModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_modules_item_sleep_type_1 import OpenFlowWPathValueModulesItemSleepType1 - from ..models.open_flow_w_path_value_modules_item_mock import OpenFlowWPathValueModulesItemMock - from ..models.open_flow_w_path_value_modules_item_stop_after_if import OpenFlowWPathValueModulesItemStopAfterIf - from ..models.open_flow_w_path_value_modules_item_suspend import OpenFlowWPathValueModulesItemSuspend - from ..models.open_flow_w_path_value_modules_item_sleep_type_0 import OpenFlowWPathValueModulesItemSleepType0 - from ..models.open_flow_w_path_value_modules_item_retry import OpenFlowWPathValueModulesItemRetry - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, OpenFlowWPathValueModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = OpenFlowWPathValueModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['OpenFlowWPathValueModulesItemSleepType0', 'OpenFlowWPathValueModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, OpenFlowWPathValueModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = OpenFlowWPathValueModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, OpenFlowWPathValueModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = OpenFlowWPathValueModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, OpenFlowWPathValueModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = OpenFlowWPathValueModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, OpenFlowWPathValueModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = OpenFlowWPathValueModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, OpenFlowWPathValueModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = OpenFlowWPathValueModulesItemRetry.from_dict(_retry) - - - - - open_flow_w_path_value_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - open_flow_w_path_value_modules_item.additional_properties = d - return open_flow_w_path_value_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_mock.py deleted file mode 100644 index bdb08353fb..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemMock") - - -@_attrs_define -class OpenFlowWPathValueModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - open_flow_w_path_value_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - open_flow_w_path_value_modules_item_mock.additional_properties = d - return open_flow_w_path_value_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry.py deleted file mode 100644 index dd6ba679e9..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_modules_item_retry_exponential import OpenFlowWPathValueModulesItemRetryExponential - from ..models.open_flow_w_path_value_modules_item_retry_constant import OpenFlowWPathValueModulesItemRetryConstant - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemRetry") - - -@_attrs_define -class OpenFlowWPathValueModulesItemRetry: - """ - Attributes: - constant (Union[Unset, OpenFlowWPathValueModulesItemRetryConstant]): - exponential (Union[Unset, OpenFlowWPathValueModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'OpenFlowWPathValueModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'OpenFlowWPathValueModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_modules_item_retry_exponential import OpenFlowWPathValueModulesItemRetryExponential - from ..models.open_flow_w_path_value_modules_item_retry_constant import OpenFlowWPathValueModulesItemRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_modules_item_retry_exponential import OpenFlowWPathValueModulesItemRetryExponential - from ..models.open_flow_w_path_value_modules_item_retry_constant import OpenFlowWPathValueModulesItemRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, OpenFlowWPathValueModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = OpenFlowWPathValueModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, OpenFlowWPathValueModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = OpenFlowWPathValueModulesItemRetryExponential.from_dict(_exponential) - - - - - open_flow_w_path_value_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - open_flow_w_path_value_modules_item_retry.additional_properties = d - return open_flow_w_path_value_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry_constant.py deleted file mode 100644 index ded41c86e0..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemRetryConstant") - - -@_attrs_define -class OpenFlowWPathValueModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - open_flow_w_path_value_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - open_flow_w_path_value_modules_item_retry_constant.additional_properties = d - return open_flow_w_path_value_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry_exponential.py deleted file mode 100644 index 0b267518ed..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemRetryExponential") - - -@_attrs_define -class OpenFlowWPathValueModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - open_flow_w_path_value_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - open_flow_w_path_value_modules_item_retry_exponential.additional_properties = d - return open_flow_w_path_value_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_0.py deleted file mode 100644 index aead74d2e8..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.open_flow_w_path_value_modules_item_sleep_type_0_type import OpenFlowWPathValueModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemSleepType0") - - -@_attrs_define -class OpenFlowWPathValueModulesItemSleepType0: - """ - Attributes: - type (OpenFlowWPathValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowWPathValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowWPathValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_w_path_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - open_flow_w_path_value_modules_item_sleep_type_0.additional_properties = d - return open_flow_w_path_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index a3b709c887..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_1.py deleted file mode 100644 index 2c66704845..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_w_path_value_modules_item_sleep_type_1_type import OpenFlowWPathValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemSleepType1") - - -@_attrs_define -class OpenFlowWPathValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (OpenFlowWPathValueModulesItemSleepType1Type): - """ - - expr: str - type: OpenFlowWPathValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowWPathValueModulesItemSleepType1Type(d.pop("type")) - - - - - open_flow_w_path_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_w_path_value_modules_item_sleep_type_1.additional_properties = d - return open_flow_w_path_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index bfe87b3c6c..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_stop_after_if.py deleted file mode 100644 index d5836e2a76..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemStopAfterIf") - - -@_attrs_define -class OpenFlowWPathValueModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - open_flow_w_path_value_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - open_flow_w_path_value_modules_item_stop_after_if.additional_properties = d - return open_flow_w_path_value_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend.py deleted file mode 100644 index 73a85323ef..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_modules_item_suspend_resume_form import OpenFlowWPathValueModulesItemSuspendResumeForm - from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0 import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1 import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1 - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemSuspend") - - -@_attrs_define -class OpenFlowWPathValueModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, OpenFlowWPathValueModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0', - 'OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'OpenFlowWPathValueModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0', 'OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_modules_item_suspend_resume_form import OpenFlowWPathValueModulesItemSuspendResumeForm - from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0 import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1 import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_modules_item_suspend_resume_form import OpenFlowWPathValueModulesItemSuspendResumeForm - from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0 import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1 import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, OpenFlowWPathValueModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = OpenFlowWPathValueModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0', 'OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - open_flow_w_path_value_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - open_flow_w_path_value_modules_item_suspend.additional_properties = d - return open_flow_w_path_value_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_resume_form.py deleted file mode 100644 index a8f6a392fa..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.open_flow_w_path_value_modules_item_suspend_resume_form_schema import OpenFlowWPathValueModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemSuspendResumeForm") - - -@_attrs_define -class OpenFlowWPathValueModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, OpenFlowWPathValueModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'OpenFlowWPathValueModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.open_flow_w_path_value_modules_item_suspend_resume_form_schema import OpenFlowWPathValueModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.open_flow_w_path_value_modules_item_suspend_resume_form_schema import OpenFlowWPathValueModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, OpenFlowWPathValueModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = OpenFlowWPathValueModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - open_flow_w_path_value_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - open_flow_w_path_value_modules_item_suspend_resume_form.additional_properties = d - return open_flow_w_path_value_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index e7af4558b1..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class OpenFlowWPathValueModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - open_flow_w_path_value_modules_item_suspend_resume_form_schema = cls( - ) - - open_flow_w_path_value_modules_item_suspend_resume_form_schema.additional_properties = d - return open_flow_w_path_value_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index d67413e09d..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0_type import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 6654127bef..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 7f97ed0d25..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1_type import OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 466c3da5de..0000000000 --- a/python-client/windmill-api/windmill_api/models/open_flow_w_path_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class OpenFlowWPathValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/openai_sync_flow_by_path_json_body.py b/python-client/windmill-api/windmill_api/models/openai_sync_flow_by_path_json_body.py deleted file mode 100644 index 8074a03a0f..0000000000 --- a/python-client/windmill-api/windmill_api/models/openai_sync_flow_by_path_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenaiSyncFlowByPathJsonBody") - - -@_attrs_define -class OpenaiSyncFlowByPathJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - openai_sync_flow_by_path_json_body = cls( - ) - - openai_sync_flow_by_path_json_body.additional_properties = d - return openai_sync_flow_by_path_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/openai_sync_script_by_path_json_body.py b/python-client/windmill-api/windmill_api/models/openai_sync_script_by_path_json_body.py deleted file mode 100644 index 8414347483..0000000000 --- a/python-client/windmill-api/windmill_api/models/openai_sync_script_by_path_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="OpenaiSyncScriptByPathJsonBody") - - -@_attrs_define -class OpenaiSyncScriptByPathJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - openai_sync_script_by_path_json_body = cls( - ) - - openai_sync_script_by_path_json_body.additional_properties = d - return openai_sync_script_by_path_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_flow.py b/python-client/windmill-api/windmill_api/models/path_flow.py deleted file mode 100644 index a5e32ea4ee..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_flow.py +++ /dev/null @@ -1,99 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from ..models.path_flow_type import PathFlowType - -if TYPE_CHECKING: - from ..models.path_flow_input_transforms import PathFlowInputTransforms - - - - - -T = TypeVar("T", bound="PathFlow") - - -@_attrs_define -class PathFlow: - """ - Attributes: - input_transforms (PathFlowInputTransforms): - path (str): - type (PathFlowType): - """ - - input_transforms: 'PathFlowInputTransforms' - path: str - type: PathFlowType - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.path_flow_input_transforms import PathFlowInputTransforms - input_transforms = self.input_transforms.to_dict() - - path = self.path - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "input_transforms": input_transforms, - "path": path, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.path_flow_input_transforms import PathFlowInputTransforms - d = src_dict.copy() - input_transforms = PathFlowInputTransforms.from_dict(d.pop("input_transforms")) - - - - - path = d.pop("path") - - type = PathFlowType(d.pop("type")) - - - - - path_flow = cls( - input_transforms=input_transforms, - path=path, - type=type, - ) - - path_flow.additional_properties = d - return path_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms.py b/python-client/windmill-api/windmill_api/models/path_flow_input_transforms.py deleted file mode 100644 index 6b29eb9165..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms.py +++ /dev/null @@ -1,108 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, Union - -if TYPE_CHECKING: - from ..models.path_flow_input_transforms_additional_property_type_1 import PathFlowInputTransformsAdditionalPropertyType1 - from ..models.path_flow_input_transforms_additional_property_type_0 import PathFlowInputTransformsAdditionalPropertyType0 - - - - - -T = TypeVar("T", bound="PathFlowInputTransforms") - - -@_attrs_define -class PathFlowInputTransforms: - """ - """ - - additional_properties: Dict[str, Union['PathFlowInputTransformsAdditionalPropertyType0', 'PathFlowInputTransformsAdditionalPropertyType1']] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.path_flow_input_transforms_additional_property_type_1 import PathFlowInputTransformsAdditionalPropertyType1 - from ..models.path_flow_input_transforms_additional_property_type_0 import PathFlowInputTransformsAdditionalPropertyType0 - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - - - if isinstance(prop, PathFlowInputTransformsAdditionalPropertyType0): - field_dict[prop_name] = prop.to_dict() - - else: - field_dict[prop_name] = prop.to_dict() - - - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.path_flow_input_transforms_additional_property_type_1 import PathFlowInputTransformsAdditionalPropertyType1 - from ..models.path_flow_input_transforms_additional_property_type_0 import PathFlowInputTransformsAdditionalPropertyType0 - d = src_dict.copy() - path_flow_input_transforms = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - def _parse_additional_property(data: object) -> Union['PathFlowInputTransformsAdditionalPropertyType0', 'PathFlowInputTransformsAdditionalPropertyType1']: - try: - if not isinstance(data, dict): - raise TypeError() - additional_property_type_0 = PathFlowInputTransformsAdditionalPropertyType0.from_dict(data) - - - - return additional_property_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - additional_property_type_1 = PathFlowInputTransformsAdditionalPropertyType1.from_dict(data) - - - - return additional_property_type_1 - - additional_property = _parse_additional_property(prop_dict) - - additional_properties[prop_name] = additional_property - - path_flow_input_transforms.additional_properties = additional_properties - return path_flow_input_transforms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Union['PathFlowInputTransformsAdditionalPropertyType0', 'PathFlowInputTransformsAdditionalPropertyType1']: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Union['PathFlowInputTransformsAdditionalPropertyType0', 'PathFlowInputTransformsAdditionalPropertyType1']) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_0.py b/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_0.py deleted file mode 100644 index 70c9d6e80f..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.path_flow_input_transforms_additional_property_type_0_type import PathFlowInputTransformsAdditionalPropertyType0Type - - - - - - -T = TypeVar("T", bound="PathFlowInputTransformsAdditionalPropertyType0") - - -@_attrs_define -class PathFlowInputTransformsAdditionalPropertyType0: - """ - Attributes: - type (PathFlowInputTransformsAdditionalPropertyType0Type): - value (Union[Unset, Any]): - """ - - type: PathFlowInputTransformsAdditionalPropertyType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = PathFlowInputTransformsAdditionalPropertyType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - path_flow_input_transforms_additional_property_type_0 = cls( - type=type, - value=value, - ) - - path_flow_input_transforms_additional_property_type_0.additional_properties = d - return path_flow_input_transforms_additional_property_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_0_type.py b/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_0_type.py deleted file mode 100644 index d12efcd0c3..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class PathFlowInputTransformsAdditionalPropertyType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_1.py b/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_1.py deleted file mode 100644 index 2b7b80c9f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.path_flow_input_transforms_additional_property_type_1_type import PathFlowInputTransformsAdditionalPropertyType1Type - - - - - - -T = TypeVar("T", bound="PathFlowInputTransformsAdditionalPropertyType1") - - -@_attrs_define -class PathFlowInputTransformsAdditionalPropertyType1: - """ - Attributes: - expr (str): - type (PathFlowInputTransformsAdditionalPropertyType1Type): - """ - - expr: str - type: PathFlowInputTransformsAdditionalPropertyType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = PathFlowInputTransformsAdditionalPropertyType1Type(d.pop("type")) - - - - - path_flow_input_transforms_additional_property_type_1 = cls( - expr=expr, - type=type, - ) - - path_flow_input_transforms_additional_property_type_1.additional_properties = d - return path_flow_input_transforms_additional_property_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_1_type.py b/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_1_type.py deleted file mode 100644 index 4920f70f11..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_flow_input_transforms_additional_property_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class PathFlowInputTransformsAdditionalPropertyType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/path_flow_type.py b/python-client/windmill-api/windmill_api/models/path_flow_type.py deleted file mode 100644 index f67b1b1612..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_flow_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class PathFlowType(str, Enum): - FLOW = "flow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/path_script.py b/python-client/windmill-api/windmill_api/models/path_script.py deleted file mode 100644 index d1c9847946..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_script.py +++ /dev/null @@ -1,109 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.path_script_type import PathScriptType -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.path_script_input_transforms import PathScriptInputTransforms - - - - - -T = TypeVar("T", bound="PathScript") - - -@_attrs_define -class PathScript: - """ - Attributes: - input_transforms (PathScriptInputTransforms): - path (str): - type (PathScriptType): - hash_ (Union[Unset, str]): - """ - - input_transforms: 'PathScriptInputTransforms' - path: str - type: PathScriptType - hash_: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.path_script_input_transforms import PathScriptInputTransforms - input_transforms = self.input_transforms.to_dict() - - path = self.path - type = self.type.value - - hash_ = self.hash_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "input_transforms": input_transforms, - "path": path, - "type": type, - }) - if hash_ is not UNSET: - field_dict["hash"] = hash_ - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.path_script_input_transforms import PathScriptInputTransforms - d = src_dict.copy() - input_transforms = PathScriptInputTransforms.from_dict(d.pop("input_transforms")) - - - - - path = d.pop("path") - - type = PathScriptType(d.pop("type")) - - - - - hash_ = d.pop("hash", UNSET) - - path_script = cls( - input_transforms=input_transforms, - path=path, - type=type, - hash_=hash_, - ) - - path_script.additional_properties = d - return path_script - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_script_input_transforms.py b/python-client/windmill-api/windmill_api/models/path_script_input_transforms.py deleted file mode 100644 index b5228bf6da..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_script_input_transforms.py +++ /dev/null @@ -1,108 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, Union - -if TYPE_CHECKING: - from ..models.path_script_input_transforms_additional_property_type_1 import PathScriptInputTransformsAdditionalPropertyType1 - from ..models.path_script_input_transforms_additional_property_type_0 import PathScriptInputTransformsAdditionalPropertyType0 - - - - - -T = TypeVar("T", bound="PathScriptInputTransforms") - - -@_attrs_define -class PathScriptInputTransforms: - """ - """ - - additional_properties: Dict[str, Union['PathScriptInputTransformsAdditionalPropertyType0', 'PathScriptInputTransformsAdditionalPropertyType1']] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.path_script_input_transforms_additional_property_type_1 import PathScriptInputTransformsAdditionalPropertyType1 - from ..models.path_script_input_transforms_additional_property_type_0 import PathScriptInputTransformsAdditionalPropertyType0 - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - - - if isinstance(prop, PathScriptInputTransformsAdditionalPropertyType0): - field_dict[prop_name] = prop.to_dict() - - else: - field_dict[prop_name] = prop.to_dict() - - - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.path_script_input_transforms_additional_property_type_1 import PathScriptInputTransformsAdditionalPropertyType1 - from ..models.path_script_input_transforms_additional_property_type_0 import PathScriptInputTransformsAdditionalPropertyType0 - d = src_dict.copy() - path_script_input_transforms = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - def _parse_additional_property(data: object) -> Union['PathScriptInputTransformsAdditionalPropertyType0', 'PathScriptInputTransformsAdditionalPropertyType1']: - try: - if not isinstance(data, dict): - raise TypeError() - additional_property_type_0 = PathScriptInputTransformsAdditionalPropertyType0.from_dict(data) - - - - return additional_property_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - additional_property_type_1 = PathScriptInputTransformsAdditionalPropertyType1.from_dict(data) - - - - return additional_property_type_1 - - additional_property = _parse_additional_property(prop_dict) - - additional_properties[prop_name] = additional_property - - path_script_input_transforms.additional_properties = additional_properties - return path_script_input_transforms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Union['PathScriptInputTransformsAdditionalPropertyType0', 'PathScriptInputTransformsAdditionalPropertyType1']: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Union['PathScriptInputTransformsAdditionalPropertyType0', 'PathScriptInputTransformsAdditionalPropertyType1']) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_0.py b/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_0.py deleted file mode 100644 index b90fa33339..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.path_script_input_transforms_additional_property_type_0_type import PathScriptInputTransformsAdditionalPropertyType0Type - - - - - - -T = TypeVar("T", bound="PathScriptInputTransformsAdditionalPropertyType0") - - -@_attrs_define -class PathScriptInputTransformsAdditionalPropertyType0: - """ - Attributes: - type (PathScriptInputTransformsAdditionalPropertyType0Type): - value (Union[Unset, Any]): - """ - - type: PathScriptInputTransformsAdditionalPropertyType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = PathScriptInputTransformsAdditionalPropertyType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - path_script_input_transforms_additional_property_type_0 = cls( - type=type, - value=value, - ) - - path_script_input_transforms_additional_property_type_0.additional_properties = d - return path_script_input_transforms_additional_property_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_0_type.py b/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_0_type.py deleted file mode 100644 index 6c8b0c212a..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class PathScriptInputTransformsAdditionalPropertyType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_1.py b/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_1.py deleted file mode 100644 index 48a9d94657..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.path_script_input_transforms_additional_property_type_1_type import PathScriptInputTransformsAdditionalPropertyType1Type - - - - - - -T = TypeVar("T", bound="PathScriptInputTransformsAdditionalPropertyType1") - - -@_attrs_define -class PathScriptInputTransformsAdditionalPropertyType1: - """ - Attributes: - expr (str): - type (PathScriptInputTransformsAdditionalPropertyType1Type): - """ - - expr: str - type: PathScriptInputTransformsAdditionalPropertyType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = PathScriptInputTransformsAdditionalPropertyType1Type(d.pop("type")) - - - - - path_script_input_transforms_additional_property_type_1 = cls( - expr=expr, - type=type, - ) - - path_script_input_transforms_additional_property_type_1.additional_properties = d - return path_script_input_transforms_additional_property_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_1_type.py b/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_1_type.py deleted file mode 100644 index 5e3451c7fd..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_script_input_transforms_additional_property_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class PathScriptInputTransformsAdditionalPropertyType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/path_script_type.py b/python-client/windmill-api/windmill_api/models/path_script_type.py deleted file mode 100644 index 0587822a2f..0000000000 --- a/python-client/windmill-api/windmill_api/models/path_script_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class PathScriptType(str, Enum): - SCRIPT = "script" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/polars_client_kwargs.py b/python-client/windmill-api/windmill_api/models/polars_client_kwargs.py deleted file mode 100644 index 3a370c6334..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_client_kwargs.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="PolarsClientKwargs") - - -@_attrs_define -class PolarsClientKwargs: - """ - Attributes: - region_name (str): - """ - - region_name: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - region_name = self.region_name - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "region_name": region_name, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - region_name = d.pop("region_name") - - polars_client_kwargs = cls( - region_name=region_name, - ) - - polars_client_kwargs.additional_properties = d - return polars_client_kwargs - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_json_body.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_json_body.py deleted file mode 100644 index 40e8950658..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_json_body.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.polars_connection_settings_json_body_s3_resource import PolarsConnectionSettingsJsonBodyS3Resource - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsJsonBody") - - -@_attrs_define -class PolarsConnectionSettingsJsonBody: - """ - Attributes: - s3_resource (Union[Unset, PolarsConnectionSettingsJsonBodyS3Resource]): - """ - - s3_resource: Union[Unset, 'PolarsConnectionSettingsJsonBodyS3Resource'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.polars_connection_settings_json_body_s3_resource import PolarsConnectionSettingsJsonBodyS3Resource - s3_resource: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.s3_resource, Unset): - s3_resource = self.s3_resource.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if s3_resource is not UNSET: - field_dict["s3_resource"] = s3_resource - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.polars_connection_settings_json_body_s3_resource import PolarsConnectionSettingsJsonBodyS3Resource - d = src_dict.copy() - _s3_resource = d.pop("s3_resource", UNSET) - s3_resource: Union[Unset, PolarsConnectionSettingsJsonBodyS3Resource] - if isinstance(_s3_resource, Unset): - s3_resource = UNSET - else: - s3_resource = PolarsConnectionSettingsJsonBodyS3Resource.from_dict(_s3_resource) - - - - - polars_connection_settings_json_body = cls( - s3_resource=s3_resource, - ) - - polars_connection_settings_json_body.additional_properties = d - return polars_connection_settings_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_json_body_s3_resource.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_json_body_s3_resource.py deleted file mode 100644 index 0f7a9aa131..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_json_body_s3_resource.py +++ /dev/null @@ -1,116 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsJsonBodyS3Resource") - - -@_attrs_define -class PolarsConnectionSettingsJsonBodyS3Resource: - """ - Attributes: - bucket (str): - region (str): - end_point (str): - use_ssl (bool): - path_style (bool): - access_key (Union[Unset, str]): - secret_key (Union[Unset, str]): - """ - - bucket: str - region: str - end_point: str - use_ssl: bool - path_style: bool - access_key: Union[Unset, str] = UNSET - secret_key: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - bucket = self.bucket - region = self.region - end_point = self.end_point - use_ssl = self.use_ssl - path_style = self.path_style - access_key = self.access_key - secret_key = self.secret_key - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "bucket": bucket, - "region": region, - "endPoint": end_point, - "useSSL": use_ssl, - "pathStyle": path_style, - }) - if access_key is not UNSET: - field_dict["accessKey"] = access_key - if secret_key is not UNSET: - field_dict["secretKey"] = secret_key - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - bucket = d.pop("bucket") - - region = d.pop("region") - - end_point = d.pop("endPoint") - - use_ssl = d.pop("useSSL") - - path_style = d.pop("pathStyle") - - access_key = d.pop("accessKey", UNSET) - - secret_key = d.pop("secretKey", UNSET) - - polars_connection_settings_json_body_s3_resource = cls( - bucket=bucket, - region=region, - end_point=end_point, - use_ssl=use_ssl, - path_style=path_style, - access_key=access_key, - secret_key=secret_key, - ) - - polars_connection_settings_json_body_s3_resource.additional_properties = d - return polars_connection_settings_json_body_s3_resource - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_response_200.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_response_200.py deleted file mode 100644 index 646ebfaf86..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_response_200.py +++ /dev/null @@ -1,119 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.polars_connection_settings_response_200_client_kwargs import PolarsConnectionSettingsResponse200ClientKwargs - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsResponse200") - - -@_attrs_define -class PolarsConnectionSettingsResponse200: - """ - Attributes: - endpoint_url (str): - use_ssl (bool): - cache_regions (bool): - client_kwargs (PolarsConnectionSettingsResponse200ClientKwargs): - key (Union[Unset, str]): - secret (Union[Unset, str]): - """ - - endpoint_url: str - use_ssl: bool - cache_regions: bool - client_kwargs: 'PolarsConnectionSettingsResponse200ClientKwargs' - key: Union[Unset, str] = UNSET - secret: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.polars_connection_settings_response_200_client_kwargs import PolarsConnectionSettingsResponse200ClientKwargs - endpoint_url = self.endpoint_url - use_ssl = self.use_ssl - cache_regions = self.cache_regions - client_kwargs = self.client_kwargs.to_dict() - - key = self.key - secret = self.secret - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "endpoint_url": endpoint_url, - "use_ssl": use_ssl, - "cache_regions": cache_regions, - "client_kwargs": client_kwargs, - }) - if key is not UNSET: - field_dict["key"] = key - if secret is not UNSET: - field_dict["secret"] = secret - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.polars_connection_settings_response_200_client_kwargs import PolarsConnectionSettingsResponse200ClientKwargs - d = src_dict.copy() - endpoint_url = d.pop("endpoint_url") - - use_ssl = d.pop("use_ssl") - - cache_regions = d.pop("cache_regions") - - client_kwargs = PolarsConnectionSettingsResponse200ClientKwargs.from_dict(d.pop("client_kwargs")) - - - - - key = d.pop("key", UNSET) - - secret = d.pop("secret", UNSET) - - polars_connection_settings_response_200 = cls( - endpoint_url=endpoint_url, - use_ssl=use_ssl, - cache_regions=cache_regions, - client_kwargs=client_kwargs, - key=key, - secret=secret, - ) - - polars_connection_settings_response_200.additional_properties = d - return polars_connection_settings_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_response_200_client_kwargs.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_response_200_client_kwargs.py deleted file mode 100644 index 2e0f034c42..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_response_200_client_kwargs.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsResponse200ClientKwargs") - - -@_attrs_define -class PolarsConnectionSettingsResponse200ClientKwargs: - """ - Attributes: - region_name (str): - """ - - region_name: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - region_name = self.region_name - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "region_name": region_name, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - region_name = d.pop("region_name") - - polars_connection_settings_response_200_client_kwargs = cls( - region_name=region_name, - ) - - polars_connection_settings_response_200_client_kwargs.additional_properties = d - return polars_connection_settings_response_200_client_kwargs - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_json_body.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_json_body.py deleted file mode 100644 index dd74e157cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsV2JsonBody") - - -@_attrs_define -class PolarsConnectionSettingsV2JsonBody: - """ - Attributes: - s3_resource_path (Union[Unset, str]): - """ - - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - s3_resource_path = d.pop("s3_resource_path", UNSET) - - polars_connection_settings_v2_json_body = cls( - s3_resource_path=s3_resource_path, - ) - - polars_connection_settings_v2_json_body.additional_properties = d - return polars_connection_settings_v2_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200.py deleted file mode 100644 index 93f00b208f..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200.py +++ /dev/null @@ -1,94 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.polars_connection_settings_v2_response_200_storage_options import PolarsConnectionSettingsV2Response200StorageOptions - from ..models.polars_connection_settings_v2_response_200s3_fs_args import PolarsConnectionSettingsV2Response200S3FsArgs - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsV2Response200") - - -@_attrs_define -class PolarsConnectionSettingsV2Response200: - """ - Attributes: - s3fs_args (PolarsConnectionSettingsV2Response200S3FsArgs): - storage_options (PolarsConnectionSettingsV2Response200StorageOptions): - """ - - s3fs_args: 'PolarsConnectionSettingsV2Response200S3FsArgs' - storage_options: 'PolarsConnectionSettingsV2Response200StorageOptions' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.polars_connection_settings_v2_response_200_storage_options import PolarsConnectionSettingsV2Response200StorageOptions - from ..models.polars_connection_settings_v2_response_200s3_fs_args import PolarsConnectionSettingsV2Response200S3FsArgs - s3fs_args = self.s3fs_args.to_dict() - - storage_options = self.storage_options.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "s3fs_args": s3fs_args, - "storage_options": storage_options, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.polars_connection_settings_v2_response_200_storage_options import PolarsConnectionSettingsV2Response200StorageOptions - from ..models.polars_connection_settings_v2_response_200s3_fs_args import PolarsConnectionSettingsV2Response200S3FsArgs - d = src_dict.copy() - s3fs_args = PolarsConnectionSettingsV2Response200S3FsArgs.from_dict(d.pop("s3fs_args")) - - - - - storage_options = PolarsConnectionSettingsV2Response200StorageOptions.from_dict(d.pop("storage_options")) - - - - - polars_connection_settings_v2_response_200 = cls( - s3fs_args=s3fs_args, - storage_options=storage_options, - ) - - polars_connection_settings_v2_response_200.additional_properties = d - return polars_connection_settings_v2_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200_storage_options.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200_storage_options.py deleted file mode 100644 index cdc2ccef03..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200_storage_options.py +++ /dev/null @@ -1,102 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsV2Response200StorageOptions") - - -@_attrs_define -class PolarsConnectionSettingsV2Response200StorageOptions: - """ - Attributes: - aws_endpoint_url (str): - aws_region (str): - aws_allow_http (str): - aws_access_key_id (Union[Unset, str]): - aws_secret_access_key (Union[Unset, str]): - """ - - aws_endpoint_url: str - aws_region: str - aws_allow_http: str - aws_access_key_id: Union[Unset, str] = UNSET - aws_secret_access_key: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - aws_endpoint_url = self.aws_endpoint_url - aws_region = self.aws_region - aws_allow_http = self.aws_allow_http - aws_access_key_id = self.aws_access_key_id - aws_secret_access_key = self.aws_secret_access_key - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "aws_endpoint_url": aws_endpoint_url, - "aws_region": aws_region, - "aws_allow_http": aws_allow_http, - }) - if aws_access_key_id is not UNSET: - field_dict["aws_access_key_id"] = aws_access_key_id - if aws_secret_access_key is not UNSET: - field_dict["aws_secret_access_key"] = aws_secret_access_key - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - aws_endpoint_url = d.pop("aws_endpoint_url") - - aws_region = d.pop("aws_region") - - aws_allow_http = d.pop("aws_allow_http") - - aws_access_key_id = d.pop("aws_access_key_id", UNSET) - - aws_secret_access_key = d.pop("aws_secret_access_key", UNSET) - - polars_connection_settings_v2_response_200_storage_options = cls( - aws_endpoint_url=aws_endpoint_url, - aws_region=aws_region, - aws_allow_http=aws_allow_http, - aws_access_key_id=aws_access_key_id, - aws_secret_access_key=aws_secret_access_key, - ) - - polars_connection_settings_v2_response_200_storage_options.additional_properties = d - return polars_connection_settings_v2_response_200_storage_options - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200s3_fs_args.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200s3_fs_args.py deleted file mode 100644 index 3a5a59bbb9..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200s3_fs_args.py +++ /dev/null @@ -1,119 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.polars_connection_settings_v2_response_200s3_fs_args_client_kwargs import PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsV2Response200S3FsArgs") - - -@_attrs_define -class PolarsConnectionSettingsV2Response200S3FsArgs: - """ - Attributes: - endpoint_url (str): - use_ssl (bool): - cache_regions (bool): - client_kwargs (PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs): - key (Union[Unset, str]): - secret (Union[Unset, str]): - """ - - endpoint_url: str - use_ssl: bool - cache_regions: bool - client_kwargs: 'PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs' - key: Union[Unset, str] = UNSET - secret: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.polars_connection_settings_v2_response_200s3_fs_args_client_kwargs import PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs - endpoint_url = self.endpoint_url - use_ssl = self.use_ssl - cache_regions = self.cache_regions - client_kwargs = self.client_kwargs.to_dict() - - key = self.key - secret = self.secret - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "endpoint_url": endpoint_url, - "use_ssl": use_ssl, - "cache_regions": cache_regions, - "client_kwargs": client_kwargs, - }) - if key is not UNSET: - field_dict["key"] = key - if secret is not UNSET: - field_dict["secret"] = secret - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.polars_connection_settings_v2_response_200s3_fs_args_client_kwargs import PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs - d = src_dict.copy() - endpoint_url = d.pop("endpoint_url") - - use_ssl = d.pop("use_ssl") - - cache_regions = d.pop("cache_regions") - - client_kwargs = PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs.from_dict(d.pop("client_kwargs")) - - - - - key = d.pop("key", UNSET) - - secret = d.pop("secret", UNSET) - - polars_connection_settings_v2_response_200s3_fs_args = cls( - endpoint_url=endpoint_url, - use_ssl=use_ssl, - cache_regions=cache_regions, - client_kwargs=client_kwargs, - key=key, - secret=secret, - ) - - polars_connection_settings_v2_response_200s3_fs_args.additional_properties = d - return polars_connection_settings_v2_response_200s3_fs_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200s3_fs_args_client_kwargs.py b/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200s3_fs_args_client_kwargs.py deleted file mode 100644 index 74ca605386..0000000000 --- a/python-client/windmill-api/windmill_api/models/polars_connection_settings_v2_response_200s3_fs_args_client_kwargs.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs") - - -@_attrs_define -class PolarsConnectionSettingsV2Response200S3FsArgsClientKwargs: - """ - Attributes: - region_name (str): - """ - - region_name: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - region_name = self.region_name - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "region_name": region_name, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - region_name = d.pop("region_name") - - polars_connection_settings_v2_response_200s3_fs_args_client_kwargs = cls( - region_name=region_name, - ) - - polars_connection_settings_v2_response_200s3_fs_args_client_kwargs.additional_properties = d - return polars_connection_settings_v2_response_200s3_fs_args_client_kwargs - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/policy.py b/python-client/windmill-api/windmill_api/models/policy.py deleted file mode 100644 index 6b29e04634..0000000000 --- a/python-client/windmill-api/windmill_api/models/policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.policy_execution_mode import PolicyExecutionMode -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.policy_triggerables import PolicyTriggerables - - - - - -T = TypeVar("T", bound="Policy") - - -@_attrs_define -class Policy: - """ - Attributes: - triggerables (Union[Unset, PolicyTriggerables]): - execution_mode (Union[Unset, PolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'PolicyTriggerables'] = UNSET - execution_mode: Union[Unset, PolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.policy_triggerables import PolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.policy_triggerables import PolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, PolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = PolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, PolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = PolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - policy.additional_properties = d - return policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/policy_execution_mode.py deleted file mode 100644 index 41bd1af77f..0000000000 --- a/python-client/windmill-api/windmill_api/models/policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class PolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/policy_triggerables.py b/python-client/windmill-api/windmill_api/models/policy_triggerables.py deleted file mode 100644 index 70eb5db824..0000000000 --- a/python-client/windmill-api/windmill_api/models/policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.policy_triggerables_additional_property import PolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="PolicyTriggerables") - - -@_attrs_define -class PolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'PolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.policy_triggerables_additional_property import PolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.policy_triggerables_additional_property import PolicyTriggerablesAdditionalProperty - d = src_dict.copy() - policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = PolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - policy_triggerables.additional_properties = additional_properties - return policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'PolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'PolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/policy_triggerables_additional_property.py deleted file mode 100644 index dfa9cae037..0000000000 --- a/python-client/windmill-api/windmill_api/models/policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="PolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class PolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - policy_triggerables_additional_property = cls( - ) - - policy_triggerables_additional_property.additional_properties = d - return policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/preview.py b/python-client/windmill-api/windmill_api/models/preview.py deleted file mode 100644 index fb01654c10..0000000000 --- a/python-client/windmill-api/windmill_api/models/preview.py +++ /dev/null @@ -1,154 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.preview_kind import PreviewKind -from typing import Dict -from ..models.preview_language import PreviewLanguage -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.preview_args import PreviewArgs - - - - - -T = TypeVar("T", bound="Preview") - - -@_attrs_define -class Preview: - """ - Attributes: - args (PreviewArgs): - content (Union[Unset, str]): - path (Union[Unset, str]): - language (Union[Unset, PreviewLanguage]): - tag (Union[Unset, str]): - kind (Union[Unset, PreviewKind]): - dedicated_worker (Union[Unset, bool]): - """ - - args: 'PreviewArgs' - content: Union[Unset, str] = UNSET - path: Union[Unset, str] = UNSET - language: Union[Unset, PreviewLanguage] = UNSET - tag: Union[Unset, str] = UNSET - kind: Union[Unset, PreviewKind] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.preview_args import PreviewArgs - args = self.args.to_dict() - - content = self.content - path = self.path - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - tag = self.tag - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - dedicated_worker = self.dedicated_worker - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "args": args, - }) - if content is not UNSET: - field_dict["content"] = content - if path is not UNSET: - field_dict["path"] = path - if language is not UNSET: - field_dict["language"] = language - if tag is not UNSET: - field_dict["tag"] = tag - if kind is not UNSET: - field_dict["kind"] = kind - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.preview_args import PreviewArgs - d = src_dict.copy() - args = PreviewArgs.from_dict(d.pop("args")) - - - - - content = d.pop("content", UNSET) - - path = d.pop("path", UNSET) - - _language = d.pop("language", UNSET) - language: Union[Unset, PreviewLanguage] - if isinstance(_language, Unset): - language = UNSET - else: - language = PreviewLanguage(_language) - - - - - tag = d.pop("tag", UNSET) - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, PreviewKind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = PreviewKind(_kind) - - - - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - preview = cls( - args=args, - content=content, - path=path, - language=language, - tag=tag, - kind=kind, - dedicated_worker=dedicated_worker, - ) - - preview.additional_properties = d - return preview - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/preview_args.py b/python-client/windmill-api/windmill_api/models/preview_args.py deleted file mode 100644 index 69dbe3ab2d..0000000000 --- a/python-client/windmill-api/windmill_api/models/preview_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="PreviewArgs") - - -@_attrs_define -class PreviewArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - preview_args = cls( - ) - - preview_args.additional_properties = d - return preview_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/preview_kind.py b/python-client/windmill-api/windmill_api/models/preview_kind.py deleted file mode 100644 index 33f45572f6..0000000000 --- a/python-client/windmill-api/windmill_api/models/preview_kind.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class PreviewKind(str, Enum): - CODE = "code" - HTTP = "http" - IDENTITY = "identity" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/preview_language.py b/python-client/windmill-api/windmill_api/models/preview_language.py deleted file mode 100644 index e65a707d4b..0000000000 --- a/python-client/windmill-api/windmill_api/models/preview_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class PreviewLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/preview_schedule_json_body.py b/python-client/windmill-api/windmill_api/models/preview_schedule_json_body.py deleted file mode 100644 index afc0f51e7e..0000000000 --- a/python-client/windmill-api/windmill_api/models/preview_schedule_json_body.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="PreviewScheduleJsonBody") - - -@_attrs_define -class PreviewScheduleJsonBody: - """ - Attributes: - schedule (str): - timezone (str): - """ - - schedule: str - timezone: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - schedule = self.schedule - timezone = self.timezone - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "schedule": schedule, - "timezone": timezone, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - preview_schedule_json_body = cls( - schedule=schedule, - timezone=timezone, - ) - - preview_schedule_json_body.additional_properties = d - return preview_schedule_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/query_hub_scripts_response_200_item.py b/python-client/windmill-api/windmill_api/models/query_hub_scripts_response_200_item.py deleted file mode 100644 index e559451ce3..0000000000 --- a/python-client/windmill-api/windmill_api/models/query_hub_scripts_response_200_item.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueryHubScriptsResponse200Item") - - -@_attrs_define -class QueryHubScriptsResponse200Item: - """ - Attributes: - ask_id (float): - id (float): - version_id (float): - summary (str): - app (str): - kind (Any): - score (float): - """ - - ask_id: float - id: float - version_id: float - summary: str - app: str - kind: Any - score: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - ask_id = self.ask_id - id = self.id - version_id = self.version_id - summary = self.summary - app = self.app - kind = self.kind - score = self.score - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "ask_id": ask_id, - "id": id, - "version_id": version_id, - "summary": summary, - "app": app, - "kind": kind, - "score": score, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - ask_id = d.pop("ask_id") - - id = d.pop("id") - - version_id = d.pop("version_id") - - summary = d.pop("summary") - - app = d.pop("app") - - kind = d.pop("kind") - - score = d.pop("score") - - query_hub_scripts_response_200_item = cls( - ask_id=ask_id, - id=id, - version_id=version_id, - summary=summary, - app=app, - kind=kind, - score=score, - ) - - query_hub_scripts_response_200_item.additional_properties = d - return query_hub_scripts_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/query_resource_types_response_200_item.py b/python-client/windmill-api/windmill_api/models/query_resource_types_response_200_item.py deleted file mode 100644 index 232d4ba432..0000000000 --- a/python-client/windmill-api/windmill_api/models/query_resource_types_response_200_item.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueryResourceTypesResponse200Item") - - -@_attrs_define -class QueryResourceTypesResponse200Item: - """ - Attributes: - name (str): - score (float): - schema (Union[Unset, Any]): - """ - - name: str - score: float - schema: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - score = self.score - schema = self.schema - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - "score": score, - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - score = d.pop("score") - - schema = d.pop("schema", UNSET) - - query_resource_types_response_200_item = cls( - name=name, - score=score, - schema=schema, - ) - - query_resource_types_response_200_item.additional_properties = d - return query_resource_types_response_200_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job.py b/python-client/windmill-api/windmill_api/models/queued_job.py deleted file mode 100644 index 3da8c49f09..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job.py +++ /dev/null @@ -1,397 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from ..models.queued_job_job_kind import QueuedJobJobKind -import datetime -from dateutil.parser import isoparse -from ..models.queued_job_language import QueuedJobLanguage -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow import QueuedJobRawFlow - from ..models.queued_job_flow_status import QueuedJobFlowStatus - from ..models.queued_job_args import QueuedJobArgs - - - - - -T = TypeVar("T", bound="QueuedJob") - - -@_attrs_define -class QueuedJob: - """ - Attributes: - id (str): - running (bool): - canceled (bool): - job_kind (QueuedJobJobKind): - permissioned_as (str): The user (u/userfoo) or group (g/groupfoo) whom - the execution of this script will be permissioned_as and by extension its DT_TOKEN. - is_flow_step (bool): - email (str): - visible_to_owner (bool): - tag (str): - workspace_id (Union[Unset, str]): - parent_job (Union[Unset, str]): - created_by (Union[Unset, str]): - created_at (Union[Unset, datetime.datetime]): - started_at (Union[Unset, datetime.datetime]): - scheduled_for (Union[Unset, datetime.datetime]): - script_path (Union[Unset, str]): - script_hash (Union[Unset, str]): - args (Union[Unset, QueuedJobArgs]): - logs (Union[Unset, str]): - raw_code (Union[Unset, str]): - canceled_by (Union[Unset, str]): - canceled_reason (Union[Unset, str]): - last_ping (Union[Unset, datetime.datetime]): - schedule_path (Union[Unset, str]): - flow_status (Union[Unset, QueuedJobFlowStatus]): - raw_flow (Union[Unset, QueuedJobRawFlow]): - language (Union[Unset, QueuedJobLanguage]): - mem_peak (Union[Unset, int]): - priority (Union[Unset, int]): - """ - - id: str - running: bool - canceled: bool - job_kind: QueuedJobJobKind - permissioned_as: str - is_flow_step: bool - email: str - visible_to_owner: bool - tag: str - workspace_id: Union[Unset, str] = UNSET - parent_job: Union[Unset, str] = UNSET - created_by: Union[Unset, str] = UNSET - created_at: Union[Unset, datetime.datetime] = UNSET - started_at: Union[Unset, datetime.datetime] = UNSET - scheduled_for: Union[Unset, datetime.datetime] = UNSET - script_path: Union[Unset, str] = UNSET - script_hash: Union[Unset, str] = UNSET - args: Union[Unset, 'QueuedJobArgs'] = UNSET - logs: Union[Unset, str] = UNSET - raw_code: Union[Unset, str] = UNSET - canceled_by: Union[Unset, str] = UNSET - canceled_reason: Union[Unset, str] = UNSET - last_ping: Union[Unset, datetime.datetime] = UNSET - schedule_path: Union[Unset, str] = UNSET - flow_status: Union[Unset, 'QueuedJobFlowStatus'] = UNSET - raw_flow: Union[Unset, 'QueuedJobRawFlow'] = UNSET - language: Union[Unset, QueuedJobLanguage] = UNSET - mem_peak: Union[Unset, int] = UNSET - priority: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow import QueuedJobRawFlow - from ..models.queued_job_flow_status import QueuedJobFlowStatus - from ..models.queued_job_args import QueuedJobArgs - id = self.id - running = self.running - canceled = self.canceled - job_kind = self.job_kind.value - - permissioned_as = self.permissioned_as - is_flow_step = self.is_flow_step - email = self.email - visible_to_owner = self.visible_to_owner - tag = self.tag - workspace_id = self.workspace_id - parent_job = self.parent_job - created_by = self.created_by - created_at: Union[Unset, str] = UNSET - if not isinstance(self.created_at, Unset): - created_at = self.created_at.isoformat() - - started_at: Union[Unset, str] = UNSET - if not isinstance(self.started_at, Unset): - started_at = self.started_at.isoformat() - - scheduled_for: Union[Unset, str] = UNSET - if not isinstance(self.scheduled_for, Unset): - scheduled_for = self.scheduled_for.isoformat() - - script_path = self.script_path - script_hash = self.script_hash - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - logs = self.logs - raw_code = self.raw_code - canceled_by = self.canceled_by - canceled_reason = self.canceled_reason - last_ping: Union[Unset, str] = UNSET - if not isinstance(self.last_ping, Unset): - last_ping = self.last_ping.isoformat() - - schedule_path = self.schedule_path - flow_status: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.flow_status, Unset): - flow_status = self.flow_status.to_dict() - - raw_flow: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.raw_flow, Unset): - raw_flow = self.raw_flow.to_dict() - - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - mem_peak = self.mem_peak - priority = self.priority - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "running": running, - "canceled": canceled, - "job_kind": job_kind, - "permissioned_as": permissioned_as, - "is_flow_step": is_flow_step, - "email": email, - "visible_to_owner": visible_to_owner, - "tag": tag, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_job is not UNSET: - field_dict["parent_job"] = parent_job - if created_by is not UNSET: - field_dict["created_by"] = created_by - if created_at is not UNSET: - field_dict["created_at"] = created_at - if started_at is not UNSET: - field_dict["started_at"] = started_at - if scheduled_for is not UNSET: - field_dict["scheduled_for"] = scheduled_for - if script_path is not UNSET: - field_dict["script_path"] = script_path - if script_hash is not UNSET: - field_dict["script_hash"] = script_hash - if args is not UNSET: - field_dict["args"] = args - if logs is not UNSET: - field_dict["logs"] = logs - if raw_code is not UNSET: - field_dict["raw_code"] = raw_code - if canceled_by is not UNSET: - field_dict["canceled_by"] = canceled_by - if canceled_reason is not UNSET: - field_dict["canceled_reason"] = canceled_reason - if last_ping is not UNSET: - field_dict["last_ping"] = last_ping - if schedule_path is not UNSET: - field_dict["schedule_path"] = schedule_path - if flow_status is not UNSET: - field_dict["flow_status"] = flow_status - if raw_flow is not UNSET: - field_dict["raw_flow"] = raw_flow - if language is not UNSET: - field_dict["language"] = language - if mem_peak is not UNSET: - field_dict["mem_peak"] = mem_peak - if priority is not UNSET: - field_dict["priority"] = priority - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow import QueuedJobRawFlow - from ..models.queued_job_flow_status import QueuedJobFlowStatus - from ..models.queued_job_args import QueuedJobArgs - d = src_dict.copy() - id = d.pop("id") - - running = d.pop("running") - - canceled = d.pop("canceled") - - job_kind = QueuedJobJobKind(d.pop("job_kind")) - - - - - permissioned_as = d.pop("permissioned_as") - - is_flow_step = d.pop("is_flow_step") - - email = d.pop("email") - - visible_to_owner = d.pop("visible_to_owner") - - tag = d.pop("tag") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_job = d.pop("parent_job", UNSET) - - created_by = d.pop("created_by", UNSET) - - _created_at = d.pop("created_at", UNSET) - created_at: Union[Unset, datetime.datetime] - if isinstance(_created_at, Unset): - created_at = UNSET - else: - created_at = isoparse(_created_at) - - - - - _started_at = d.pop("started_at", UNSET) - started_at: Union[Unset, datetime.datetime] - if isinstance(_started_at, Unset): - started_at = UNSET - else: - started_at = isoparse(_started_at) - - - - - _scheduled_for = d.pop("scheduled_for", UNSET) - scheduled_for: Union[Unset, datetime.datetime] - if isinstance(_scheduled_for, Unset): - scheduled_for = UNSET - else: - scheduled_for = isoparse(_scheduled_for) - - - - - script_path = d.pop("script_path", UNSET) - - script_hash = d.pop("script_hash", UNSET) - - _args = d.pop("args", UNSET) - args: Union[Unset, QueuedJobArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = QueuedJobArgs.from_dict(_args) - - - - - logs = d.pop("logs", UNSET) - - raw_code = d.pop("raw_code", UNSET) - - canceled_by = d.pop("canceled_by", UNSET) - - canceled_reason = d.pop("canceled_reason", UNSET) - - _last_ping = d.pop("last_ping", UNSET) - last_ping: Union[Unset, datetime.datetime] - if isinstance(_last_ping, Unset): - last_ping = UNSET - else: - last_ping = isoparse(_last_ping) - - - - - schedule_path = d.pop("schedule_path", UNSET) - - _flow_status = d.pop("flow_status", UNSET) - flow_status: Union[Unset, QueuedJobFlowStatus] - if isinstance(_flow_status, Unset): - flow_status = UNSET - else: - flow_status = QueuedJobFlowStatus.from_dict(_flow_status) - - - - - _raw_flow = d.pop("raw_flow", UNSET) - raw_flow: Union[Unset, QueuedJobRawFlow] - if isinstance(_raw_flow, Unset): - raw_flow = UNSET - else: - raw_flow = QueuedJobRawFlow.from_dict(_raw_flow) - - - - - _language = d.pop("language", UNSET) - language: Union[Unset, QueuedJobLanguage] - if isinstance(_language, Unset): - language = UNSET - else: - language = QueuedJobLanguage(_language) - - - - - mem_peak = d.pop("mem_peak", UNSET) - - priority = d.pop("priority", UNSET) - - queued_job = cls( - id=id, - running=running, - canceled=canceled, - job_kind=job_kind, - permissioned_as=permissioned_as, - is_flow_step=is_flow_step, - email=email, - visible_to_owner=visible_to_owner, - tag=tag, - workspace_id=workspace_id, - parent_job=parent_job, - created_by=created_by, - created_at=created_at, - started_at=started_at, - scheduled_for=scheduled_for, - script_path=script_path, - script_hash=script_hash, - args=args, - logs=logs, - raw_code=raw_code, - canceled_by=canceled_by, - canceled_reason=canceled_reason, - last_ping=last_ping, - schedule_path=schedule_path, - flow_status=flow_status, - raw_flow=raw_flow, - language=language, - mem_peak=mem_peak, - priority=priority, - ) - - queued_job.additional_properties = d - return queued_job - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_args.py b/python-client/windmill-api/windmill_api/models/queued_job_args.py deleted file mode 100644 index ce6f0bc002..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueuedJobArgs") - - -@_attrs_define -class QueuedJobArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - queued_job_args = cls( - ) - - queued_job_args.additional_properties = d - return queued_job_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status.py deleted file mode 100644 index f9c2fddb79..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status.py +++ /dev/null @@ -1,138 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_flow_status_retry import QueuedJobFlowStatusRetry - from ..models.queued_job_flow_status_failure_module import QueuedJobFlowStatusFailureModule - from ..models.queued_job_flow_status_modules_item import QueuedJobFlowStatusModulesItem - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatus") - - -@_attrs_define -class QueuedJobFlowStatus: - """ - Attributes: - step (int): - modules (List['QueuedJobFlowStatusModulesItem']): - failure_module (QueuedJobFlowStatusFailureModule): - retry (Union[Unset, QueuedJobFlowStatusRetry]): - """ - - step: int - modules: List['QueuedJobFlowStatusModulesItem'] - failure_module: 'QueuedJobFlowStatusFailureModule' - retry: Union[Unset, 'QueuedJobFlowStatusRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_flow_status_retry import QueuedJobFlowStatusRetry - from ..models.queued_job_flow_status_failure_module import QueuedJobFlowStatusFailureModule - from ..models.queued_job_flow_status_modules_item import QueuedJobFlowStatusModulesItem - step = self.step - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module = self.failure_module.to_dict() - - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "step": step, - "modules": modules, - "failure_module": failure_module, - }) - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_flow_status_retry import QueuedJobFlowStatusRetry - from ..models.queued_job_flow_status_failure_module import QueuedJobFlowStatusFailureModule - from ..models.queued_job_flow_status_modules_item import QueuedJobFlowStatusModulesItem - d = src_dict.copy() - step = d.pop("step") - - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = QueuedJobFlowStatusModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - failure_module = QueuedJobFlowStatusFailureModule.from_dict(d.pop("failure_module")) - - - - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, QueuedJobFlowStatusRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = QueuedJobFlowStatusRetry.from_dict(_retry) - - - - - queued_job_flow_status = cls( - step=step, - modules=modules, - failure_module=failure_module, - retry=retry, - ) - - queued_job_flow_status.additional_properties = d - return queued_job_flow_status - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module.py deleted file mode 100644 index 50d79cba3d..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module.py +++ /dev/null @@ -1,223 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..models.queued_job_flow_status_failure_module_type import QueuedJobFlowStatusFailureModuleType -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_flow_status_failure_module_branch_chosen import QueuedJobFlowStatusFailureModuleBranchChosen - from ..models.queued_job_flow_status_failure_module_iterator import QueuedJobFlowStatusFailureModuleIterator - from ..models.queued_job_flow_status_failure_module_approvers_item import QueuedJobFlowStatusFailureModuleApproversItem - from ..models.queued_job_flow_status_failure_module_branchall import QueuedJobFlowStatusFailureModuleBranchall - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusFailureModule") - - -@_attrs_define -class QueuedJobFlowStatusFailureModule: - """ - Attributes: - type (QueuedJobFlowStatusFailureModuleType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, QueuedJobFlowStatusFailureModuleIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, QueuedJobFlowStatusFailureModuleBranchChosen]): - branchall (Union[Unset, QueuedJobFlowStatusFailureModuleBranchall]): - approvers (Union[Unset, List['QueuedJobFlowStatusFailureModuleApproversItem']]): - parent_module (Union[Unset, str]): - """ - - type: QueuedJobFlowStatusFailureModuleType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'QueuedJobFlowStatusFailureModuleIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'QueuedJobFlowStatusFailureModuleBranchChosen'] = UNSET - branchall: Union[Unset, 'QueuedJobFlowStatusFailureModuleBranchall'] = UNSET - approvers: Union[Unset, List['QueuedJobFlowStatusFailureModuleApproversItem']] = UNSET - parent_module: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_flow_status_failure_module_branch_chosen import QueuedJobFlowStatusFailureModuleBranchChosen - from ..models.queued_job_flow_status_failure_module_iterator import QueuedJobFlowStatusFailureModuleIterator - from ..models.queued_job_flow_status_failure_module_approvers_item import QueuedJobFlowStatusFailureModuleApproversItem - from ..models.queued_job_flow_status_failure_module_branchall import QueuedJobFlowStatusFailureModuleBranchall - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - parent_module = self.parent_module - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - if parent_module is not UNSET: - field_dict["parent_module"] = parent_module - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_flow_status_failure_module_branch_chosen import QueuedJobFlowStatusFailureModuleBranchChosen - from ..models.queued_job_flow_status_failure_module_iterator import QueuedJobFlowStatusFailureModuleIterator - from ..models.queued_job_flow_status_failure_module_approvers_item import QueuedJobFlowStatusFailureModuleApproversItem - from ..models.queued_job_flow_status_failure_module_branchall import QueuedJobFlowStatusFailureModuleBranchall - d = src_dict.copy() - type = QueuedJobFlowStatusFailureModuleType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, QueuedJobFlowStatusFailureModuleIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = QueuedJobFlowStatusFailureModuleIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, QueuedJobFlowStatusFailureModuleBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = QueuedJobFlowStatusFailureModuleBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, QueuedJobFlowStatusFailureModuleBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = QueuedJobFlowStatusFailureModuleBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = QueuedJobFlowStatusFailureModuleApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - parent_module = d.pop("parent_module", UNSET) - - queued_job_flow_status_failure_module = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - parent_module=parent_module, - ) - - queued_job_flow_status_failure_module.additional_properties = d - return queued_job_flow_status_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_approvers_item.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_approvers_item.py deleted file mode 100644 index 06bcc06fc8..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusFailureModuleApproversItem") - - -@_attrs_define -class QueuedJobFlowStatusFailureModuleApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - queued_job_flow_status_failure_module_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - queued_job_flow_status_failure_module_approvers_item.additional_properties = d - return queued_job_flow_status_failure_module_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branch_chosen.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branch_chosen.py deleted file mode 100644 index 079876ba4c..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.queued_job_flow_status_failure_module_branch_chosen_type import QueuedJobFlowStatusFailureModuleBranchChosenType -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusFailureModuleBranchChosen") - - -@_attrs_define -class QueuedJobFlowStatusFailureModuleBranchChosen: - """ - Attributes: - type (QueuedJobFlowStatusFailureModuleBranchChosenType): - branch (Union[Unset, int]): - """ - - type: QueuedJobFlowStatusFailureModuleBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = QueuedJobFlowStatusFailureModuleBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - queued_job_flow_status_failure_module_branch_chosen = cls( - type=type, - branch=branch, - ) - - queued_job_flow_status_failure_module_branch_chosen.additional_properties = d - return queued_job_flow_status_failure_module_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branch_chosen_type.py deleted file mode 100644 index 84fd3c4120..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class QueuedJobFlowStatusFailureModuleBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branchall.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branchall.py deleted file mode 100644 index 1770778358..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusFailureModuleBranchall") - - -@_attrs_define -class QueuedJobFlowStatusFailureModuleBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - queued_job_flow_status_failure_module_branchall = cls( - branch=branch, - len_=len_, - ) - - queued_job_flow_status_failure_module_branchall.additional_properties = d - return queued_job_flow_status_failure_module_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_iterator.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_iterator.py deleted file mode 100644 index 9aa2d0fdb8..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusFailureModuleIterator") - - -@_attrs_define -class QueuedJobFlowStatusFailureModuleIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - queued_job_flow_status_failure_module_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - queued_job_flow_status_failure_module_iterator.additional_properties = d - return queued_job_flow_status_failure_module_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_type.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_type.py deleted file mode 100644 index a82ad1cc79..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_failure_module_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class QueuedJobFlowStatusFailureModuleType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item.py deleted file mode 100644 index ce00a7e1ae..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item.py +++ /dev/null @@ -1,215 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.queued_job_flow_status_modules_item_type import QueuedJobFlowStatusModulesItemType -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_flow_status_modules_item_iterator import QueuedJobFlowStatusModulesItemIterator - from ..models.queued_job_flow_status_modules_item_approvers_item import QueuedJobFlowStatusModulesItemApproversItem - from ..models.queued_job_flow_status_modules_item_branch_chosen import QueuedJobFlowStatusModulesItemBranchChosen - from ..models.queued_job_flow_status_modules_item_branchall import QueuedJobFlowStatusModulesItemBranchall - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusModulesItem") - - -@_attrs_define -class QueuedJobFlowStatusModulesItem: - """ - Attributes: - type (QueuedJobFlowStatusModulesItemType): - id (Union[Unset, str]): - job (Union[Unset, str]): - count (Union[Unset, int]): - iterator (Union[Unset, QueuedJobFlowStatusModulesItemIterator]): - flow_jobs (Union[Unset, List[str]]): - branch_chosen (Union[Unset, QueuedJobFlowStatusModulesItemBranchChosen]): - branchall (Union[Unset, QueuedJobFlowStatusModulesItemBranchall]): - approvers (Union[Unset, List['QueuedJobFlowStatusModulesItemApproversItem']]): - """ - - type: QueuedJobFlowStatusModulesItemType - id: Union[Unset, str] = UNSET - job: Union[Unset, str] = UNSET - count: Union[Unset, int] = UNSET - iterator: Union[Unset, 'QueuedJobFlowStatusModulesItemIterator'] = UNSET - flow_jobs: Union[Unset, List[str]] = UNSET - branch_chosen: Union[Unset, 'QueuedJobFlowStatusModulesItemBranchChosen'] = UNSET - branchall: Union[Unset, 'QueuedJobFlowStatusModulesItemBranchall'] = UNSET - approvers: Union[Unset, List['QueuedJobFlowStatusModulesItemApproversItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_flow_status_modules_item_iterator import QueuedJobFlowStatusModulesItemIterator - from ..models.queued_job_flow_status_modules_item_approvers_item import QueuedJobFlowStatusModulesItemApproversItem - from ..models.queued_job_flow_status_modules_item_branch_chosen import QueuedJobFlowStatusModulesItemBranchChosen - from ..models.queued_job_flow_status_modules_item_branchall import QueuedJobFlowStatusModulesItemBranchall - type = self.type.value - - id = self.id - job = self.job - count = self.count - iterator: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.iterator, Unset): - iterator = self.iterator.to_dict() - - flow_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.flow_jobs, Unset): - flow_jobs = self.flow_jobs - - - - - branch_chosen: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branch_chosen, Unset): - branch_chosen = self.branch_chosen.to_dict() - - branchall: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.branchall, Unset): - branchall = self.branchall.to_dict() - - approvers: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.approvers, Unset): - approvers = [] - for approvers_item_data in self.approvers: - approvers_item = approvers_item_data.to_dict() - - approvers.append(approvers_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if id is not UNSET: - field_dict["id"] = id - if job is not UNSET: - field_dict["job"] = job - if count is not UNSET: - field_dict["count"] = count - if iterator is not UNSET: - field_dict["iterator"] = iterator - if flow_jobs is not UNSET: - field_dict["flow_jobs"] = flow_jobs - if branch_chosen is not UNSET: - field_dict["branch_chosen"] = branch_chosen - if branchall is not UNSET: - field_dict["branchall"] = branchall - if approvers is not UNSET: - field_dict["approvers"] = approvers - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_flow_status_modules_item_iterator import QueuedJobFlowStatusModulesItemIterator - from ..models.queued_job_flow_status_modules_item_approvers_item import QueuedJobFlowStatusModulesItemApproversItem - from ..models.queued_job_flow_status_modules_item_branch_chosen import QueuedJobFlowStatusModulesItemBranchChosen - from ..models.queued_job_flow_status_modules_item_branchall import QueuedJobFlowStatusModulesItemBranchall - d = src_dict.copy() - type = QueuedJobFlowStatusModulesItemType(d.pop("type")) - - - - - id = d.pop("id", UNSET) - - job = d.pop("job", UNSET) - - count = d.pop("count", UNSET) - - _iterator = d.pop("iterator", UNSET) - iterator: Union[Unset, QueuedJobFlowStatusModulesItemIterator] - if isinstance(_iterator, Unset): - iterator = UNSET - else: - iterator = QueuedJobFlowStatusModulesItemIterator.from_dict(_iterator) - - - - - flow_jobs = cast(List[str], d.pop("flow_jobs", UNSET)) - - - _branch_chosen = d.pop("branch_chosen", UNSET) - branch_chosen: Union[Unset, QueuedJobFlowStatusModulesItemBranchChosen] - if isinstance(_branch_chosen, Unset): - branch_chosen = UNSET - else: - branch_chosen = QueuedJobFlowStatusModulesItemBranchChosen.from_dict(_branch_chosen) - - - - - _branchall = d.pop("branchall", UNSET) - branchall: Union[Unset, QueuedJobFlowStatusModulesItemBranchall] - if isinstance(_branchall, Unset): - branchall = UNSET - else: - branchall = QueuedJobFlowStatusModulesItemBranchall.from_dict(_branchall) - - - - - approvers = [] - _approvers = d.pop("approvers", UNSET) - for approvers_item_data in (_approvers or []): - approvers_item = QueuedJobFlowStatusModulesItemApproversItem.from_dict(approvers_item_data) - - - - approvers.append(approvers_item) - - - queued_job_flow_status_modules_item = cls( - type=type, - id=id, - job=job, - count=count, - iterator=iterator, - flow_jobs=flow_jobs, - branch_chosen=branch_chosen, - branchall=branchall, - approvers=approvers, - ) - - queued_job_flow_status_modules_item.additional_properties = d - return queued_job_flow_status_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_approvers_item.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_approvers_item.py deleted file mode 100644 index 7407b9d44e..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_approvers_item.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusModulesItemApproversItem") - - -@_attrs_define -class QueuedJobFlowStatusModulesItemApproversItem: - """ - Attributes: - resume_id (int): - approver (str): - """ - - resume_id: int - approver: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - resume_id = self.resume_id - approver = self.approver - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "resume_id": resume_id, - "approver": approver, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_id = d.pop("resume_id") - - approver = d.pop("approver") - - queued_job_flow_status_modules_item_approvers_item = cls( - resume_id=resume_id, - approver=approver, - ) - - queued_job_flow_status_modules_item_approvers_item.additional_properties = d - return queued_job_flow_status_modules_item_approvers_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branch_chosen.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branch_chosen.py deleted file mode 100644 index af5b7d570f..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branch_chosen.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.queued_job_flow_status_modules_item_branch_chosen_type import QueuedJobFlowStatusModulesItemBranchChosenType - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusModulesItemBranchChosen") - - -@_attrs_define -class QueuedJobFlowStatusModulesItemBranchChosen: - """ - Attributes: - type (QueuedJobFlowStatusModulesItemBranchChosenType): - branch (Union[Unset, int]): - """ - - type: QueuedJobFlowStatusModulesItemBranchChosenType - branch: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - branch = self.branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if branch is not UNSET: - field_dict["branch"] = branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = QueuedJobFlowStatusModulesItemBranchChosenType(d.pop("type")) - - - - - branch = d.pop("branch", UNSET) - - queued_job_flow_status_modules_item_branch_chosen = cls( - type=type, - branch=branch, - ) - - queued_job_flow_status_modules_item_branch_chosen.additional_properties = d - return queued_job_flow_status_modules_item_branch_chosen - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branch_chosen_type.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branch_chosen_type.py deleted file mode 100644 index 123a6247f1..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branch_chosen_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class QueuedJobFlowStatusModulesItemBranchChosenType(str, Enum): - BRANCH = "branch" - DEFAULT = "default" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branchall.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branchall.py deleted file mode 100644 index 8347b41e07..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_branchall.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusModulesItemBranchall") - - -@_attrs_define -class QueuedJobFlowStatusModulesItemBranchall: - """ - Attributes: - branch (int): - len_ (int): - """ - - branch: int - len_: int - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - branch = self.branch - len_ = self.len_ - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "branch": branch, - "len": len_, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - branch = d.pop("branch") - - len_ = d.pop("len") - - queued_job_flow_status_modules_item_branchall = cls( - branch=branch, - len_=len_, - ) - - queued_job_flow_status_modules_item_branchall.additional_properties = d - return queued_job_flow_status_modules_item_branchall - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_iterator.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_iterator.py deleted file mode 100644 index f3d3c7d48a..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_iterator.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusModulesItemIterator") - - -@_attrs_define -class QueuedJobFlowStatusModulesItemIterator: - """ - Attributes: - index (Union[Unset, int]): - itered (Union[Unset, List[Any]]): - args (Union[Unset, Any]): - """ - - index: Union[Unset, int] = UNSET - itered: Union[Unset, List[Any]] = UNSET - args: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - index = self.index - itered: Union[Unset, List[Any]] = UNSET - if not isinstance(self.itered, Unset): - itered = self.itered - - - - - args = self.args - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if index is not UNSET: - field_dict["index"] = index - if itered is not UNSET: - field_dict["itered"] = itered - if args is not UNSET: - field_dict["args"] = args - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - index = d.pop("index", UNSET) - - itered = cast(List[Any], d.pop("itered", UNSET)) - - - args = d.pop("args", UNSET) - - queued_job_flow_status_modules_item_iterator = cls( - index=index, - itered=itered, - args=args, - ) - - queued_job_flow_status_modules_item_iterator.additional_properties = d - return queued_job_flow_status_modules_item_iterator - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_type.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_type.py deleted file mode 100644 index 2193dd9289..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_modules_item_type.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - -class QueuedJobFlowStatusModulesItemType(str, Enum): - FAILURE = "Failure" - INPROGRESS = "InProgress" - SUCCESS = "Success" - WAITINGFOREVENTS = "WaitingForEvents" - WAITINGFOREXECUTOR = "WaitingForExecutor" - WAITINGFORPRIORSTEPS = "WaitingForPriorSteps" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_retry.py b/python-client/windmill-api/windmill_api/models/queued_job_flow_status_retry.py deleted file mode 100644 index 540f1eb79b..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_flow_status_retry.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="QueuedJobFlowStatusRetry") - - -@_attrs_define -class QueuedJobFlowStatusRetry: - """ - Attributes: - fail_count (Union[Unset, int]): - failed_jobs (Union[Unset, List[str]]): - """ - - fail_count: Union[Unset, int] = UNSET - failed_jobs: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - fail_count = self.fail_count - failed_jobs: Union[Unset, List[str]] = UNSET - if not isinstance(self.failed_jobs, Unset): - failed_jobs = self.failed_jobs - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if fail_count is not UNSET: - field_dict["fail_count"] = fail_count - if failed_jobs is not UNSET: - field_dict["failed_jobs"] = failed_jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - fail_count = d.pop("fail_count", UNSET) - - failed_jobs = cast(List[str], d.pop("failed_jobs", UNSET)) - - - queued_job_flow_status_retry = cls( - fail_count=fail_count, - failed_jobs=failed_jobs, - ) - - queued_job_flow_status_retry.additional_properties = d - return queued_job_flow_status_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_job_kind.py b/python-client/windmill-api/windmill_api/models/queued_job_job_kind.py deleted file mode 100644 index 6f5e4b665a..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_job_kind.py +++ /dev/null @@ -1,17 +0,0 @@ -from enum import Enum - -class QueuedJobJobKind(str, Enum): - APPDEPENDENCIES = "appdependencies" - DEPENDENCIES = "dependencies" - DEPLOYMENTCALLBACK = "deploymentcallback" - FLOW = "flow" - FLOWDEPENDENCIES = "flowdependencies" - FLOWPREVIEW = "flowpreview" - IDENTITY = "identity" - PREVIEW = "preview" - SCRIPT = "script" - SCRIPT_HUB = "script_hub" - SINGLESCRIPTFLOW = "singlescriptflow" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_language.py b/python-client/windmill-api/windmill_api/models/queued_job_language.py deleted file mode 100644 index a3ca0ecee6..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class QueuedJobLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow.py deleted file mode 100644 index 1bbe9214c2..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_modules_item import QueuedJobRawFlowModulesItem - from ..models.queued_job_raw_flow_failure_module import QueuedJobRawFlowFailureModule - - - - - -T = TypeVar("T", bound="QueuedJobRawFlow") - - -@_attrs_define -class QueuedJobRawFlow: - """ - Attributes: - modules (List['QueuedJobRawFlowModulesItem']): - failure_module (Union[Unset, QueuedJobRawFlowFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['QueuedJobRawFlowModulesItem'] - failure_module: Union[Unset, 'QueuedJobRawFlowFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_modules_item import QueuedJobRawFlowModulesItem - from ..models.queued_job_raw_flow_failure_module import QueuedJobRawFlowFailureModule - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_modules_item import QueuedJobRawFlowModulesItem - from ..models.queued_job_raw_flow_failure_module import QueuedJobRawFlowFailureModule - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = QueuedJobRawFlowModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, QueuedJobRawFlowFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = QueuedJobRawFlowFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - queued_job_raw_flow = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - queued_job_raw_flow.additional_properties = d - return queued_job_raw_flow - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module.py deleted file mode 100644 index eca0fced0d..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_failure_module_stop_after_if import QueuedJobRawFlowFailureModuleStopAfterIf - from ..models.queued_job_raw_flow_failure_module_mock import QueuedJobRawFlowFailureModuleMock - from ..models.queued_job_raw_flow_failure_module_sleep_type_1 import QueuedJobRawFlowFailureModuleSleepType1 - from ..models.queued_job_raw_flow_failure_module_suspend import QueuedJobRawFlowFailureModuleSuspend - from ..models.queued_job_raw_flow_failure_module_sleep_type_0 import QueuedJobRawFlowFailureModuleSleepType0 - from ..models.queued_job_raw_flow_failure_module_retry import QueuedJobRawFlowFailureModuleRetry - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModule") - - -@_attrs_define -class QueuedJobRawFlowFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, QueuedJobRawFlowFailureModuleStopAfterIf]): - sleep (Union['QueuedJobRawFlowFailureModuleSleepType0', 'QueuedJobRawFlowFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, QueuedJobRawFlowFailureModuleMock]): - suspend (Union[Unset, QueuedJobRawFlowFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, QueuedJobRawFlowFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'QueuedJobRawFlowFailureModuleStopAfterIf'] = UNSET - sleep: Union['QueuedJobRawFlowFailureModuleSleepType0', 'QueuedJobRawFlowFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'QueuedJobRawFlowFailureModuleMock'] = UNSET - suspend: Union[Unset, 'QueuedJobRawFlowFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'QueuedJobRawFlowFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_failure_module_stop_after_if import QueuedJobRawFlowFailureModuleStopAfterIf - from ..models.queued_job_raw_flow_failure_module_mock import QueuedJobRawFlowFailureModuleMock - from ..models.queued_job_raw_flow_failure_module_sleep_type_1 import QueuedJobRawFlowFailureModuleSleepType1 - from ..models.queued_job_raw_flow_failure_module_suspend import QueuedJobRawFlowFailureModuleSuspend - from ..models.queued_job_raw_flow_failure_module_sleep_type_0 import QueuedJobRawFlowFailureModuleSleepType0 - from ..models.queued_job_raw_flow_failure_module_retry import QueuedJobRawFlowFailureModuleRetry - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, QueuedJobRawFlowFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_failure_module_stop_after_if import QueuedJobRawFlowFailureModuleStopAfterIf - from ..models.queued_job_raw_flow_failure_module_mock import QueuedJobRawFlowFailureModuleMock - from ..models.queued_job_raw_flow_failure_module_sleep_type_1 import QueuedJobRawFlowFailureModuleSleepType1 - from ..models.queued_job_raw_flow_failure_module_suspend import QueuedJobRawFlowFailureModuleSuspend - from ..models.queued_job_raw_flow_failure_module_sleep_type_0 import QueuedJobRawFlowFailureModuleSleepType0 - from ..models.queued_job_raw_flow_failure_module_retry import QueuedJobRawFlowFailureModuleRetry - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, QueuedJobRawFlowFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = QueuedJobRawFlowFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['QueuedJobRawFlowFailureModuleSleepType0', 'QueuedJobRawFlowFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, QueuedJobRawFlowFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = QueuedJobRawFlowFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, QueuedJobRawFlowFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = QueuedJobRawFlowFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, QueuedJobRawFlowFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = QueuedJobRawFlowFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, QueuedJobRawFlowFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = QueuedJobRawFlowFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, QueuedJobRawFlowFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = QueuedJobRawFlowFailureModuleRetry.from_dict(_retry) - - - - - queued_job_raw_flow_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - queued_job_raw_flow_failure_module.additional_properties = d - return queued_job_raw_flow_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_mock.py deleted file mode 100644 index 875cfbc68b..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleMock") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - queued_job_raw_flow_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - queued_job_raw_flow_failure_module_mock.additional_properties = d - return queued_job_raw_flow_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry.py deleted file mode 100644 index 5edd6d9e02..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_failure_module_retry_exponential import QueuedJobRawFlowFailureModuleRetryExponential - from ..models.queued_job_raw_flow_failure_module_retry_constant import QueuedJobRawFlowFailureModuleRetryConstant - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleRetry") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, QueuedJobRawFlowFailureModuleRetryConstant]): - exponential (Union[Unset, QueuedJobRawFlowFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'QueuedJobRawFlowFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'QueuedJobRawFlowFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_failure_module_retry_exponential import QueuedJobRawFlowFailureModuleRetryExponential - from ..models.queued_job_raw_flow_failure_module_retry_constant import QueuedJobRawFlowFailureModuleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_failure_module_retry_exponential import QueuedJobRawFlowFailureModuleRetryExponential - from ..models.queued_job_raw_flow_failure_module_retry_constant import QueuedJobRawFlowFailureModuleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, QueuedJobRawFlowFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = QueuedJobRawFlowFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, QueuedJobRawFlowFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = QueuedJobRawFlowFailureModuleRetryExponential.from_dict(_exponential) - - - - - queued_job_raw_flow_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - queued_job_raw_flow_failure_module_retry.additional_properties = d - return queued_job_raw_flow_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry_constant.py deleted file mode 100644 index e43c999f74..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleRetryConstant") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - queued_job_raw_flow_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - queued_job_raw_flow_failure_module_retry_constant.additional_properties = d - return queued_job_raw_flow_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry_exponential.py deleted file mode 100644 index 07f914ed54..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleRetryExponential") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - queued_job_raw_flow_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - queued_job_raw_flow_failure_module_retry_exponential.additional_properties = d - return queued_job_raw_flow_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_0.py deleted file mode 100644 index 50c050eb53..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.queued_job_raw_flow_failure_module_sleep_type_0_type import QueuedJobRawFlowFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleSleepType0") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleSleepType0: - """ - Attributes: - type (QueuedJobRawFlowFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: QueuedJobRawFlowFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = QueuedJobRawFlowFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - queued_job_raw_flow_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - queued_job_raw_flow_failure_module_sleep_type_0.additional_properties = d - return queued_job_raw_flow_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_0_type.py deleted file mode 100644 index 7702f53415..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_1.py deleted file mode 100644 index 00bd36fd24..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.queued_job_raw_flow_failure_module_sleep_type_1_type import QueuedJobRawFlowFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleSleepType1") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (QueuedJobRawFlowFailureModuleSleepType1Type): - """ - - expr: str - type: QueuedJobRawFlowFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = QueuedJobRawFlowFailureModuleSleepType1Type(d.pop("type")) - - - - - queued_job_raw_flow_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - queued_job_raw_flow_failure_module_sleep_type_1.additional_properties = d - return queued_job_raw_flow_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_1_type.py deleted file mode 100644 index 892def2f57..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_stop_after_if.py deleted file mode 100644 index e98cd5fb9b..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleStopAfterIf") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - queued_job_raw_flow_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - queued_job_raw_flow_failure_module_stop_after_if.additional_properties = d - return queued_job_raw_flow_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend.py deleted file mode 100644 index f526094e48..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0 import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1 import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.queued_job_raw_flow_failure_module_suspend_resume_form import QueuedJobRawFlowFailureModuleSuspendResumeForm - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleSuspend") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, QueuedJobRawFlowFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0', - 'QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'QueuedJobRawFlowFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0 import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1 import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.queued_job_raw_flow_failure_module_suspend_resume_form import QueuedJobRawFlowFailureModuleSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0 import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0 - from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1 import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1 - from ..models.queued_job_raw_flow_failure_module_suspend_resume_form import QueuedJobRawFlowFailureModuleSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, QueuedJobRawFlowFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = QueuedJobRawFlowFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0', 'QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - queued_job_raw_flow_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - queued_job_raw_flow_failure_module_suspend.additional_properties = d - return queued_job_raw_flow_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_resume_form.py deleted file mode 100644 index 74788b5747..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_failure_module_suspend_resume_form_schema import QueuedJobRawFlowFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleSuspendResumeForm") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, QueuedJobRawFlowFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'QueuedJobRawFlowFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_failure_module_suspend_resume_form_schema import QueuedJobRawFlowFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_failure_module_suspend_resume_form_schema import QueuedJobRawFlowFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, QueuedJobRawFlowFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = QueuedJobRawFlowFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - queued_job_raw_flow_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - queued_job_raw_flow_failure_module_suspend_resume_form.additional_properties = d - return queued_job_raw_flow_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index b45e433e1d..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - queued_job_raw_flow_failure_module_suspend_resume_form_schema = cls( - ) - - queued_job_raw_flow_failure_module_suspend_resume_form_schema.additional_properties = d - return queued_job_raw_flow_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 9cad73256d..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index 672d2ec161..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index 584362ea32..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type import QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 2772e3ebcf..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item.py deleted file mode 100644 index c1cc1cc300..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item.py +++ /dev/null @@ -1,272 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_modules_item_mock import QueuedJobRawFlowModulesItemMock - from ..models.queued_job_raw_flow_modules_item_suspend import QueuedJobRawFlowModulesItemSuspend - from ..models.queued_job_raw_flow_modules_item_sleep_type_1 import QueuedJobRawFlowModulesItemSleepType1 - from ..models.queued_job_raw_flow_modules_item_sleep_type_0 import QueuedJobRawFlowModulesItemSleepType0 - from ..models.queued_job_raw_flow_modules_item_stop_after_if import QueuedJobRawFlowModulesItemStopAfterIf - from ..models.queued_job_raw_flow_modules_item_retry import QueuedJobRawFlowModulesItemRetry - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItem") - - -@_attrs_define -class QueuedJobRawFlowModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, QueuedJobRawFlowModulesItemStopAfterIf]): - sleep (Union['QueuedJobRawFlowModulesItemSleepType0', 'QueuedJobRawFlowModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, QueuedJobRawFlowModulesItemMock]): - suspend (Union[Unset, QueuedJobRawFlowModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, QueuedJobRawFlowModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'QueuedJobRawFlowModulesItemStopAfterIf'] = UNSET - sleep: Union['QueuedJobRawFlowModulesItemSleepType0', 'QueuedJobRawFlowModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'QueuedJobRawFlowModulesItemMock'] = UNSET - suspend: Union[Unset, 'QueuedJobRawFlowModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'QueuedJobRawFlowModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_modules_item_mock import QueuedJobRawFlowModulesItemMock - from ..models.queued_job_raw_flow_modules_item_suspend import QueuedJobRawFlowModulesItemSuspend - from ..models.queued_job_raw_flow_modules_item_sleep_type_1 import QueuedJobRawFlowModulesItemSleepType1 - from ..models.queued_job_raw_flow_modules_item_sleep_type_0 import QueuedJobRawFlowModulesItemSleepType0 - from ..models.queued_job_raw_flow_modules_item_stop_after_if import QueuedJobRawFlowModulesItemStopAfterIf - from ..models.queued_job_raw_flow_modules_item_retry import QueuedJobRawFlowModulesItemRetry - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, QueuedJobRawFlowModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_modules_item_mock import QueuedJobRawFlowModulesItemMock - from ..models.queued_job_raw_flow_modules_item_suspend import QueuedJobRawFlowModulesItemSuspend - from ..models.queued_job_raw_flow_modules_item_sleep_type_1 import QueuedJobRawFlowModulesItemSleepType1 - from ..models.queued_job_raw_flow_modules_item_sleep_type_0 import QueuedJobRawFlowModulesItemSleepType0 - from ..models.queued_job_raw_flow_modules_item_stop_after_if import QueuedJobRawFlowModulesItemStopAfterIf - from ..models.queued_job_raw_flow_modules_item_retry import QueuedJobRawFlowModulesItemRetry - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, QueuedJobRawFlowModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = QueuedJobRawFlowModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['QueuedJobRawFlowModulesItemSleepType0', 'QueuedJobRawFlowModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, QueuedJobRawFlowModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = QueuedJobRawFlowModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, QueuedJobRawFlowModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = QueuedJobRawFlowModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, QueuedJobRawFlowModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = QueuedJobRawFlowModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, QueuedJobRawFlowModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = QueuedJobRawFlowModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, QueuedJobRawFlowModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = QueuedJobRawFlowModulesItemRetry.from_dict(_retry) - - - - - queued_job_raw_flow_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - queued_job_raw_flow_modules_item.additional_properties = d - return queued_job_raw_flow_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_mock.py deleted file mode 100644 index ec4c7e6876..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemMock") - - -@_attrs_define -class QueuedJobRawFlowModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - queued_job_raw_flow_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - queued_job_raw_flow_modules_item_mock.additional_properties = d - return queued_job_raw_flow_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry.py deleted file mode 100644 index 7a0ab6f6d5..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_modules_item_retry_exponential import QueuedJobRawFlowModulesItemRetryExponential - from ..models.queued_job_raw_flow_modules_item_retry_constant import QueuedJobRawFlowModulesItemRetryConstant - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemRetry") - - -@_attrs_define -class QueuedJobRawFlowModulesItemRetry: - """ - Attributes: - constant (Union[Unset, QueuedJobRawFlowModulesItemRetryConstant]): - exponential (Union[Unset, QueuedJobRawFlowModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'QueuedJobRawFlowModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'QueuedJobRawFlowModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_modules_item_retry_exponential import QueuedJobRawFlowModulesItemRetryExponential - from ..models.queued_job_raw_flow_modules_item_retry_constant import QueuedJobRawFlowModulesItemRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_modules_item_retry_exponential import QueuedJobRawFlowModulesItemRetryExponential - from ..models.queued_job_raw_flow_modules_item_retry_constant import QueuedJobRawFlowModulesItemRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, QueuedJobRawFlowModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = QueuedJobRawFlowModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, QueuedJobRawFlowModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = QueuedJobRawFlowModulesItemRetryExponential.from_dict(_exponential) - - - - - queued_job_raw_flow_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - queued_job_raw_flow_modules_item_retry.additional_properties = d - return queued_job_raw_flow_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry_constant.py deleted file mode 100644 index 18392a7c9f..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemRetryConstant") - - -@_attrs_define -class QueuedJobRawFlowModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - queued_job_raw_flow_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - queued_job_raw_flow_modules_item_retry_constant.additional_properties = d - return queued_job_raw_flow_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry_exponential.py deleted file mode 100644 index 7ef426be14..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemRetryExponential") - - -@_attrs_define -class QueuedJobRawFlowModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - queued_job_raw_flow_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - queued_job_raw_flow_modules_item_retry_exponential.additional_properties = d - return queued_job_raw_flow_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_0.py deleted file mode 100644 index 2e847f1553..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.queued_job_raw_flow_modules_item_sleep_type_0_type import QueuedJobRawFlowModulesItemSleepType0Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemSleepType0") - - -@_attrs_define -class QueuedJobRawFlowModulesItemSleepType0: - """ - Attributes: - type (QueuedJobRawFlowModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: QueuedJobRawFlowModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = QueuedJobRawFlowModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - queued_job_raw_flow_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - queued_job_raw_flow_modules_item_sleep_type_0.additional_properties = d - return queued_job_raw_flow_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_0_type.py deleted file mode 100644 index 155dc3ef1b..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_1.py deleted file mode 100644 index 4ef7a36d9f..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.queued_job_raw_flow_modules_item_sleep_type_1_type import QueuedJobRawFlowModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemSleepType1") - - -@_attrs_define -class QueuedJobRawFlowModulesItemSleepType1: - """ - Attributes: - expr (str): - type (QueuedJobRawFlowModulesItemSleepType1Type): - """ - - expr: str - type: QueuedJobRawFlowModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = QueuedJobRawFlowModulesItemSleepType1Type(d.pop("type")) - - - - - queued_job_raw_flow_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - queued_job_raw_flow_modules_item_sleep_type_1.additional_properties = d - return queued_job_raw_flow_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_1_type.py deleted file mode 100644 index ceeb587f7c..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_stop_after_if.py deleted file mode 100644 index 4cdcfc1c76..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemStopAfterIf") - - -@_attrs_define -class QueuedJobRawFlowModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - queued_job_raw_flow_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - queued_job_raw_flow_modules_item_stop_after_if.additional_properties = d - return queued_job_raw_flow_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend.py deleted file mode 100644 index 8b4329018d..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0 import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1 import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.queued_job_raw_flow_modules_item_suspend_resume_form import QueuedJobRawFlowModulesItemSuspendResumeForm - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemSuspend") - - -@_attrs_define -class QueuedJobRawFlowModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, QueuedJobRawFlowModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0', - 'QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'QueuedJobRawFlowModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0', 'QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0 import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1 import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.queued_job_raw_flow_modules_item_suspend_resume_form import QueuedJobRawFlowModulesItemSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0 import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0 - from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1 import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1 - from ..models.queued_job_raw_flow_modules_item_suspend_resume_form import QueuedJobRawFlowModulesItemSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, QueuedJobRawFlowModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = QueuedJobRawFlowModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0', 'QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - queued_job_raw_flow_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - queued_job_raw_flow_modules_item_suspend.additional_properties = d - return queued_job_raw_flow_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_resume_form.py deleted file mode 100644 index ba89ec4c4b..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.queued_job_raw_flow_modules_item_suspend_resume_form_schema import QueuedJobRawFlowModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemSuspendResumeForm") - - -@_attrs_define -class QueuedJobRawFlowModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, QueuedJobRawFlowModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'QueuedJobRawFlowModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.queued_job_raw_flow_modules_item_suspend_resume_form_schema import QueuedJobRawFlowModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.queued_job_raw_flow_modules_item_suspend_resume_form_schema import QueuedJobRawFlowModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, QueuedJobRawFlowModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = QueuedJobRawFlowModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - queued_job_raw_flow_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - queued_job_raw_flow_modules_item_suspend_resume_form.additional_properties = d - return queued_job_raw_flow_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index 8864432ddb..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class QueuedJobRawFlowModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - queued_job_raw_flow_modules_item_suspend_resume_form_schema = cls( - ) - - queued_job_raw_flow_modules_item_suspend_resume_form_schema.additional_properties = d - return queued_job_raw_flow_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 1b7a5c65ca..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index a054c4d615..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 2d6e7a43ab..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type import QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index c73cf27b01..0000000000 --- a/python-client/windmill-api/windmill_api/models/queued_job_raw_flow_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class QueuedJobRawFlowModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/raw_script.py b/python-client/windmill-api/windmill_api/models/raw_script.py deleted file mode 100644 index 6974757773..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script.py +++ /dev/null @@ -1,153 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.raw_script_language import RawScriptLanguage -from typing import Dict -from ..types import UNSET, Unset -from ..models.raw_script_type import RawScriptType - -if TYPE_CHECKING: - from ..models.raw_script_input_transforms import RawScriptInputTransforms - - - - - -T = TypeVar("T", bound="RawScript") - - -@_attrs_define -class RawScript: - """ - Attributes: - input_transforms (RawScriptInputTransforms): - content (str): - language (RawScriptLanguage): - type (RawScriptType): - path (Union[Unset, str]): - lock (Union[Unset, str]): - tag (Union[Unset, str]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - """ - - input_transforms: 'RawScriptInputTransforms' - content: str - language: RawScriptLanguage - type: RawScriptType - path: Union[Unset, str] = UNSET - lock: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.raw_script_input_transforms import RawScriptInputTransforms - input_transforms = self.input_transforms.to_dict() - - content = self.content - language = self.language.value - - type = self.type.value - - path = self.path - lock = self.lock - tag = self.tag - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "input_transforms": input_transforms, - "content": content, - "language": language, - "type": type, - }) - if path is not UNSET: - field_dict["path"] = path - if lock is not UNSET: - field_dict["lock"] = lock - if tag is not UNSET: - field_dict["tag"] = tag - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.raw_script_input_transforms import RawScriptInputTransforms - d = src_dict.copy() - input_transforms = RawScriptInputTransforms.from_dict(d.pop("input_transforms")) - - - - - content = d.pop("content") - - language = RawScriptLanguage(d.pop("language")) - - - - - type = RawScriptType(d.pop("type")) - - - - - path = d.pop("path", UNSET) - - lock = d.pop("lock", UNSET) - - tag = d.pop("tag", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - raw_script = cls( - input_transforms=input_transforms, - content=content, - language=language, - type=type, - path=path, - lock=lock, - tag=tag, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - ) - - raw_script.additional_properties = d - return raw_script - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/raw_script_for_dependencies.py b/python-client/windmill-api/windmill_api/models/raw_script_for_dependencies.py deleted file mode 100644 index 35a94f3321..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_for_dependencies.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.raw_script_for_dependencies_language import RawScriptForDependenciesLanguage - - - - - - -T = TypeVar("T", bound="RawScriptForDependencies") - - -@_attrs_define -class RawScriptForDependencies: - """ - Attributes: - content (str): - path (str): - language (RawScriptForDependenciesLanguage): - """ - - content: str - path: str - language: RawScriptForDependenciesLanguage - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - content = self.content - path = self.path - language = self.language.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "content": content, - "path": path, - "language": language, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - content = d.pop("content") - - path = d.pop("path") - - language = RawScriptForDependenciesLanguage(d.pop("language")) - - - - - raw_script_for_dependencies = cls( - content=content, - path=path, - language=language, - ) - - raw_script_for_dependencies.additional_properties = d - return raw_script_for_dependencies - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/raw_script_for_dependencies_language.py b/python-client/windmill-api/windmill_api/models/raw_script_for_dependencies_language.py deleted file mode 100644 index f54d0a4e63..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_for_dependencies_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class RawScriptForDependenciesLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms.py b/python-client/windmill-api/windmill_api/models/raw_script_input_transforms.py deleted file mode 100644 index 7585d54d3e..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms.py +++ /dev/null @@ -1,108 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, Union - -if TYPE_CHECKING: - from ..models.raw_script_input_transforms_additional_property_type_0 import RawScriptInputTransformsAdditionalPropertyType0 - from ..models.raw_script_input_transforms_additional_property_type_1 import RawScriptInputTransformsAdditionalPropertyType1 - - - - - -T = TypeVar("T", bound="RawScriptInputTransforms") - - -@_attrs_define -class RawScriptInputTransforms: - """ - """ - - additional_properties: Dict[str, Union['RawScriptInputTransformsAdditionalPropertyType0', 'RawScriptInputTransformsAdditionalPropertyType1']] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.raw_script_input_transforms_additional_property_type_0 import RawScriptInputTransformsAdditionalPropertyType0 - from ..models.raw_script_input_transforms_additional_property_type_1 import RawScriptInputTransformsAdditionalPropertyType1 - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - - - if isinstance(prop, RawScriptInputTransformsAdditionalPropertyType0): - field_dict[prop_name] = prop.to_dict() - - else: - field_dict[prop_name] = prop.to_dict() - - - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.raw_script_input_transforms_additional_property_type_0 import RawScriptInputTransformsAdditionalPropertyType0 - from ..models.raw_script_input_transforms_additional_property_type_1 import RawScriptInputTransformsAdditionalPropertyType1 - d = src_dict.copy() - raw_script_input_transforms = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - def _parse_additional_property(data: object) -> Union['RawScriptInputTransformsAdditionalPropertyType0', 'RawScriptInputTransformsAdditionalPropertyType1']: - try: - if not isinstance(data, dict): - raise TypeError() - additional_property_type_0 = RawScriptInputTransformsAdditionalPropertyType0.from_dict(data) - - - - return additional_property_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - additional_property_type_1 = RawScriptInputTransformsAdditionalPropertyType1.from_dict(data) - - - - return additional_property_type_1 - - additional_property = _parse_additional_property(prop_dict) - - additional_properties[prop_name] = additional_property - - raw_script_input_transforms.additional_properties = additional_properties - return raw_script_input_transforms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Union['RawScriptInputTransformsAdditionalPropertyType0', 'RawScriptInputTransformsAdditionalPropertyType1']: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Union['RawScriptInputTransformsAdditionalPropertyType0', 'RawScriptInputTransformsAdditionalPropertyType1']) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_0.py b/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_0.py deleted file mode 100644 index 5bb5be2282..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.raw_script_input_transforms_additional_property_type_0_type import RawScriptInputTransformsAdditionalPropertyType0Type - - - - - - -T = TypeVar("T", bound="RawScriptInputTransformsAdditionalPropertyType0") - - -@_attrs_define -class RawScriptInputTransformsAdditionalPropertyType0: - """ - Attributes: - type (RawScriptInputTransformsAdditionalPropertyType0Type): - value (Union[Unset, Any]): - """ - - type: RawScriptInputTransformsAdditionalPropertyType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = RawScriptInputTransformsAdditionalPropertyType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - raw_script_input_transforms_additional_property_type_0 = cls( - type=type, - value=value, - ) - - raw_script_input_transforms_additional_property_type_0.additional_properties = d - return raw_script_input_transforms_additional_property_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_0_type.py b/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_0_type.py deleted file mode 100644 index d6bdb03bfe..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RawScriptInputTransformsAdditionalPropertyType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_1.py b/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_1.py deleted file mode 100644 index e065f0039d..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.raw_script_input_transforms_additional_property_type_1_type import RawScriptInputTransformsAdditionalPropertyType1Type - - - - - - -T = TypeVar("T", bound="RawScriptInputTransformsAdditionalPropertyType1") - - -@_attrs_define -class RawScriptInputTransformsAdditionalPropertyType1: - """ - Attributes: - expr (str): - type (RawScriptInputTransformsAdditionalPropertyType1Type): - """ - - expr: str - type: RawScriptInputTransformsAdditionalPropertyType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = RawScriptInputTransformsAdditionalPropertyType1Type(d.pop("type")) - - - - - raw_script_input_transforms_additional_property_type_1 = cls( - expr=expr, - type=type, - ) - - raw_script_input_transforms_additional_property_type_1.additional_properties = d - return raw_script_input_transforms_additional_property_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_1_type.py b/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_1_type.py deleted file mode 100644 index 39c03b168f..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_input_transforms_additional_property_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RawScriptInputTransformsAdditionalPropertyType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/raw_script_language.py b/python-client/windmill-api/windmill_api/models/raw_script_language.py deleted file mode 100644 index a22bf9f59a..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class RawScriptLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/raw_script_type.py b/python-client/windmill-api/windmill_api/models/raw_script_type.py deleted file mode 100644 index bb8803d400..0000000000 --- a/python-client/windmill-api/windmill_api/models/raw_script_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RawScriptType(str, Enum): - RAWSCRIPT = "rawscript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/refresh_token_json_body.py b/python-client/windmill-api/windmill_api/models/refresh_token_json_body.py deleted file mode 100644 index 5333bcb313..0000000000 --- a/python-client/windmill-api/windmill_api/models/refresh_token_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RefreshTokenJsonBody") - - -@_attrs_define -class RefreshTokenJsonBody: - """ - Attributes: - path (str): - """ - - path: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path") - - refresh_token_json_body = cls( - path=path, - ) - - refresh_token_json_body.additional_properties = d - return refresh_token_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/remove_granular_acls_json_body.py b/python-client/windmill-api/windmill_api/models/remove_granular_acls_json_body.py deleted file mode 100644 index 9193060dcb..0000000000 --- a/python-client/windmill-api/windmill_api/models/remove_granular_acls_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RemoveGranularAclsJsonBody") - - -@_attrs_define -class RemoveGranularAclsJsonBody: - """ - Attributes: - owner (str): - """ - - owner: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - owner = self.owner - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "owner": owner, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - owner = d.pop("owner") - - remove_granular_acls_json_body = cls( - owner=owner, - ) - - remove_granular_acls_json_body.additional_properties = d - return remove_granular_acls_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/remove_granular_acls_kind.py b/python-client/windmill-api/windmill_api/models/remove_granular_acls_kind.py deleted file mode 100644 index 860da4bb8e..0000000000 --- a/python-client/windmill-api/windmill_api/models/remove_granular_acls_kind.py +++ /dev/null @@ -1,15 +0,0 @@ -from enum import Enum - -class RemoveGranularAclsKind(str, Enum): - APP = "app" - FLOW = "flow" - FOLDER = "folder" - GROUP = "group_" - RAW_APP = "raw_app" - RESOURCE = "resource" - SCHEDULE = "schedule" - SCRIPT = "script" - VARIABLE = "variable" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/remove_owner_to_folder_json_body.py b/python-client/windmill-api/windmill_api/models/remove_owner_to_folder_json_body.py deleted file mode 100644 index 7fd88e0e1d..0000000000 --- a/python-client/windmill-api/windmill_api/models/remove_owner_to_folder_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RemoveOwnerToFolderJsonBody") - - -@_attrs_define -class RemoveOwnerToFolderJsonBody: - """ - Attributes: - owner (Union[Unset, str]): - """ - - owner: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - owner = self.owner - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if owner is not UNSET: - field_dict["owner"] = owner - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - owner = d.pop("owner", UNSET) - - remove_owner_to_folder_json_body = cls( - owner=owner, - ) - - remove_owner_to_folder_json_body.additional_properties = d - return remove_owner_to_folder_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/remove_user_from_instance_group_json_body.py b/python-client/windmill-api/windmill_api/models/remove_user_from_instance_group_json_body.py deleted file mode 100644 index 6d5cd0a051..0000000000 --- a/python-client/windmill-api/windmill_api/models/remove_user_from_instance_group_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RemoveUserFromInstanceGroupJsonBody") - - -@_attrs_define -class RemoveUserFromInstanceGroupJsonBody: - """ - Attributes: - email (str): - """ - - email: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - email = self.email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - email = d.pop("email") - - remove_user_from_instance_group_json_body = cls( - email=email, - ) - - remove_user_from_instance_group_json_body.additional_properties = d - return remove_user_from_instance_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/remove_user_to_group_json_body.py b/python-client/windmill-api/windmill_api/models/remove_user_to_group_json_body.py deleted file mode 100644 index aa76d22093..0000000000 --- a/python-client/windmill-api/windmill_api/models/remove_user_to_group_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RemoveUserToGroupJsonBody") - - -@_attrs_define -class RemoveUserToGroupJsonBody: - """ - Attributes: - username (Union[Unset, str]): - """ - - username: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if username is not UNSET: - field_dict["username"] = username - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - username = d.pop("username", UNSET) - - remove_user_to_group_json_body = cls( - username=username, - ) - - remove_user_to_group_json_body.additional_properties = d - return remove_user_to_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/resource.py b/python-client/windmill-api/windmill_api/models/resource.py deleted file mode 100644 index 31bb35f252..0000000000 --- a/python-client/windmill-api/windmill_api/models/resource.py +++ /dev/null @@ -1,135 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.resource_extra_perms import ResourceExtraPerms - - - - - -T = TypeVar("T", bound="Resource") - - -@_attrs_define -class Resource: - """ - Attributes: - path (str): - resource_type (str): - is_oauth (bool): - workspace_id (Union[Unset, str]): - description (Union[Unset, str]): - value (Union[Unset, Any]): - extra_perms (Union[Unset, ResourceExtraPerms]): - """ - - path: str - resource_type: str - is_oauth: bool - workspace_id: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - value: Union[Unset, Any] = UNSET - extra_perms: Union[Unset, 'ResourceExtraPerms'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.resource_extra_perms import ResourceExtraPerms - path = self.path - resource_type = self.resource_type - is_oauth = self.is_oauth - workspace_id = self.workspace_id - description = self.description - value = self.value - extra_perms: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_perms, Unset): - extra_perms = self.extra_perms.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "resource_type": resource_type, - "is_oauth": is_oauth, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if description is not UNSET: - field_dict["description"] = description - if value is not UNSET: - field_dict["value"] = value - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.resource_extra_perms import ResourceExtraPerms - d = src_dict.copy() - path = d.pop("path") - - resource_type = d.pop("resource_type") - - is_oauth = d.pop("is_oauth") - - workspace_id = d.pop("workspace_id", UNSET) - - description = d.pop("description", UNSET) - - value = d.pop("value", UNSET) - - _extra_perms = d.pop("extra_perms", UNSET) - extra_perms: Union[Unset, ResourceExtraPerms] - if isinstance(_extra_perms, Unset): - extra_perms = UNSET - else: - extra_perms = ResourceExtraPerms.from_dict(_extra_perms) - - - - - resource = cls( - path=path, - resource_type=resource_type, - is_oauth=is_oauth, - workspace_id=workspace_id, - description=description, - value=value, - extra_perms=extra_perms, - ) - - resource.additional_properties = d - return resource - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/resource_extra_perms.py b/python-client/windmill-api/windmill_api/models/resource_extra_perms.py deleted file mode 100644 index 1b6ef9a0b6..0000000000 --- a/python-client/windmill-api/windmill_api/models/resource_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ResourceExtraPerms") - - -@_attrs_define -class ResourceExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resource_extra_perms = cls( - ) - - - resource_extra_perms.additional_properties = d - return resource_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/resource_type.py b/python-client/windmill-api/windmill_api/models/resource_type.py deleted file mode 100644 index 25ce623194..0000000000 --- a/python-client/windmill-api/windmill_api/models/resource_type.py +++ /dev/null @@ -1,96 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ResourceType") - - -@_attrs_define -class ResourceType: - """ - Attributes: - name (str): - workspace_id (Union[Unset, str]): - schema (Union[Unset, Any]): - description (Union[Unset, str]): - """ - - name: str - workspace_id: Union[Unset, str] = UNSET - schema: Union[Unset, Any] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - name = self.name - workspace_id = self.workspace_id - schema = self.schema - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "name": name, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if schema is not UNSET: - field_dict["schema"] = schema - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - name = d.pop("name") - - workspace_id = d.pop("workspace_id", UNSET) - - schema = d.pop("schema", UNSET) - - description = d.pop("description", UNSET) - - resource_type = cls( - name=name, - workspace_id=workspace_id, - schema=schema, - description=description, - ) - - resource_type.additional_properties = d - return resource_type - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/restart_flow_at_step_json_body.py b/python-client/windmill-api/windmill_api/models/restart_flow_at_step_json_body.py deleted file mode 100644 index c988944f30..0000000000 --- a/python-client/windmill-api/windmill_api/models/restart_flow_at_step_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RestartFlowAtStepJsonBody") - - -@_attrs_define -class RestartFlowAtStepJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - restart_flow_at_step_json_body = cls( - ) - - restart_flow_at_step_json_body.additional_properties = d - return restart_flow_at_step_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/restarted_from.py b/python-client/windmill-api/windmill_api/models/restarted_from.py deleted file mode 100644 index 5880febe0e..0000000000 --- a/python-client/windmill-api/windmill_api/models/restarted_from.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RestartedFrom") - - -@_attrs_define -class RestartedFrom: - """ - Attributes: - flow_job_id (Union[Unset, str]): - step_id (Union[Unset, str]): - branch_or_iteration_n (Union[Unset, int]): - """ - - flow_job_id: Union[Unset, str] = UNSET - step_id: Union[Unset, str] = UNSET - branch_or_iteration_n: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - flow_job_id = self.flow_job_id - step_id = self.step_id - branch_or_iteration_n = self.branch_or_iteration_n - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if flow_job_id is not UNSET: - field_dict["flow_job_id"] = flow_job_id - if step_id is not UNSET: - field_dict["step_id"] = step_id - if branch_or_iteration_n is not UNSET: - field_dict["branch_or_iteration_n"] = branch_or_iteration_n - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_job_id = d.pop("flow_job_id", UNSET) - - step_id = d.pop("step_id", UNSET) - - branch_or_iteration_n = d.pop("branch_or_iteration_n", UNSET) - - restarted_from = cls( - flow_job_id=flow_job_id, - step_id=step_id, - branch_or_iteration_n=branch_or_iteration_n, - ) - - restarted_from.additional_properties = d - return restarted_from - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/resume_suspended_flow_as_owner_json_body.py b/python-client/windmill-api/windmill_api/models/resume_suspended_flow_as_owner_json_body.py deleted file mode 100644 index 42de42cd6c..0000000000 --- a/python-client/windmill-api/windmill_api/models/resume_suspended_flow_as_owner_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ResumeSuspendedFlowAsOwnerJsonBody") - - -@_attrs_define -class ResumeSuspendedFlowAsOwnerJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_suspended_flow_as_owner_json_body = cls( - ) - - resume_suspended_flow_as_owner_json_body.additional_properties = d - return resume_suspended_flow_as_owner_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/resume_suspended_job_post_json_body.py b/python-client/windmill-api/windmill_api/models/resume_suspended_job_post_json_body.py deleted file mode 100644 index d1e4a4a279..0000000000 --- a/python-client/windmill-api/windmill_api/models/resume_suspended_job_post_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ResumeSuspendedJobPostJsonBody") - - -@_attrs_define -class ResumeSuspendedJobPostJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - resume_suspended_job_post_json_body = cls( - ) - - resume_suspended_job_post_json_body.additional_properties = d - return resume_suspended_job_post_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/retry.py b/python-client/windmill-api/windmill_api/models/retry.py deleted file mode 100644 index f2bec2b496..0000000000 --- a/python-client/windmill-api/windmill_api/models/retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.retry_constant import RetryConstant - from ..models.retry_exponential import RetryExponential - - - - - -T = TypeVar("T", bound="Retry") - - -@_attrs_define -class Retry: - """ - Attributes: - constant (Union[Unset, RetryConstant]): - exponential (Union[Unset, RetryExponential]): - """ - - constant: Union[Unset, 'RetryConstant'] = UNSET - exponential: Union[Unset, 'RetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.retry_constant import RetryConstant - from ..models.retry_exponential import RetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.retry_constant import RetryConstant - from ..models.retry_exponential import RetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, RetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = RetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, RetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = RetryExponential.from_dict(_exponential) - - - - - retry = cls( - constant=constant, - exponential=exponential, - ) - - retry.additional_properties = d - return retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/retry_constant.py b/python-client/windmill-api/windmill_api/models/retry_constant.py deleted file mode 100644 index 0c38bd160b..0000000000 --- a/python-client/windmill-api/windmill_api/models/retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RetryConstant") - - -@_attrs_define -class RetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - retry_constant.additional_properties = d - return retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/retry_exponential.py b/python-client/windmill-api/windmill_api/models/retry_exponential.py deleted file mode 100644 index edcadfc6c7..0000000000 --- a/python-client/windmill-api/windmill_api/models/retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RetryExponential") - - -@_attrs_define -class RetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - retry_exponential.additional_properties = d - return retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_by_path_json_body.py b/python-client/windmill-api/windmill_api/models/run_flow_by_path_json_body.py deleted file mode 100644 index 0386c460ff..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_by_path_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunFlowByPathJsonBody") - - -@_attrs_define -class RunFlowByPathJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_flow_by_path_json_body = cls( - ) - - run_flow_by_path_json_body.additional_properties = d - return run_flow_by_path_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body.py deleted file mode 100644 index 5e75dd1f5c..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body.py +++ /dev/null @@ -1,134 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value import RunFlowPreviewJsonBodyValue - from ..models.run_flow_preview_json_body_args import RunFlowPreviewJsonBodyArgs - from ..models.run_flow_preview_json_body_restarted_from import RunFlowPreviewJsonBodyRestartedFrom - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBody") - - -@_attrs_define -class RunFlowPreviewJsonBody: - """ - Attributes: - value (RunFlowPreviewJsonBodyValue): - args (RunFlowPreviewJsonBodyArgs): - path (Union[Unset, str]): - tag (Union[Unset, str]): - restarted_from (Union[Unset, RunFlowPreviewJsonBodyRestartedFrom]): - """ - - value: 'RunFlowPreviewJsonBodyValue' - args: 'RunFlowPreviewJsonBodyArgs' - path: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - restarted_from: Union[Unset, 'RunFlowPreviewJsonBodyRestartedFrom'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value import RunFlowPreviewJsonBodyValue - from ..models.run_flow_preview_json_body_args import RunFlowPreviewJsonBodyArgs - from ..models.run_flow_preview_json_body_restarted_from import RunFlowPreviewJsonBodyRestartedFrom - value = self.value.to_dict() - - args = self.args.to_dict() - - path = self.path - tag = self.tag - restarted_from: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.restarted_from, Unset): - restarted_from = self.restarted_from.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "value": value, - "args": args, - }) - if path is not UNSET: - field_dict["path"] = path - if tag is not UNSET: - field_dict["tag"] = tag - if restarted_from is not UNSET: - field_dict["restarted_from"] = restarted_from - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value import RunFlowPreviewJsonBodyValue - from ..models.run_flow_preview_json_body_args import RunFlowPreviewJsonBodyArgs - from ..models.run_flow_preview_json_body_restarted_from import RunFlowPreviewJsonBodyRestartedFrom - d = src_dict.copy() - value = RunFlowPreviewJsonBodyValue.from_dict(d.pop("value")) - - - - - args = RunFlowPreviewJsonBodyArgs.from_dict(d.pop("args")) - - - - - path = d.pop("path", UNSET) - - tag = d.pop("tag", UNSET) - - _restarted_from = d.pop("restarted_from", UNSET) - restarted_from: Union[Unset, RunFlowPreviewJsonBodyRestartedFrom] - if isinstance(_restarted_from, Unset): - restarted_from = UNSET - else: - restarted_from = RunFlowPreviewJsonBodyRestartedFrom.from_dict(_restarted_from) - - - - - run_flow_preview_json_body = cls( - value=value, - args=args, - path=path, - tag=tag, - restarted_from=restarted_from, - ) - - run_flow_preview_json_body.additional_properties = d - return run_flow_preview_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_args.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_args.py deleted file mode 100644 index 9f4de37a53..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyArgs") - - -@_attrs_define -class RunFlowPreviewJsonBodyArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_flow_preview_json_body_args = cls( - ) - - run_flow_preview_json_body_args.additional_properties = d - return run_flow_preview_json_body_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_restarted_from.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_restarted_from.py deleted file mode 100644 index 6bb22f080f..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_restarted_from.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyRestartedFrom") - - -@_attrs_define -class RunFlowPreviewJsonBodyRestartedFrom: - """ - Attributes: - flow_job_id (Union[Unset, str]): - step_id (Union[Unset, str]): - branch_or_iteration_n (Union[Unset, int]): - """ - - flow_job_id: Union[Unset, str] = UNSET - step_id: Union[Unset, str] = UNSET - branch_or_iteration_n: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - flow_job_id = self.flow_job_id - step_id = self.step_id - branch_or_iteration_n = self.branch_or_iteration_n - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if flow_job_id is not UNSET: - field_dict["flow_job_id"] = flow_job_id - if step_id is not UNSET: - field_dict["step_id"] = step_id - if branch_or_iteration_n is not UNSET: - field_dict["branch_or_iteration_n"] = branch_or_iteration_n - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - flow_job_id = d.pop("flow_job_id", UNSET) - - step_id = d.pop("step_id", UNSET) - - branch_or_iteration_n = d.pop("branch_or_iteration_n", UNSET) - - run_flow_preview_json_body_restarted_from = cls( - flow_job_id=flow_job_id, - step_id=step_id, - branch_or_iteration_n=branch_or_iteration_n, - ) - - run_flow_preview_json_body_restarted_from.additional_properties = d - return run_flow_preview_json_body_restarted_from - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value.py deleted file mode 100644 index 41344917dc..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value.py +++ /dev/null @@ -1,173 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_failure_module import RunFlowPreviewJsonBodyValueFailureModule - from ..models.run_flow_preview_json_body_value_modules_item import RunFlowPreviewJsonBodyValueModulesItem - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValue") - - -@_attrs_define -class RunFlowPreviewJsonBodyValue: - """ - Attributes: - modules (List['RunFlowPreviewJsonBodyValueModulesItem']): - failure_module (Union[Unset, RunFlowPreviewJsonBodyValueFailureModule]): - same_worker (Union[Unset, bool]): - concurrent_limit (Union[Unset, float]): - concurrency_time_window_s (Union[Unset, float]): - skip_expr (Union[Unset, str]): - cache_ttl (Union[Unset, float]): - priority (Union[Unset, float]): - early_return (Union[Unset, str]): - """ - - modules: List['RunFlowPreviewJsonBodyValueModulesItem'] - failure_module: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModule'] = UNSET - same_worker: Union[Unset, bool] = UNSET - concurrent_limit: Union[Unset, float] = UNSET - concurrency_time_window_s: Union[Unset, float] = UNSET - skip_expr: Union[Unset, str] = UNSET - cache_ttl: Union[Unset, float] = UNSET - priority: Union[Unset, float] = UNSET - early_return: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_failure_module import RunFlowPreviewJsonBodyValueFailureModule - from ..models.run_flow_preview_json_body_value_modules_item import RunFlowPreviewJsonBodyValueModulesItem - modules = [] - for modules_item_data in self.modules: - modules_item = modules_item_data.to_dict() - - modules.append(modules_item) - - - - - failure_module: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.failure_module, Unset): - failure_module = self.failure_module.to_dict() - - same_worker = self.same_worker - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - skip_expr = self.skip_expr - cache_ttl = self.cache_ttl - priority = self.priority - early_return = self.early_return - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "modules": modules, - }) - if failure_module is not UNSET: - field_dict["failure_module"] = failure_module - if same_worker is not UNSET: - field_dict["same_worker"] = same_worker - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if skip_expr is not UNSET: - field_dict["skip_expr"] = skip_expr - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if priority is not UNSET: - field_dict["priority"] = priority - if early_return is not UNSET: - field_dict["early_return"] = early_return - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_failure_module import RunFlowPreviewJsonBodyValueFailureModule - from ..models.run_flow_preview_json_body_value_modules_item import RunFlowPreviewJsonBodyValueModulesItem - d = src_dict.copy() - modules = [] - _modules = d.pop("modules") - for modules_item_data in (_modules): - modules_item = RunFlowPreviewJsonBodyValueModulesItem.from_dict(modules_item_data) - - - - modules.append(modules_item) - - - _failure_module = d.pop("failure_module", UNSET) - failure_module: Union[Unset, RunFlowPreviewJsonBodyValueFailureModule] - if isinstance(_failure_module, Unset): - failure_module = UNSET - else: - failure_module = RunFlowPreviewJsonBodyValueFailureModule.from_dict(_failure_module) - - - - - same_worker = d.pop("same_worker", UNSET) - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - skip_expr = d.pop("skip_expr", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - priority = d.pop("priority", UNSET) - - early_return = d.pop("early_return", UNSET) - - run_flow_preview_json_body_value = cls( - modules=modules, - failure_module=failure_module, - same_worker=same_worker, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - skip_expr=skip_expr, - cache_ttl=cache_ttl, - priority=priority, - early_return=early_return, - ) - - run_flow_preview_json_body_value.additional_properties = d - return run_flow_preview_json_body_value - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module.py deleted file mode 100644 index 1f8920ff56..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_failure_module_mock import RunFlowPreviewJsonBodyValueFailureModuleMock - from ..models.run_flow_preview_json_body_value_failure_module_suspend import RunFlowPreviewJsonBodyValueFailureModuleSuspend - from ..models.run_flow_preview_json_body_value_failure_module_retry import RunFlowPreviewJsonBodyValueFailureModuleRetry - from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_0 import RunFlowPreviewJsonBodyValueFailureModuleSleepType0 - from ..models.run_flow_preview_json_body_value_failure_module_stop_after_if import RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf - from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_1 import RunFlowPreviewJsonBodyValueFailureModuleSleepType1 - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModule") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModule: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf]): - sleep (Union['RunFlowPreviewJsonBodyValueFailureModuleSleepType0', - 'RunFlowPreviewJsonBodyValueFailureModuleSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleMock]): - suspend (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf'] = UNSET - sleep: Union['RunFlowPreviewJsonBodyValueFailureModuleSleepType0', 'RunFlowPreviewJsonBodyValueFailureModuleSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleMock'] = UNSET - suspend: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_failure_module_mock import RunFlowPreviewJsonBodyValueFailureModuleMock - from ..models.run_flow_preview_json_body_value_failure_module_suspend import RunFlowPreviewJsonBodyValueFailureModuleSuspend - from ..models.run_flow_preview_json_body_value_failure_module_retry import RunFlowPreviewJsonBodyValueFailureModuleRetry - from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_0 import RunFlowPreviewJsonBodyValueFailureModuleSleepType0 - from ..models.run_flow_preview_json_body_value_failure_module_stop_after_if import RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf - from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_1 import RunFlowPreviewJsonBodyValueFailureModuleSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, RunFlowPreviewJsonBodyValueFailureModuleSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_failure_module_mock import RunFlowPreviewJsonBodyValueFailureModuleMock - from ..models.run_flow_preview_json_body_value_failure_module_suspend import RunFlowPreviewJsonBodyValueFailureModuleSuspend - from ..models.run_flow_preview_json_body_value_failure_module_retry import RunFlowPreviewJsonBodyValueFailureModuleRetry - from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_0 import RunFlowPreviewJsonBodyValueFailureModuleSleepType0 - from ..models.run_flow_preview_json_body_value_failure_module_stop_after_if import RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf - from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_1 import RunFlowPreviewJsonBodyValueFailureModuleSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['RunFlowPreviewJsonBodyValueFailureModuleSleepType0', 'RunFlowPreviewJsonBodyValueFailureModuleSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = RunFlowPreviewJsonBodyValueFailureModuleSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = RunFlowPreviewJsonBodyValueFailureModuleSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = RunFlowPreviewJsonBodyValueFailureModuleMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = RunFlowPreviewJsonBodyValueFailureModuleSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = RunFlowPreviewJsonBodyValueFailureModuleRetry.from_dict(_retry) - - - - - run_flow_preview_json_body_value_failure_module = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - run_flow_preview_json_body_value_failure_module.additional_properties = d - return run_flow_preview_json_body_value_failure_module - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_mock.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_mock.py deleted file mode 100644 index d5b38cd6ec..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleMock") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - run_flow_preview_json_body_value_failure_module_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - run_flow_preview_json_body_value_failure_module_mock.additional_properties = d - return run_flow_preview_json_body_value_failure_module_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry.py deleted file mode 100644 index 33c61318d3..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_failure_module_retry_constant import RunFlowPreviewJsonBodyValueFailureModuleRetryConstant - from ..models.run_flow_preview_json_body_value_failure_module_retry_exponential import RunFlowPreviewJsonBodyValueFailureModuleRetryExponential - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleRetry") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleRetry: - """ - Attributes: - constant (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleRetryConstant]): - exponential (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleRetryExponential]): - """ - - constant: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleRetryConstant'] = UNSET - exponential: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_failure_module_retry_constant import RunFlowPreviewJsonBodyValueFailureModuleRetryConstant - from ..models.run_flow_preview_json_body_value_failure_module_retry_exponential import RunFlowPreviewJsonBodyValueFailureModuleRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_failure_module_retry_constant import RunFlowPreviewJsonBodyValueFailureModuleRetryConstant - from ..models.run_flow_preview_json_body_value_failure_module_retry_exponential import RunFlowPreviewJsonBodyValueFailureModuleRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = RunFlowPreviewJsonBodyValueFailureModuleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = RunFlowPreviewJsonBodyValueFailureModuleRetryExponential.from_dict(_exponential) - - - - - run_flow_preview_json_body_value_failure_module_retry = cls( - constant=constant, - exponential=exponential, - ) - - run_flow_preview_json_body_value_failure_module_retry.additional_properties = d - return run_flow_preview_json_body_value_failure_module_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry_constant.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry_constant.py deleted file mode 100644 index 24216122f9..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleRetryConstant") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - run_flow_preview_json_body_value_failure_module_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - run_flow_preview_json_body_value_failure_module_retry_constant.additional_properties = d - return run_flow_preview_json_body_value_failure_module_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry_exponential.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry_exponential.py deleted file mode 100644 index d97de0cc7e..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleRetryExponential") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - run_flow_preview_json_body_value_failure_module_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - run_flow_preview_json_body_value_failure_module_retry_exponential.additional_properties = d - return run_flow_preview_json_body_value_failure_module_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_0.py deleted file mode 100644 index f016fafa87..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_0_type import RunFlowPreviewJsonBodyValueFailureModuleSleepType0Type - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleSleepType0") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleSleepType0: - """ - Attributes: - type (RunFlowPreviewJsonBodyValueFailureModuleSleepType0Type): - value (Union[Unset, Any]): - """ - - type: RunFlowPreviewJsonBodyValueFailureModuleSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = RunFlowPreviewJsonBodyValueFailureModuleSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - run_flow_preview_json_body_value_failure_module_sleep_type_0 = cls( - type=type, - value=value, - ) - - run_flow_preview_json_body_value_failure_module_sleep_type_0.additional_properties = d - return run_flow_preview_json_body_value_failure_module_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_0_type.py deleted file mode 100644 index 377f7ebc2a..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueFailureModuleSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_1.py deleted file mode 100644 index 6c16b9f0b0..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.run_flow_preview_json_body_value_failure_module_sleep_type_1_type import RunFlowPreviewJsonBodyValueFailureModuleSleepType1Type - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleSleepType1") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleSleepType1: - """ - Attributes: - expr (str): - type (RunFlowPreviewJsonBodyValueFailureModuleSleepType1Type): - """ - - expr: str - type: RunFlowPreviewJsonBodyValueFailureModuleSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = RunFlowPreviewJsonBodyValueFailureModuleSleepType1Type(d.pop("type")) - - - - - run_flow_preview_json_body_value_failure_module_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - run_flow_preview_json_body_value_failure_module_sleep_type_1.additional_properties = d - return run_flow_preview_json_body_value_failure_module_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_1_type.py deleted file mode 100644 index 16d3a38884..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueFailureModuleSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_stop_after_if.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_stop_after_if.py deleted file mode 100644 index a6e3fba8a3..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - run_flow_preview_json_body_value_failure_module_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - run_flow_preview_json_body_value_failure_module_stop_after_if.additional_properties = d - return run_flow_preview_json_body_value_failure_module_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend.py deleted file mode 100644 index d7f5885768..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1 import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.run_flow_preview_json_body_value_failure_module_suspend_resume_form import RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm - from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0 import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0 - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleSuspend") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0', - 'RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0', 'RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1 import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.run_flow_preview_json_body_value_failure_module_suspend_resume_form import RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm - from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0 import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0 - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1 import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1 - from ..models.run_flow_preview_json_body_value_failure_module_suspend_resume_form import RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm - from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0 import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0 - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0', 'RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - run_flow_preview_json_body_value_failure_module_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - run_flow_preview_json_body_value_failure_module_suspend.additional_properties = d - return run_flow_preview_json_body_value_failure_module_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_resume_form.py deleted file mode 100644 index d94df0a0d8..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema import RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema import RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema import RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema.from_dict(_schema) - - - - - run_flow_preview_json_body_value_failure_module_suspend_resume_form = cls( - schema=schema, - ) - - run_flow_preview_json_body_value_failure_module_suspend_resume_form.additional_properties = d - return run_flow_preview_json_body_value_failure_module_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema.py deleted file mode 100644 index 8866b1b9b7..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema = cls( - ) - - run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema.additional_properties = d - return run_flow_preview_json_body_value_failure_module_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0.py deleted file mode 100644 index 4330de41c2..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0_type import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0: - """ - Attributes: - type (RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0.additional_properties = d - return run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index b74522121c..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1.py deleted file mode 100644 index e07874c695..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1_type import RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1.additional_properties = d - return run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index ceb2e9c652..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_failure_module_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueFailureModuleSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item.py deleted file mode 100644 index 08f6975832..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item.py +++ /dev/null @@ -1,273 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_modules_item_suspend import RunFlowPreviewJsonBodyValueModulesItemSuspend - from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_0 import RunFlowPreviewJsonBodyValueModulesItemSleepType0 - from ..models.run_flow_preview_json_body_value_modules_item_mock import RunFlowPreviewJsonBodyValueModulesItemMock - from ..models.run_flow_preview_json_body_value_modules_item_stop_after_if import RunFlowPreviewJsonBodyValueModulesItemStopAfterIf - from ..models.run_flow_preview_json_body_value_modules_item_retry import RunFlowPreviewJsonBodyValueModulesItemRetry - from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_1 import RunFlowPreviewJsonBodyValueModulesItemSleepType1 - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItem") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItem: - """ - Attributes: - id (str): - value (Any): - stop_after_if (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemStopAfterIf]): - sleep (Union['RunFlowPreviewJsonBodyValueModulesItemSleepType0', - 'RunFlowPreviewJsonBodyValueModulesItemSleepType1', Unset]): - cache_ttl (Union[Unset, float]): - timeout (Union[Unset, float]): - delete_after_use (Union[Unset, bool]): - summary (Union[Unset, str]): - mock (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemMock]): - suspend (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspend]): - priority (Union[Unset, float]): - retry (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemRetry]): - """ - - id: str - value: Any - stop_after_if: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemStopAfterIf'] = UNSET - sleep: Union['RunFlowPreviewJsonBodyValueModulesItemSleepType0', 'RunFlowPreviewJsonBodyValueModulesItemSleepType1', Unset] = UNSET - cache_ttl: Union[Unset, float] = UNSET - timeout: Union[Unset, float] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - mock: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemMock'] = UNSET - suspend: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemSuspend'] = UNSET - priority: Union[Unset, float] = UNSET - retry: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemRetry'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_modules_item_suspend import RunFlowPreviewJsonBodyValueModulesItemSuspend - from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_0 import RunFlowPreviewJsonBodyValueModulesItemSleepType0 - from ..models.run_flow_preview_json_body_value_modules_item_mock import RunFlowPreviewJsonBodyValueModulesItemMock - from ..models.run_flow_preview_json_body_value_modules_item_stop_after_if import RunFlowPreviewJsonBodyValueModulesItemStopAfterIf - from ..models.run_flow_preview_json_body_value_modules_item_retry import RunFlowPreviewJsonBodyValueModulesItemRetry - from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_1 import RunFlowPreviewJsonBodyValueModulesItemSleepType1 - id = self.id - value = self.value - stop_after_if: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.stop_after_if, Unset): - stop_after_if = self.stop_after_if.to_dict() - - sleep: Union[Dict[str, Any], Unset] - if isinstance(self.sleep, Unset): - sleep = UNSET - - elif isinstance(self.sleep, RunFlowPreviewJsonBodyValueModulesItemSleepType0): - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - else: - sleep = UNSET - if not isinstance(self.sleep, Unset): - sleep = self.sleep.to_dict() - - - - cache_ttl = self.cache_ttl - timeout = self.timeout - delete_after_use = self.delete_after_use - summary = self.summary - mock: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.mock, Unset): - mock = self.mock.to_dict() - - suspend: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.suspend, Unset): - suspend = self.suspend.to_dict() - - priority = self.priority - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "value": value, - }) - if stop_after_if is not UNSET: - field_dict["stop_after_if"] = stop_after_if - if sleep is not UNSET: - field_dict["sleep"] = sleep - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - if summary is not UNSET: - field_dict["summary"] = summary - if mock is not UNSET: - field_dict["mock"] = mock - if suspend is not UNSET: - field_dict["suspend"] = suspend - if priority is not UNSET: - field_dict["priority"] = priority - if retry is not UNSET: - field_dict["retry"] = retry - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_modules_item_suspend import RunFlowPreviewJsonBodyValueModulesItemSuspend - from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_0 import RunFlowPreviewJsonBodyValueModulesItemSleepType0 - from ..models.run_flow_preview_json_body_value_modules_item_mock import RunFlowPreviewJsonBodyValueModulesItemMock - from ..models.run_flow_preview_json_body_value_modules_item_stop_after_if import RunFlowPreviewJsonBodyValueModulesItemStopAfterIf - from ..models.run_flow_preview_json_body_value_modules_item_retry import RunFlowPreviewJsonBodyValueModulesItemRetry - from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_1 import RunFlowPreviewJsonBodyValueModulesItemSleepType1 - d = src_dict.copy() - id = d.pop("id") - - value = d.pop("value") - - _stop_after_if = d.pop("stop_after_if", UNSET) - stop_after_if: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemStopAfterIf] - if isinstance(_stop_after_if, Unset): - stop_after_if = UNSET - else: - stop_after_if = RunFlowPreviewJsonBodyValueModulesItemStopAfterIf.from_dict(_stop_after_if) - - - - - def _parse_sleep(data: object) -> Union['RunFlowPreviewJsonBodyValueModulesItemSleepType0', 'RunFlowPreviewJsonBodyValueModulesItemSleepType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _sleep_type_0 = data - sleep_type_0: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSleepType0] - if isinstance(_sleep_type_0, Unset): - sleep_type_0 = UNSET - else: - sleep_type_0 = RunFlowPreviewJsonBodyValueModulesItemSleepType0.from_dict(_sleep_type_0) - - - - return sleep_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _sleep_type_1 = data - sleep_type_1: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSleepType1] - if isinstance(_sleep_type_1, Unset): - sleep_type_1 = UNSET - else: - sleep_type_1 = RunFlowPreviewJsonBodyValueModulesItemSleepType1.from_dict(_sleep_type_1) - - - - return sleep_type_1 - - sleep = _parse_sleep(d.pop("sleep", UNSET)) - - - cache_ttl = d.pop("cache_ttl", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - summary = d.pop("summary", UNSET) - - _mock = d.pop("mock", UNSET) - mock: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemMock] - if isinstance(_mock, Unset): - mock = UNSET - else: - mock = RunFlowPreviewJsonBodyValueModulesItemMock.from_dict(_mock) - - - - - _suspend = d.pop("suspend", UNSET) - suspend: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspend] - if isinstance(_suspend, Unset): - suspend = UNSET - else: - suspend = RunFlowPreviewJsonBodyValueModulesItemSuspend.from_dict(_suspend) - - - - - priority = d.pop("priority", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = RunFlowPreviewJsonBodyValueModulesItemRetry.from_dict(_retry) - - - - - run_flow_preview_json_body_value_modules_item = cls( - id=id, - value=value, - stop_after_if=stop_after_if, - sleep=sleep, - cache_ttl=cache_ttl, - timeout=timeout, - delete_after_use=delete_after_use, - summary=summary, - mock=mock, - suspend=suspend, - priority=priority, - retry=retry, - ) - - run_flow_preview_json_body_value_modules_item.additional_properties = d - return run_flow_preview_json_body_value_modules_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_mock.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_mock.py deleted file mode 100644 index 2c25b7d80e..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_mock.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemMock") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemMock: - """ - Attributes: - enabled (Union[Unset, bool]): - return_value (Union[Unset, Any]): - """ - - enabled: Union[Unset, bool] = UNSET - return_value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - return_value = self.return_value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if enabled is not UNSET: - field_dict["enabled"] = enabled - if return_value is not UNSET: - field_dict["return_value"] = return_value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled", UNSET) - - return_value = d.pop("return_value", UNSET) - - run_flow_preview_json_body_value_modules_item_mock = cls( - enabled=enabled, - return_value=return_value, - ) - - run_flow_preview_json_body_value_modules_item_mock.additional_properties = d - return run_flow_preview_json_body_value_modules_item_mock - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry.py deleted file mode 100644 index a6b2c11804..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_modules_item_retry_exponential import RunFlowPreviewJsonBodyValueModulesItemRetryExponential - from ..models.run_flow_preview_json_body_value_modules_item_retry_constant import RunFlowPreviewJsonBodyValueModulesItemRetryConstant - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemRetry") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemRetry: - """ - Attributes: - constant (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemRetryConstant]): - exponential (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemRetryExponential]): - """ - - constant: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemRetryConstant'] = UNSET - exponential: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_modules_item_retry_exponential import RunFlowPreviewJsonBodyValueModulesItemRetryExponential - from ..models.run_flow_preview_json_body_value_modules_item_retry_constant import RunFlowPreviewJsonBodyValueModulesItemRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_modules_item_retry_exponential import RunFlowPreviewJsonBodyValueModulesItemRetryExponential - from ..models.run_flow_preview_json_body_value_modules_item_retry_constant import RunFlowPreviewJsonBodyValueModulesItemRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = RunFlowPreviewJsonBodyValueModulesItemRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = RunFlowPreviewJsonBodyValueModulesItemRetryExponential.from_dict(_exponential) - - - - - run_flow_preview_json_body_value_modules_item_retry = cls( - constant=constant, - exponential=exponential, - ) - - run_flow_preview_json_body_value_modules_item_retry.additional_properties = d - return run_flow_preview_json_body_value_modules_item_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry_constant.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry_constant.py deleted file mode 100644 index 11c4f9a521..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemRetryConstant") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - run_flow_preview_json_body_value_modules_item_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - run_flow_preview_json_body_value_modules_item_retry_constant.additional_properties = d - return run_flow_preview_json_body_value_modules_item_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry_exponential.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry_exponential.py deleted file mode 100644 index 6672450f1a..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemRetryExponential") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - run_flow_preview_json_body_value_modules_item_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - run_flow_preview_json_body_value_modules_item_retry_exponential.additional_properties = d - return run_flow_preview_json_body_value_modules_item_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_0.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_0.py deleted file mode 100644 index cc4444956a..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_0_type import RunFlowPreviewJsonBodyValueModulesItemSleepType0Type -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemSleepType0") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemSleepType0: - """ - Attributes: - type (RunFlowPreviewJsonBodyValueModulesItemSleepType0Type): - value (Union[Unset, Any]): - """ - - type: RunFlowPreviewJsonBodyValueModulesItemSleepType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = RunFlowPreviewJsonBodyValueModulesItemSleepType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - run_flow_preview_json_body_value_modules_item_sleep_type_0 = cls( - type=type, - value=value, - ) - - run_flow_preview_json_body_value_modules_item_sleep_type_0.additional_properties = d - return run_flow_preview_json_body_value_modules_item_sleep_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_0_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_0_type.py deleted file mode 100644 index 03e1929fd0..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueModulesItemSleepType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_1.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_1.py deleted file mode 100644 index cf06f86a44..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.run_flow_preview_json_body_value_modules_item_sleep_type_1_type import RunFlowPreviewJsonBodyValueModulesItemSleepType1Type - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemSleepType1") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemSleepType1: - """ - Attributes: - expr (str): - type (RunFlowPreviewJsonBodyValueModulesItemSleepType1Type): - """ - - expr: str - type: RunFlowPreviewJsonBodyValueModulesItemSleepType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = RunFlowPreviewJsonBodyValueModulesItemSleepType1Type(d.pop("type")) - - - - - run_flow_preview_json_body_value_modules_item_sleep_type_1 = cls( - expr=expr, - type=type, - ) - - run_flow_preview_json_body_value_modules_item_sleep_type_1.additional_properties = d - return run_flow_preview_json_body_value_modules_item_sleep_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_1_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_1_type.py deleted file mode 100644 index c8e6f820e5..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_sleep_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueModulesItemSleepType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_stop_after_if.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_stop_after_if.py deleted file mode 100644 index 250ee1539f..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_stop_after_if.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemStopAfterIf") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemStopAfterIf: - """ - Attributes: - expr (str): - skip_if_stopped (Union[Unset, bool]): - """ - - expr: str - skip_if_stopped: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - skip_if_stopped = self.skip_if_stopped - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - }) - if skip_if_stopped is not UNSET: - field_dict["skip_if_stopped"] = skip_if_stopped - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - skip_if_stopped = d.pop("skip_if_stopped", UNSET) - - run_flow_preview_json_body_value_modules_item_stop_after_if = cls( - expr=expr, - skip_if_stopped=skip_if_stopped, - ) - - run_flow_preview_json_body_value_modules_item_stop_after_if.additional_properties = d - return run_flow_preview_json_body_value_modules_item_stop_after_if - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend.py deleted file mode 100644 index ac99f72b53..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend.py +++ /dev/null @@ -1,177 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from typing import cast, Union -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0 import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1 import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.run_flow_preview_json_body_value_modules_item_suspend_resume_form import RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemSuspend") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemSuspend: - """ - Attributes: - required_events (Union[Unset, int]): - timeout (Union[Unset, int]): - resume_form (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm]): - user_auth_required (Union[Unset, bool]): - user_groups_required (Union['RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0', - 'RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1', Unset]): - """ - - required_events: Union[Unset, int] = UNSET - timeout: Union[Unset, int] = UNSET - resume_form: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm'] = UNSET - user_auth_required: Union[Unset, bool] = UNSET - user_groups_required: Union['RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0', 'RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1', Unset] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0 import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1 import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.run_flow_preview_json_body_value_modules_item_suspend_resume_form import RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm - required_events = self.required_events - timeout = self.timeout - resume_form: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.resume_form, Unset): - resume_form = self.resume_form.to_dict() - - user_auth_required = self.user_auth_required - user_groups_required: Union[Dict[str, Any], Unset] - if isinstance(self.user_groups_required, Unset): - user_groups_required = UNSET - - elif isinstance(self.user_groups_required, RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0): - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - else: - user_groups_required = UNSET - if not isinstance(self.user_groups_required, Unset): - user_groups_required = self.user_groups_required.to_dict() - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if required_events is not UNSET: - field_dict["required_events"] = required_events - if timeout is not UNSET: - field_dict["timeout"] = timeout - if resume_form is not UNSET: - field_dict["resume_form"] = resume_form - if user_auth_required is not UNSET: - field_dict["user_auth_required"] = user_auth_required - if user_groups_required is not UNSET: - field_dict["user_groups_required"] = user_groups_required - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0 import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0 - from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1 import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1 - from ..models.run_flow_preview_json_body_value_modules_item_suspend_resume_form import RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm - d = src_dict.copy() - required_events = d.pop("required_events", UNSET) - - timeout = d.pop("timeout", UNSET) - - _resume_form = d.pop("resume_form", UNSET) - resume_form: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm] - if isinstance(_resume_form, Unset): - resume_form = UNSET - else: - resume_form = RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm.from_dict(_resume_form) - - - - - user_auth_required = d.pop("user_auth_required", UNSET) - - def _parse_user_groups_required(data: object) -> Union['RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0', 'RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1', Unset]: - if isinstance(data, Unset): - return data - try: - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_0 = data - user_groups_required_type_0: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0] - if isinstance(_user_groups_required_type_0, Unset): - user_groups_required_type_0 = UNSET - else: - user_groups_required_type_0 = RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0.from_dict(_user_groups_required_type_0) - - - - return user_groups_required_type_0 - except: # noqa: E722 - pass - if not isinstance(data, dict): - raise TypeError() - _user_groups_required_type_1 = data - user_groups_required_type_1: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1] - if isinstance(_user_groups_required_type_1, Unset): - user_groups_required_type_1 = UNSET - else: - user_groups_required_type_1 = RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1.from_dict(_user_groups_required_type_1) - - - - return user_groups_required_type_1 - - user_groups_required = _parse_user_groups_required(d.pop("user_groups_required", UNSET)) - - - run_flow_preview_json_body_value_modules_item_suspend = cls( - required_events=required_events, - timeout=timeout, - resume_form=resume_form, - user_auth_required=user_auth_required, - user_groups_required=user_groups_required, - ) - - run_flow_preview_json_body_value_modules_item_suspend.additional_properties = d - return run_flow_preview_json_body_value_modules_item_suspend - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_resume_form.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_resume_form.py deleted file mode 100644 index 4e247a41cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_resume_form.py +++ /dev/null @@ -1,90 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema import RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemSuspendResumeForm: - """ - Attributes: - schema (Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema]): - """ - - schema: Union[Unset, 'RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema import RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema import RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema - d = src_dict.copy() - _schema = d.pop("schema", UNSET) - schema: Union[Unset, RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema.from_dict(_schema) - - - - - run_flow_preview_json_body_value_modules_item_suspend_resume_form = cls( - schema=schema, - ) - - run_flow_preview_json_body_value_modules_item_suspend_resume_form.additional_properties = d - return run_flow_preview_json_body_value_modules_item_suspend_resume_form - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema.py deleted file mode 100644 index d780cd62f8..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemSuspendResumeFormSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema = cls( - ) - - run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema.additional_properties = d - return run_flow_preview_json_body_value_modules_item_suspend_resume_form_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0.py deleted file mode 100644 index 0ca0bcc4c0..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0_type import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0Type - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0: - """ - Attributes: - type (RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0Type): - value (Union[Unset, Any]): - """ - - type: RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0Type - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0Type(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0 = cls( - type=type, - value=value, - ) - - run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0.additional_properties = d - return run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0_type.py deleted file mode 100644 index e117cebe9a..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_0_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType0Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1.py deleted file mode 100644 index 8925d8a481..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1.py +++ /dev/null @@ -1,82 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1_type import RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1Type - - - - - - -T = TypeVar("T", bound="RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1") - - -@_attrs_define -class RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1: - """ - Attributes: - expr (str): - type (RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1Type): - """ - - expr: str - type: RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1Type - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - expr = self.expr - type = self.type.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "expr": expr, - "type": type, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - expr = d.pop("expr") - - type = RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1Type(d.pop("type")) - - - - - run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1 = cls( - expr=expr, - type=type, - ) - - run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1.additional_properties = d - return run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1_type.py b/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1_type.py deleted file mode 100644 index 50d6235f38..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_flow_preview_json_body_value_modules_item_suspend_user_groups_required_type_1_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class RunFlowPreviewJsonBodyValueModulesItemSuspendUserGroupsRequiredType1Type(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body.py b/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body.py deleted file mode 100644 index 6fdeac74c9..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body.py +++ /dev/null @@ -1,100 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, List - -if TYPE_CHECKING: - from ..models.run_raw_script_dependencies_json_body_raw_scripts_item import RunRawScriptDependenciesJsonBodyRawScriptsItem - - - - - -T = TypeVar("T", bound="RunRawScriptDependenciesJsonBody") - - -@_attrs_define -class RunRawScriptDependenciesJsonBody: - """ - Attributes: - raw_scripts (List['RunRawScriptDependenciesJsonBodyRawScriptsItem']): - entrypoint (str): - """ - - raw_scripts: List['RunRawScriptDependenciesJsonBodyRawScriptsItem'] - entrypoint: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_raw_script_dependencies_json_body_raw_scripts_item import RunRawScriptDependenciesJsonBodyRawScriptsItem - raw_scripts = [] - for raw_scripts_item_data in self.raw_scripts: - raw_scripts_item = raw_scripts_item_data.to_dict() - - raw_scripts.append(raw_scripts_item) - - - - - entrypoint = self.entrypoint - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "raw_scripts": raw_scripts, - "entrypoint": entrypoint, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_raw_script_dependencies_json_body_raw_scripts_item import RunRawScriptDependenciesJsonBodyRawScriptsItem - d = src_dict.copy() - raw_scripts = [] - _raw_scripts = d.pop("raw_scripts") - for raw_scripts_item_data in (_raw_scripts): - raw_scripts_item = RunRawScriptDependenciesJsonBodyRawScriptsItem.from_dict(raw_scripts_item_data) - - - - raw_scripts.append(raw_scripts_item) - - - entrypoint = d.pop("entrypoint") - - run_raw_script_dependencies_json_body = cls( - raw_scripts=raw_scripts, - entrypoint=entrypoint, - ) - - run_raw_script_dependencies_json_body.additional_properties = d - return run_raw_script_dependencies_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item.py b/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item.py deleted file mode 100644 index 26a196830b..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from ..models.run_raw_script_dependencies_json_body_raw_scripts_item_language import RunRawScriptDependenciesJsonBodyRawScriptsItemLanguage - - - - - - -T = TypeVar("T", bound="RunRawScriptDependenciesJsonBodyRawScriptsItem") - - -@_attrs_define -class RunRawScriptDependenciesJsonBodyRawScriptsItem: - """ - Attributes: - content (str): - path (str): - language (RunRawScriptDependenciesJsonBodyRawScriptsItemLanguage): - """ - - content: str - path: str - language: RunRawScriptDependenciesJsonBodyRawScriptsItemLanguage - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - content = self.content - path = self.path - language = self.language.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "content": content, - "path": path, - "language": language, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - content = d.pop("content") - - path = d.pop("path") - - language = RunRawScriptDependenciesJsonBodyRawScriptsItemLanguage(d.pop("language")) - - - - - run_raw_script_dependencies_json_body_raw_scripts_item = cls( - content=content, - path=path, - language=language, - ) - - run_raw_script_dependencies_json_body_raw_scripts_item.additional_properties = d - return run_raw_script_dependencies_json_body_raw_scripts_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py b/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py deleted file mode 100644 index 98a32759e9..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class RunRawScriptDependenciesJsonBodyRawScriptsItemLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_response_201.py b/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_response_201.py deleted file mode 100644 index 6a5c2a742c..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_raw_script_dependencies_response_201.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunRawScriptDependenciesResponse201") - - -@_attrs_define -class RunRawScriptDependenciesResponse201: - """ - Attributes: - lock (str): - """ - - lock: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - lock = self.lock - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "lock": lock, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - lock = d.pop("lock") - - run_raw_script_dependencies_response_201 = cls( - lock=lock, - ) - - run_raw_script_dependencies_response_201.additional_properties = d - return run_raw_script_dependencies_response_201 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_script_by_hash_json_body.py b/python-client/windmill-api/windmill_api/models/run_script_by_hash_json_body.py deleted file mode 100644 index 18fff4f390..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_script_by_hash_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunScriptByHashJsonBody") - - -@_attrs_define -class RunScriptByHashJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_script_by_hash_json_body = cls( - ) - - run_script_by_hash_json_body.additional_properties = d - return run_script_by_hash_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_script_by_path_json_body.py b/python-client/windmill-api/windmill_api/models/run_script_by_path_json_body.py deleted file mode 100644 index 0647141d63..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_script_by_path_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunScriptByPathJsonBody") - - -@_attrs_define -class RunScriptByPathJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_script_by_path_json_body = cls( - ) - - run_script_by_path_json_body.additional_properties = d - return run_script_by_path_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body.py b/python-client/windmill-api/windmill_api/models/run_script_preview_json_body.py deleted file mode 100644 index be5e2d3504..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body.py +++ /dev/null @@ -1,154 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.run_script_preview_json_body_language import RunScriptPreviewJsonBodyLanguage -from typing import Dict -from ..types import UNSET, Unset -from ..models.run_script_preview_json_body_kind import RunScriptPreviewJsonBodyKind - -if TYPE_CHECKING: - from ..models.run_script_preview_json_body_args import RunScriptPreviewJsonBodyArgs - - - - - -T = TypeVar("T", bound="RunScriptPreviewJsonBody") - - -@_attrs_define -class RunScriptPreviewJsonBody: - """ - Attributes: - args (RunScriptPreviewJsonBodyArgs): - content (Union[Unset, str]): - path (Union[Unset, str]): - language (Union[Unset, RunScriptPreviewJsonBodyLanguage]): - tag (Union[Unset, str]): - kind (Union[Unset, RunScriptPreviewJsonBodyKind]): - dedicated_worker (Union[Unset, bool]): - """ - - args: 'RunScriptPreviewJsonBodyArgs' - content: Union[Unset, str] = UNSET - path: Union[Unset, str] = UNSET - language: Union[Unset, RunScriptPreviewJsonBodyLanguage] = UNSET - tag: Union[Unset, str] = UNSET - kind: Union[Unset, RunScriptPreviewJsonBodyKind] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.run_script_preview_json_body_args import RunScriptPreviewJsonBodyArgs - args = self.args.to_dict() - - content = self.content - path = self.path - language: Union[Unset, str] = UNSET - if not isinstance(self.language, Unset): - language = self.language.value - - tag = self.tag - kind: Union[Unset, str] = UNSET - if not isinstance(self.kind, Unset): - kind = self.kind.value - - dedicated_worker = self.dedicated_worker - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "args": args, - }) - if content is not UNSET: - field_dict["content"] = content - if path is not UNSET: - field_dict["path"] = path - if language is not UNSET: - field_dict["language"] = language - if tag is not UNSET: - field_dict["tag"] = tag - if kind is not UNSET: - field_dict["kind"] = kind - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.run_script_preview_json_body_args import RunScriptPreviewJsonBodyArgs - d = src_dict.copy() - args = RunScriptPreviewJsonBodyArgs.from_dict(d.pop("args")) - - - - - content = d.pop("content", UNSET) - - path = d.pop("path", UNSET) - - _language = d.pop("language", UNSET) - language: Union[Unset, RunScriptPreviewJsonBodyLanguage] - if isinstance(_language, Unset): - language = UNSET - else: - language = RunScriptPreviewJsonBodyLanguage(_language) - - - - - tag = d.pop("tag", UNSET) - - _kind = d.pop("kind", UNSET) - kind: Union[Unset, RunScriptPreviewJsonBodyKind] - if isinstance(_kind, Unset): - kind = UNSET - else: - kind = RunScriptPreviewJsonBodyKind(_kind) - - - - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - run_script_preview_json_body = cls( - args=args, - content=content, - path=path, - language=language, - tag=tag, - kind=kind, - dedicated_worker=dedicated_worker, - ) - - run_script_preview_json_body.additional_properties = d - return run_script_preview_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_args.py b/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_args.py deleted file mode 100644 index 24f035fc91..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunScriptPreviewJsonBodyArgs") - - -@_attrs_define -class RunScriptPreviewJsonBodyArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_script_preview_json_body_args = cls( - ) - - run_script_preview_json_body_args.additional_properties = d - return run_script_preview_json_body_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_kind.py b/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_kind.py deleted file mode 100644 index 677baa8a64..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_kind.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class RunScriptPreviewJsonBodyKind(str, Enum): - CODE = "code" - HTTP = "http" - IDENTITY = "identity" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_language.py b/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_language.py deleted file mode 100644 index 1e664fb544..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_script_preview_json_body_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class RunScriptPreviewJsonBodyLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/run_slack_message_test_job_json_body.py b/python-client/windmill-api/windmill_api/models/run_slack_message_test_job_json_body.py deleted file mode 100644 index 6ac85c3b77..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_slack_message_test_job_json_body.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="RunSlackMessageTestJobJsonBody") - - -@_attrs_define -class RunSlackMessageTestJobJsonBody: - """ - Attributes: - hub_script_path (Union[Unset, str]): - channel (Union[Unset, str]): - test_msg (Union[Unset, str]): - """ - - hub_script_path: Union[Unset, str] = UNSET - channel: Union[Unset, str] = UNSET - test_msg: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - hub_script_path = self.hub_script_path - channel = self.channel - test_msg = self.test_msg - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if hub_script_path is not UNSET: - field_dict["hub_script_path"] = hub_script_path - if channel is not UNSET: - field_dict["channel"] = channel - if test_msg is not UNSET: - field_dict["test_msg"] = test_msg - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - hub_script_path = d.pop("hub_script_path", UNSET) - - channel = d.pop("channel", UNSET) - - test_msg = d.pop("test_msg", UNSET) - - run_slack_message_test_job_json_body = cls( - hub_script_path=hub_script_path, - channel=channel, - test_msg=test_msg, - ) - - run_slack_message_test_job_json_body.additional_properties = d - return run_slack_message_test_job_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_wait_result_flow_by_path_json_body.py b/python-client/windmill-api/windmill_api/models/run_wait_result_flow_by_path_json_body.py deleted file mode 100644 index c020720114..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_wait_result_flow_by_path_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunWaitResultFlowByPathJsonBody") - - -@_attrs_define -class RunWaitResultFlowByPathJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_wait_result_flow_by_path_json_body = cls( - ) - - run_wait_result_flow_by_path_json_body.additional_properties = d - return run_wait_result_flow_by_path_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/run_wait_result_script_by_path_json_body.py b/python-client/windmill-api/windmill_api/models/run_wait_result_script_by_path_json_body.py deleted file mode 100644 index 7183c5a9e6..0000000000 --- a/python-client/windmill-api/windmill_api/models/run_wait_result_script_by_path_json_body.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="RunWaitResultScriptByPathJsonBody") - - -@_attrs_define -class RunWaitResultScriptByPathJsonBody: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - run_wait_result_script_by_path_json_body = cls( - ) - - run_wait_result_script_by_path_json_body.additional_properties = d - return run_wait_result_script_by_path_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/runnable_type.py b/python-client/windmill-api/windmill_api/models/runnable_type.py deleted file mode 100644 index d583328931..0000000000 --- a/python-client/windmill-api/windmill_api/models/runnable_type.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class RunnableType(str, Enum): - FLOWPATH = "FlowPath" - SCRIPTHASH = "ScriptHash" - SCRIPTPATH = "ScriptPath" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/s3_resource.py b/python-client/windmill-api/windmill_api/models/s3_resource.py deleted file mode 100644 index a89a73bfde..0000000000 --- a/python-client/windmill-api/windmill_api/models/s3_resource.py +++ /dev/null @@ -1,116 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="S3Resource") - - -@_attrs_define -class S3Resource: - """ - Attributes: - bucket (str): - region (str): - end_point (str): - use_ssl (bool): - path_style (bool): - access_key (Union[Unset, str]): - secret_key (Union[Unset, str]): - """ - - bucket: str - region: str - end_point: str - use_ssl: bool - path_style: bool - access_key: Union[Unset, str] = UNSET - secret_key: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - bucket = self.bucket - region = self.region - end_point = self.end_point - use_ssl = self.use_ssl - path_style = self.path_style - access_key = self.access_key - secret_key = self.secret_key - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "bucket": bucket, - "region": region, - "endPoint": end_point, - "useSSL": use_ssl, - "pathStyle": path_style, - }) - if access_key is not UNSET: - field_dict["accessKey"] = access_key - if secret_key is not UNSET: - field_dict["secretKey"] = secret_key - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - bucket = d.pop("bucket") - - region = d.pop("region") - - end_point = d.pop("endPoint") - - use_ssl = d.pop("useSSL") - - path_style = d.pop("pathStyle") - - access_key = d.pop("accessKey", UNSET) - - secret_key = d.pop("secretKey", UNSET) - - s3_resource = cls( - bucket=bucket, - region=region, - end_point=end_point, - use_ssl=use_ssl, - path_style=path_style, - access_key=access_key, - secret_key=secret_key, - ) - - s3_resource.additional_properties = d - return s3_resource - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/s3_resource_info_json_body.py b/python-client/windmill-api/windmill_api/models/s3_resource_info_json_body.py deleted file mode 100644 index b9b308e986..0000000000 --- a/python-client/windmill-api/windmill_api/models/s3_resource_info_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="S3ResourceInfoJsonBody") - - -@_attrs_define -class S3ResourceInfoJsonBody: - """ - Attributes: - s3_resource_path (Union[Unset, str]): - """ - - s3_resource_path: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - s3_resource_path = self.s3_resource_path - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if s3_resource_path is not UNSET: - field_dict["s3_resource_path"] = s3_resource_path - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - s3_resource_path = d.pop("s3_resource_path", UNSET) - - s3_resource_info_json_body = cls( - s3_resource_path=s3_resource_path, - ) - - s3_resource_info_json_body.additional_properties = d - return s3_resource_info_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/s3_resource_info_response_200.py b/python-client/windmill-api/windmill_api/models/s3_resource_info_response_200.py deleted file mode 100644 index 7301973878..0000000000 --- a/python-client/windmill-api/windmill_api/models/s3_resource_info_response_200.py +++ /dev/null @@ -1,116 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="S3ResourceInfoResponse200") - - -@_attrs_define -class S3ResourceInfoResponse200: - """ - Attributes: - bucket (str): - region (str): - end_point (str): - use_ssl (bool): - path_style (bool): - access_key (Union[Unset, str]): - secret_key (Union[Unset, str]): - """ - - bucket: str - region: str - end_point: str - use_ssl: bool - path_style: bool - access_key: Union[Unset, str] = UNSET - secret_key: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - bucket = self.bucket - region = self.region - end_point = self.end_point - use_ssl = self.use_ssl - path_style = self.path_style - access_key = self.access_key - secret_key = self.secret_key - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "bucket": bucket, - "region": region, - "endPoint": end_point, - "useSSL": use_ssl, - "pathStyle": path_style, - }) - if access_key is not UNSET: - field_dict["accessKey"] = access_key - if secret_key is not UNSET: - field_dict["secretKey"] = secret_key - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - bucket = d.pop("bucket") - - region = d.pop("region") - - end_point = d.pop("endPoint") - - use_ssl = d.pop("useSSL") - - path_style = d.pop("pathStyle") - - access_key = d.pop("accessKey", UNSET) - - secret_key = d.pop("secretKey", UNSET) - - s3_resource_info_response_200 = cls( - bucket=bucket, - region=region, - end_point=end_point, - use_ssl=use_ssl, - path_style=path_style, - access_key=access_key, - secret_key=secret_key, - ) - - s3_resource_info_response_200.additional_properties = d - return s3_resource_info_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/scalar_metric.py b/python-client/windmill-api/windmill_api/models/scalar_metric.py deleted file mode 100644 index ea1d58dc19..0000000000 --- a/python-client/windmill-api/windmill_api/models/scalar_metric.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ScalarMetric") - - -@_attrs_define -class ScalarMetric: - """ - Attributes: - value (float): - metric_id (Union[Unset, str]): - """ - - value: float - metric_id: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - value = self.value - metric_id = self.metric_id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "value": value, - }) - if metric_id is not UNSET: - field_dict["metric_id"] = metric_id - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - value = d.pop("value") - - metric_id = d.pop("metric_id", UNSET) - - scalar_metric = cls( - value=value, - metric_id=metric_id, - ) - - scalar_metric.additional_properties = d - return scalar_metric - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule.py b/python-client/windmill-api/windmill_api/models/schedule.py deleted file mode 100644 index 84b1372b29..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule.py +++ /dev/null @@ -1,319 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.schedule_retry import ScheduleRetry - from ..models.schedule_extra_perms import ScheduleExtraPerms - from ..models.schedule_args import ScheduleArgs - from ..models.schedule_on_failure_extra_args import ScheduleOnFailureExtraArgs - from ..models.schedule_on_recovery_extra_args import ScheduleOnRecoveryExtraArgs - - - - - -T = TypeVar("T", bound="Schedule") - - -@_attrs_define -class Schedule: - """ - Attributes: - path (str): - edited_by (str): - edited_at (datetime.datetime): - schedule (str): - timezone (str): - enabled (bool): - script_path (str): - is_flow (bool): - extra_perms (ScheduleExtraPerms): - email (str): - args (Union[Unset, ScheduleArgs]): - error (Union[Unset, str]): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, ScheduleOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, ScheduleOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, ScheduleRetry]): - summary (Union[Unset, str]): - no_flow_overlap (Union[Unset, bool]): - tag (Union[Unset, str]): - """ - - path: str - edited_by: str - edited_at: datetime.datetime - schedule: str - timezone: str - enabled: bool - script_path: str - is_flow: bool - extra_perms: 'ScheduleExtraPerms' - email: str - args: Union[Unset, 'ScheduleArgs'] = UNSET - error: Union[Unset, str] = UNSET - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'ScheduleOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'ScheduleOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'ScheduleRetry'] = UNSET - summary: Union[Unset, str] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.schedule_retry import ScheduleRetry - from ..models.schedule_extra_perms import ScheduleExtraPerms - from ..models.schedule_args import ScheduleArgs - from ..models.schedule_on_failure_extra_args import ScheduleOnFailureExtraArgs - from ..models.schedule_on_recovery_extra_args import ScheduleOnRecoveryExtraArgs - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - schedule = self.schedule - timezone = self.timezone - enabled = self.enabled - script_path = self.script_path - is_flow = self.is_flow - extra_perms = self.extra_perms.to_dict() - - email = self.email - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - error = self.error - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - summary = self.summary - no_flow_overlap = self.no_flow_overlap - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "schedule": schedule, - "timezone": timezone, - "enabled": enabled, - "script_path": script_path, - "is_flow": is_flow, - "extra_perms": extra_perms, - "email": email, - }) - if args is not UNSET: - field_dict["args"] = args - if error is not UNSET: - field_dict["error"] = error - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if summary is not UNSET: - field_dict["summary"] = summary - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if tag is not UNSET: - field_dict["tag"] = tag - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.schedule_retry import ScheduleRetry - from ..models.schedule_extra_perms import ScheduleExtraPerms - from ..models.schedule_args import ScheduleArgs - from ..models.schedule_on_failure_extra_args import ScheduleOnFailureExtraArgs - from ..models.schedule_on_recovery_extra_args import ScheduleOnRecoveryExtraArgs - d = src_dict.copy() - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - enabled = d.pop("enabled") - - script_path = d.pop("script_path") - - is_flow = d.pop("is_flow") - - extra_perms = ScheduleExtraPerms.from_dict(d.pop("extra_perms")) - - - - - email = d.pop("email") - - _args = d.pop("args", UNSET) - args: Union[Unset, ScheduleArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = ScheduleArgs.from_dict(_args) - - - - - error = d.pop("error", UNSET) - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, ScheduleOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = ScheduleOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, ScheduleOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = ScheduleOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ScheduleRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ScheduleRetry.from_dict(_retry) - - - - - summary = d.pop("summary", UNSET) - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - tag = d.pop("tag", UNSET) - - schedule = cls( - path=path, - edited_by=edited_by, - edited_at=edited_at, - schedule=schedule, - timezone=timezone, - enabled=enabled, - script_path=script_path, - is_flow=is_flow, - extra_perms=extra_perms, - email=email, - args=args, - error=error, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - summary=summary, - no_flow_overlap=no_flow_overlap, - tag=tag, - ) - - schedule.additional_properties = d - return schedule - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_args.py b/python-client/windmill-api/windmill_api/models/schedule_args.py deleted file mode 100644 index 57f0ba46ad..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleArgs") - - -@_attrs_define -class ScheduleArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_args = cls( - ) - - schedule_args.additional_properties = d - return schedule_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_extra_perms.py b/python-client/windmill-api/windmill_api/models/schedule_extra_perms.py deleted file mode 100644 index 5e057411a8..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleExtraPerms") - - -@_attrs_define -class ScheduleExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_extra_perms = cls( - ) - - - schedule_extra_perms.additional_properties = d - return schedule_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/schedule_on_failure_extra_args.py deleted file mode 100644 index 095fe3e844..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleOnFailureExtraArgs") - - -@_attrs_define -class ScheduleOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_on_failure_extra_args = cls( - ) - - schedule_on_failure_extra_args.additional_properties = d - return schedule_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/schedule_on_recovery_extra_args.py deleted file mode 100644 index d8cf492eff..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleOnRecoveryExtraArgs") - - -@_attrs_define -class ScheduleOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_on_recovery_extra_args = cls( - ) - - schedule_on_recovery_extra_args.additional_properties = d - return schedule_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_retry.py b/python-client/windmill-api/windmill_api/models/schedule_retry.py deleted file mode 100644 index 2677c099d2..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.schedule_retry_exponential import ScheduleRetryExponential - from ..models.schedule_retry_constant import ScheduleRetryConstant - - - - - -T = TypeVar("T", bound="ScheduleRetry") - - -@_attrs_define -class ScheduleRetry: - """ - Attributes: - constant (Union[Unset, ScheduleRetryConstant]): - exponential (Union[Unset, ScheduleRetryExponential]): - """ - - constant: Union[Unset, 'ScheduleRetryConstant'] = UNSET - exponential: Union[Unset, 'ScheduleRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.schedule_retry_exponential import ScheduleRetryExponential - from ..models.schedule_retry_constant import ScheduleRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.schedule_retry_exponential import ScheduleRetryExponential - from ..models.schedule_retry_constant import ScheduleRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ScheduleRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ScheduleRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ScheduleRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ScheduleRetryExponential.from_dict(_exponential) - - - - - schedule_retry = cls( - constant=constant, - exponential=exponential, - ) - - schedule_retry.additional_properties = d - return schedule_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_retry_constant.py b/python-client/windmill-api/windmill_api/models/schedule_retry_constant.py deleted file mode 100644 index 731165bfe4..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ScheduleRetryConstant") - - -@_attrs_define -class ScheduleRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - schedule_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - schedule_retry_constant.additional_properties = d - return schedule_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_retry_exponential.py b/python-client/windmill-api/windmill_api/models/schedule_retry_exponential.py deleted file mode 100644 index 9f522cb84e..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ScheduleRetryExponential") - - -@_attrs_define -class ScheduleRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - schedule_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - schedule_retry_exponential.additional_properties = d - return schedule_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs.py deleted file mode 100644 index 05389ac0b8..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs.py +++ /dev/null @@ -1,349 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.schedule_w_jobs_extra_perms import ScheduleWJobsExtraPerms - from ..models.schedule_w_jobs_on_recovery_extra_args import ScheduleWJobsOnRecoveryExtraArgs - from ..models.schedule_w_jobs_retry import ScheduleWJobsRetry - from ..models.schedule_w_jobs_args import ScheduleWJobsArgs - from ..models.schedule_w_jobs_on_failure_extra_args import ScheduleWJobsOnFailureExtraArgs - from ..models.schedule_w_jobs_jobs_item import ScheduleWJobsJobsItem - - - - - -T = TypeVar("T", bound="ScheduleWJobs") - - -@_attrs_define -class ScheduleWJobs: - """ - Attributes: - path (str): - edited_by (str): - edited_at (datetime.datetime): - schedule (str): - timezone (str): - enabled (bool): - script_path (str): - is_flow (bool): - extra_perms (ScheduleWJobsExtraPerms): - email (str): - args (Union[Unset, ScheduleWJobsArgs]): - error (Union[Unset, str]): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, ScheduleWJobsOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, ScheduleWJobsOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, ScheduleWJobsRetry]): - summary (Union[Unset, str]): - no_flow_overlap (Union[Unset, bool]): - tag (Union[Unset, str]): - jobs (Union[Unset, List['ScheduleWJobsJobsItem']]): - """ - - path: str - edited_by: str - edited_at: datetime.datetime - schedule: str - timezone: str - enabled: bool - script_path: str - is_flow: bool - extra_perms: 'ScheduleWJobsExtraPerms' - email: str - args: Union[Unset, 'ScheduleWJobsArgs'] = UNSET - error: Union[Unset, str] = UNSET - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'ScheduleWJobsOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'ScheduleWJobsOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'ScheduleWJobsRetry'] = UNSET - summary: Union[Unset, str] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - tag: Union[Unset, str] = UNSET - jobs: Union[Unset, List['ScheduleWJobsJobsItem']] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.schedule_w_jobs_extra_perms import ScheduleWJobsExtraPerms - from ..models.schedule_w_jobs_on_recovery_extra_args import ScheduleWJobsOnRecoveryExtraArgs - from ..models.schedule_w_jobs_retry import ScheduleWJobsRetry - from ..models.schedule_w_jobs_args import ScheduleWJobsArgs - from ..models.schedule_w_jobs_on_failure_extra_args import ScheduleWJobsOnFailureExtraArgs - from ..models.schedule_w_jobs_jobs_item import ScheduleWJobsJobsItem - path = self.path - edited_by = self.edited_by - edited_at = self.edited_at.isoformat() - - schedule = self.schedule - timezone = self.timezone - enabled = self.enabled - script_path = self.script_path - is_flow = self.is_flow - extra_perms = self.extra_perms.to_dict() - - email = self.email - args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.args, Unset): - args = self.args.to_dict() - - error = self.error - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - summary = self.summary - no_flow_overlap = self.no_flow_overlap - tag = self.tag - jobs: Union[Unset, List[Dict[str, Any]]] = UNSET - if not isinstance(self.jobs, Unset): - jobs = [] - for jobs_item_data in self.jobs: - jobs_item = jobs_item_data.to_dict() - - jobs.append(jobs_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "path": path, - "edited_by": edited_by, - "edited_at": edited_at, - "schedule": schedule, - "timezone": timezone, - "enabled": enabled, - "script_path": script_path, - "is_flow": is_flow, - "extra_perms": extra_perms, - "email": email, - }) - if args is not UNSET: - field_dict["args"] = args - if error is not UNSET: - field_dict["error"] = error - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if summary is not UNSET: - field_dict["summary"] = summary - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if tag is not UNSET: - field_dict["tag"] = tag - if jobs is not UNSET: - field_dict["jobs"] = jobs - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.schedule_w_jobs_extra_perms import ScheduleWJobsExtraPerms - from ..models.schedule_w_jobs_on_recovery_extra_args import ScheduleWJobsOnRecoveryExtraArgs - from ..models.schedule_w_jobs_retry import ScheduleWJobsRetry - from ..models.schedule_w_jobs_args import ScheduleWJobsArgs - from ..models.schedule_w_jobs_on_failure_extra_args import ScheduleWJobsOnFailureExtraArgs - from ..models.schedule_w_jobs_jobs_item import ScheduleWJobsJobsItem - d = src_dict.copy() - path = d.pop("path") - - edited_by = d.pop("edited_by") - - edited_at = isoparse(d.pop("edited_at")) - - - - - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - enabled = d.pop("enabled") - - script_path = d.pop("script_path") - - is_flow = d.pop("is_flow") - - extra_perms = ScheduleWJobsExtraPerms.from_dict(d.pop("extra_perms")) - - - - - email = d.pop("email") - - _args = d.pop("args", UNSET) - args: Union[Unset, ScheduleWJobsArgs] - if isinstance(_args, Unset): - args = UNSET - else: - args = ScheduleWJobsArgs.from_dict(_args) - - - - - error = d.pop("error", UNSET) - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, ScheduleWJobsOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = ScheduleWJobsOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, ScheduleWJobsOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = ScheduleWJobsOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, ScheduleWJobsRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = ScheduleWJobsRetry.from_dict(_retry) - - - - - summary = d.pop("summary", UNSET) - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - tag = d.pop("tag", UNSET) - - jobs = [] - _jobs = d.pop("jobs", UNSET) - for jobs_item_data in (_jobs or []): - jobs_item = ScheduleWJobsJobsItem.from_dict(jobs_item_data) - - - - jobs.append(jobs_item) - - - schedule_w_jobs = cls( - path=path, - edited_by=edited_by, - edited_at=edited_at, - schedule=schedule, - timezone=timezone, - enabled=enabled, - script_path=script_path, - is_flow=is_flow, - extra_perms=extra_perms, - email=email, - args=args, - error=error, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - summary=summary, - no_flow_overlap=no_flow_overlap, - tag=tag, - jobs=jobs, - ) - - schedule_w_jobs.additional_properties = d - return schedule_w_jobs - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_args.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_args.py deleted file mode 100644 index 914f0fbd2d..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleWJobsArgs") - - -@_attrs_define -class ScheduleWJobsArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_w_jobs_args = cls( - ) - - schedule_w_jobs_args.additional_properties = d - return schedule_w_jobs_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_extra_perms.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_extra_perms.py deleted file mode 100644 index 0aa3cc6197..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleWJobsExtraPerms") - - -@_attrs_define -class ScheduleWJobsExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_w_jobs_extra_perms = cls( - ) - - - schedule_w_jobs_extra_perms.additional_properties = d - return schedule_w_jobs_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_jobs_item.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_jobs_item.py deleted file mode 100644 index 32cca05629..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_jobs_item.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleWJobsJobsItem") - - -@_attrs_define -class ScheduleWJobsJobsItem: - """ - Attributes: - id (str): - success (bool): - duration_ms (float): - """ - - id: str - success: bool - duration_ms: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - success = self.success - duration_ms = self.duration_ms - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "success": success, - "duration_ms": duration_ms, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - success = d.pop("success") - - duration_ms = d.pop("duration_ms") - - schedule_w_jobs_jobs_item = cls( - id=id, - success=success, - duration_ms=duration_ms, - ) - - schedule_w_jobs_jobs_item.additional_properties = d - return schedule_w_jobs_jobs_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_on_failure_extra_args.py deleted file mode 100644 index f134daed94..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleWJobsOnFailureExtraArgs") - - -@_attrs_define -class ScheduleWJobsOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_w_jobs_on_failure_extra_args = cls( - ) - - schedule_w_jobs_on_failure_extra_args.additional_properties = d - return schedule_w_jobs_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_on_recovery_extra_args.py deleted file mode 100644 index 7c5b575c44..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScheduleWJobsOnRecoveryExtraArgs") - - -@_attrs_define -class ScheduleWJobsOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schedule_w_jobs_on_recovery_extra_args = cls( - ) - - schedule_w_jobs_on_recovery_extra_args.additional_properties = d - return schedule_w_jobs_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry.py deleted file mode 100644 index 5c87dce524..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.schedule_w_jobs_retry_constant import ScheduleWJobsRetryConstant - from ..models.schedule_w_jobs_retry_exponential import ScheduleWJobsRetryExponential - - - - - -T = TypeVar("T", bound="ScheduleWJobsRetry") - - -@_attrs_define -class ScheduleWJobsRetry: - """ - Attributes: - constant (Union[Unset, ScheduleWJobsRetryConstant]): - exponential (Union[Unset, ScheduleWJobsRetryExponential]): - """ - - constant: Union[Unset, 'ScheduleWJobsRetryConstant'] = UNSET - exponential: Union[Unset, 'ScheduleWJobsRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.schedule_w_jobs_retry_constant import ScheduleWJobsRetryConstant - from ..models.schedule_w_jobs_retry_exponential import ScheduleWJobsRetryExponential - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.schedule_w_jobs_retry_constant import ScheduleWJobsRetryConstant - from ..models.schedule_w_jobs_retry_exponential import ScheduleWJobsRetryExponential - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, ScheduleWJobsRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = ScheduleWJobsRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, ScheduleWJobsRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = ScheduleWJobsRetryExponential.from_dict(_exponential) - - - - - schedule_w_jobs_retry = cls( - constant=constant, - exponential=exponential, - ) - - schedule_w_jobs_retry.additional_properties = d - return schedule_w_jobs_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry_constant.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry_constant.py deleted file mode 100644 index 7869e06484..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ScheduleWJobsRetryConstant") - - -@_attrs_define -class ScheduleWJobsRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - schedule_w_jobs_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - schedule_w_jobs_retry_constant.additional_properties = d - return schedule_w_jobs_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry_exponential.py b/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry_exponential.py deleted file mode 100644 index 80d9e25627..0000000000 --- a/python-client/windmill-api/windmill_api/models/schedule_w_jobs_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ScheduleWJobsRetryExponential") - - -@_attrs_define -class ScheduleWJobsRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - schedule_w_jobs_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - schedule_w_jobs_retry_exponential.additional_properties = d - return schedule_w_jobs_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/script.py b/python-client/windmill-api/windmill_api/models/script.py deleted file mode 100644 index c25d8eb10c..0000000000 --- a/python-client/windmill-api/windmill_api/models/script.py +++ /dev/null @@ -1,363 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from ..models.script_language import ScriptLanguage -from typing import Dict -from ..models.script_kind import ScriptKind -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.script_schema import ScriptSchema - from ..models.script_extra_perms import ScriptExtraPerms - - - - - -T = TypeVar("T", bound="Script") - - -@_attrs_define -class Script: - """ - Attributes: - hash_ (str): - path (str): - summary (str): - description (str): - content (str): - created_by (str): - created_at (datetime.datetime): - archived (bool): - deleted (bool): - is_template (bool): - extra_perms (ScriptExtraPerms): - language (ScriptLanguage): - kind (ScriptKind): - starred (bool): - workspace_id (Union[Unset, str]): - parent_hashes (Union[Unset, List[str]]): The first element is the direct parent of the script, the second is the - parent of the first, etc - schema (Union[Unset, ScriptSchema]): - lock (Union[Unset, str]): - lock_error_logs (Union[Unset, str]): - tag (Union[Unset, str]): - has_draft (Union[Unset, bool]): - draft_only (Union[Unset, bool]): - envs (Union[Unset, List[str]]): - concurrent_limit (Union[Unset, int]): - concurrency_time_window_s (Union[Unset, int]): - cache_ttl (Union[Unset, float]): - dedicated_worker (Union[Unset, bool]): - ws_error_handler_muted (Union[Unset, bool]): - priority (Union[Unset, int]): - restart_unless_cancelled (Union[Unset, bool]): - timeout (Union[Unset, int]): - delete_after_use (Union[Unset, bool]): - """ - - hash_: str - path: str - summary: str - description: str - content: str - created_by: str - created_at: datetime.datetime - archived: bool - deleted: bool - is_template: bool - extra_perms: 'ScriptExtraPerms' - language: ScriptLanguage - kind: ScriptKind - starred: bool - workspace_id: Union[Unset, str] = UNSET - parent_hashes: Union[Unset, List[str]] = UNSET - schema: Union[Unset, 'ScriptSchema'] = UNSET - lock: Union[Unset, str] = UNSET - lock_error_logs: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - has_draft: Union[Unset, bool] = UNSET - draft_only: Union[Unset, bool] = UNSET - envs: Union[Unset, List[str]] = UNSET - concurrent_limit: Union[Unset, int] = UNSET - concurrency_time_window_s: Union[Unset, int] = UNSET - cache_ttl: Union[Unset, float] = UNSET - dedicated_worker: Union[Unset, bool] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - priority: Union[Unset, int] = UNSET - restart_unless_cancelled: Union[Unset, bool] = UNSET - timeout: Union[Unset, int] = UNSET - delete_after_use: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.script_schema import ScriptSchema - from ..models.script_extra_perms import ScriptExtraPerms - hash_ = self.hash_ - path = self.path - summary = self.summary - description = self.description - content = self.content - created_by = self.created_by - created_at = self.created_at.isoformat() - - archived = self.archived - deleted = self.deleted - is_template = self.is_template - extra_perms = self.extra_perms.to_dict() - - language = self.language.value - - kind = self.kind.value - - starred = self.starred - workspace_id = self.workspace_id - parent_hashes: Union[Unset, List[str]] = UNSET - if not isinstance(self.parent_hashes, Unset): - parent_hashes = self.parent_hashes - - - - - schema: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.schema, Unset): - schema = self.schema.to_dict() - - lock = self.lock - lock_error_logs = self.lock_error_logs - tag = self.tag - has_draft = self.has_draft - draft_only = self.draft_only - envs: Union[Unset, List[str]] = UNSET - if not isinstance(self.envs, Unset): - envs = self.envs - - - - - concurrent_limit = self.concurrent_limit - concurrency_time_window_s = self.concurrency_time_window_s - cache_ttl = self.cache_ttl - dedicated_worker = self.dedicated_worker - ws_error_handler_muted = self.ws_error_handler_muted - priority = self.priority - restart_unless_cancelled = self.restart_unless_cancelled - timeout = self.timeout - delete_after_use = self.delete_after_use - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "hash": hash_, - "path": path, - "summary": summary, - "description": description, - "content": content, - "created_by": created_by, - "created_at": created_at, - "archived": archived, - "deleted": deleted, - "is_template": is_template, - "extra_perms": extra_perms, - "language": language, - "kind": kind, - "starred": starred, - }) - if workspace_id is not UNSET: - field_dict["workspace_id"] = workspace_id - if parent_hashes is not UNSET: - field_dict["parent_hashes"] = parent_hashes - if schema is not UNSET: - field_dict["schema"] = schema - if lock is not UNSET: - field_dict["lock"] = lock - if lock_error_logs is not UNSET: - field_dict["lock_error_logs"] = lock_error_logs - if tag is not UNSET: - field_dict["tag"] = tag - if has_draft is not UNSET: - field_dict["has_draft"] = has_draft - if draft_only is not UNSET: - field_dict["draft_only"] = draft_only - if envs is not UNSET: - field_dict["envs"] = envs - if concurrent_limit is not UNSET: - field_dict["concurrent_limit"] = concurrent_limit - if concurrency_time_window_s is not UNSET: - field_dict["concurrency_time_window_s"] = concurrency_time_window_s - if cache_ttl is not UNSET: - field_dict["cache_ttl"] = cache_ttl - if dedicated_worker is not UNSET: - field_dict["dedicated_worker"] = dedicated_worker - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if priority is not UNSET: - field_dict["priority"] = priority - if restart_unless_cancelled is not UNSET: - field_dict["restart_unless_cancelled"] = restart_unless_cancelled - if timeout is not UNSET: - field_dict["timeout"] = timeout - if delete_after_use is not UNSET: - field_dict["delete_after_use"] = delete_after_use - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.script_schema import ScriptSchema - from ..models.script_extra_perms import ScriptExtraPerms - d = src_dict.copy() - hash_ = d.pop("hash") - - path = d.pop("path") - - summary = d.pop("summary") - - description = d.pop("description") - - content = d.pop("content") - - created_by = d.pop("created_by") - - created_at = isoparse(d.pop("created_at")) - - - - - archived = d.pop("archived") - - deleted = d.pop("deleted") - - is_template = d.pop("is_template") - - extra_perms = ScriptExtraPerms.from_dict(d.pop("extra_perms")) - - - - - language = ScriptLanguage(d.pop("language")) - - - - - kind = ScriptKind(d.pop("kind")) - - - - - starred = d.pop("starred") - - workspace_id = d.pop("workspace_id", UNSET) - - parent_hashes = cast(List[str], d.pop("parent_hashes", UNSET)) - - - _schema = d.pop("schema", UNSET) - schema: Union[Unset, ScriptSchema] - if isinstance(_schema, Unset): - schema = UNSET - else: - schema = ScriptSchema.from_dict(_schema) - - - - - lock = d.pop("lock", UNSET) - - lock_error_logs = d.pop("lock_error_logs", UNSET) - - tag = d.pop("tag", UNSET) - - has_draft = d.pop("has_draft", UNSET) - - draft_only = d.pop("draft_only", UNSET) - - envs = cast(List[str], d.pop("envs", UNSET)) - - - concurrent_limit = d.pop("concurrent_limit", UNSET) - - concurrency_time_window_s = d.pop("concurrency_time_window_s", UNSET) - - cache_ttl = d.pop("cache_ttl", UNSET) - - dedicated_worker = d.pop("dedicated_worker", UNSET) - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - priority = d.pop("priority", UNSET) - - restart_unless_cancelled = d.pop("restart_unless_cancelled", UNSET) - - timeout = d.pop("timeout", UNSET) - - delete_after_use = d.pop("delete_after_use", UNSET) - - script = cls( - hash_=hash_, - path=path, - summary=summary, - description=description, - content=content, - created_by=created_by, - created_at=created_at, - archived=archived, - deleted=deleted, - is_template=is_template, - extra_perms=extra_perms, - language=language, - kind=kind, - starred=starred, - workspace_id=workspace_id, - parent_hashes=parent_hashes, - schema=schema, - lock=lock, - lock_error_logs=lock_error_logs, - tag=tag, - has_draft=has_draft, - draft_only=draft_only, - envs=envs, - concurrent_limit=concurrent_limit, - concurrency_time_window_s=concurrency_time_window_s, - cache_ttl=cache_ttl, - dedicated_worker=dedicated_worker, - ws_error_handler_muted=ws_error_handler_muted, - priority=priority, - restart_unless_cancelled=restart_unless_cancelled, - timeout=timeout, - delete_after_use=delete_after_use, - ) - - script.additional_properties = d - return script - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/script_args.py b/python-client/windmill-api/windmill_api/models/script_args.py deleted file mode 100644 index 95ae34e931..0000000000 --- a/python-client/windmill-api/windmill_api/models/script_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScriptArgs") - - -@_attrs_define -class ScriptArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_args = cls( - ) - - script_args.additional_properties = d - return script_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/script_extra_perms.py b/python-client/windmill-api/windmill_api/models/script_extra_perms.py deleted file mode 100644 index 4d9a7609b0..0000000000 --- a/python-client/windmill-api/windmill_api/models/script_extra_perms.py +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScriptExtraPerms") - - -@_attrs_define -class ScriptExtraPerms: - """ - """ - - additional_properties: Dict[str, bool] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_extra_perms = cls( - ) - - - script_extra_perms.additional_properties = d - return script_extra_perms - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> bool: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: bool) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/script_history.py b/python-client/windmill-api/windmill_api/models/script_history.py deleted file mode 100644 index 4639a14494..0000000000 --- a/python-client/windmill-api/windmill_api/models/script_history.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ScriptHistory") - - -@_attrs_define -class ScriptHistory: - """ - Attributes: - script_hash (str): - deployment_msg (Union[Unset, str]): - """ - - script_hash: str - deployment_msg: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - script_hash = self.script_hash - deployment_msg = self.deployment_msg - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "script_hash": script_hash, - }) - if deployment_msg is not UNSET: - field_dict["deployment_msg"] = deployment_msg - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_hash = d.pop("script_hash") - - deployment_msg = d.pop("deployment_msg", UNSET) - - script_history = cls( - script_hash=script_hash, - deployment_msg=deployment_msg, - ) - - script_history.additional_properties = d - return script_history - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/script_kind.py b/python-client/windmill-api/windmill_api/models/script_kind.py deleted file mode 100644 index 3091b0a289..0000000000 --- a/python-client/windmill-api/windmill_api/models/script_kind.py +++ /dev/null @@ -1,11 +0,0 @@ -from enum import Enum - -class ScriptKind(str, Enum): - APPROVAL = "approval" - COMMAND = "command" - FAILURE = "failure" - SCRIPT = "script" - TRIGGER = "trigger" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/script_language.py b/python-client/windmill-api/windmill_api/models/script_language.py deleted file mode 100644 index fafcc55048..0000000000 --- a/python-client/windmill-api/windmill_api/models/script_language.py +++ /dev/null @@ -1,19 +0,0 @@ -from enum import Enum - -class ScriptLanguage(str, Enum): - BASH = "bash" - BIGQUERY = "bigquery" - BUN = "bun" - DENO = "deno" - GO = "go" - GRAPHQL = "graphql" - MSSQL = "mssql" - MYSQL = "mysql" - NATIVETS = "nativets" - POSTGRESQL = "postgresql" - POWERSHELL = "powershell" - PYTHON3 = "python3" - SNOWFLAKE = "snowflake" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/script_schema.py b/python-client/windmill-api/windmill_api/models/script_schema.py deleted file mode 100644 index c54e89af88..0000000000 --- a/python-client/windmill-api/windmill_api/models/script_schema.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="ScriptSchema") - - -@_attrs_define -class ScriptSchema: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_schema = cls( - ) - - script_schema.additional_properties = d - return script_schema - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body.py b/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body.py deleted file mode 100644 index aa37afbf22..0000000000 --- a/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body.py +++ /dev/null @@ -1,141 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import Dict -from ..models.set_default_error_or_recovery_handler_json_body_handler_type import SetDefaultErrorOrRecoveryHandlerJsonBodyHandlerType -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.set_default_error_or_recovery_handler_json_body_extra_args import SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs - - - - - -T = TypeVar("T", bound="SetDefaultErrorOrRecoveryHandlerJsonBody") - - -@_attrs_define -class SetDefaultErrorOrRecoveryHandlerJsonBody: - """ - Attributes: - handler_type (SetDefaultErrorOrRecoveryHandlerJsonBodyHandlerType): - override_existing (bool): - path (Union[Unset, str]): - extra_args (Union[Unset, SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs]): - number_of_occurence (Union[Unset, int]): - number_of_occurence_exact (Union[Unset, bool]): - workspace_handler_muted (Union[Unset, bool]): - """ - - handler_type: SetDefaultErrorOrRecoveryHandlerJsonBodyHandlerType - override_existing: bool - path: Union[Unset, str] = UNSET - extra_args: Union[Unset, 'SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs'] = UNSET - number_of_occurence: Union[Unset, int] = UNSET - number_of_occurence_exact: Union[Unset, bool] = UNSET - workspace_handler_muted: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.set_default_error_or_recovery_handler_json_body_extra_args import SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs - handler_type = self.handler_type.value - - override_existing = self.override_existing - path = self.path - extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.extra_args, Unset): - extra_args = self.extra_args.to_dict() - - number_of_occurence = self.number_of_occurence - number_of_occurence_exact = self.number_of_occurence_exact - workspace_handler_muted = self.workspace_handler_muted - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "handler_type": handler_type, - "override_existing": override_existing, - }) - if path is not UNSET: - field_dict["path"] = path - if extra_args is not UNSET: - field_dict["extra_args"] = extra_args - if number_of_occurence is not UNSET: - field_dict["number_of_occurence"] = number_of_occurence - if number_of_occurence_exact is not UNSET: - field_dict["number_of_occurence_exact"] = number_of_occurence_exact - if workspace_handler_muted is not UNSET: - field_dict["workspace_handler_muted"] = workspace_handler_muted - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.set_default_error_or_recovery_handler_json_body_extra_args import SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs - d = src_dict.copy() - handler_type = SetDefaultErrorOrRecoveryHandlerJsonBodyHandlerType(d.pop("handler_type")) - - - - - override_existing = d.pop("override_existing") - - path = d.pop("path", UNSET) - - _extra_args = d.pop("extra_args", UNSET) - extra_args: Union[Unset, SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs] - if isinstance(_extra_args, Unset): - extra_args = UNSET - else: - extra_args = SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs.from_dict(_extra_args) - - - - - number_of_occurence = d.pop("number_of_occurence", UNSET) - - number_of_occurence_exact = d.pop("number_of_occurence_exact", UNSET) - - workspace_handler_muted = d.pop("workspace_handler_muted", UNSET) - - set_default_error_or_recovery_handler_json_body = cls( - handler_type=handler_type, - override_existing=override_existing, - path=path, - extra_args=extra_args, - number_of_occurence=number_of_occurence, - number_of_occurence_exact=number_of_occurence_exact, - workspace_handler_muted=workspace_handler_muted, - ) - - set_default_error_or_recovery_handler_json_body.additional_properties = d - return set_default_error_or_recovery_handler_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body_extra_args.py b/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body_extra_args.py deleted file mode 100644 index 14dab541b0..0000000000 --- a/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs") - - -@_attrs_define -class SetDefaultErrorOrRecoveryHandlerJsonBodyExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - set_default_error_or_recovery_handler_json_body_extra_args = cls( - ) - - set_default_error_or_recovery_handler_json_body_extra_args.additional_properties = d - return set_default_error_or_recovery_handler_json_body_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body_handler_type.py b/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body_handler_type.py deleted file mode 100644 index 9d1bcfe396..0000000000 --- a/python-client/windmill-api/windmill_api/models/set_default_error_or_recovery_handler_json_body_handler_type.py +++ /dev/null @@ -1,8 +0,0 @@ -from enum import Enum - -class SetDefaultErrorOrRecoveryHandlerJsonBodyHandlerType(str, Enum): - ERROR = "error" - RECOVERY = "recovery" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/set_global_json_body.py b/python-client/windmill-api/windmill_api/models/set_global_json_body.py deleted file mode 100644 index 9fb54a0675..0000000000 --- a/python-client/windmill-api/windmill_api/models/set_global_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="SetGlobalJsonBody") - - -@_attrs_define -class SetGlobalJsonBody: - """ - Attributes: - value (Union[Unset, Any]): - """ - - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - value = d.pop("value", UNSET) - - set_global_json_body = cls( - value=value, - ) - - set_global_json_body.additional_properties = d - return set_global_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/set_password_json_body.py b/python-client/windmill-api/windmill_api/models/set_password_json_body.py deleted file mode 100644 index f1ef376a5e..0000000000 --- a/python-client/windmill-api/windmill_api/models/set_password_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="SetPasswordJsonBody") - - -@_attrs_define -class SetPasswordJsonBody: - """ - Attributes: - password (str): - """ - - password: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - password = self.password - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "password": password, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - password = d.pop("password") - - set_password_json_body = cls( - password=password, - ) - - set_password_json_body.additional_properties = d - return set_password_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/set_schedule_enabled_json_body.py b/python-client/windmill-api/windmill_api/models/set_schedule_enabled_json_body.py deleted file mode 100644 index 6f7611318c..0000000000 --- a/python-client/windmill-api/windmill_api/models/set_schedule_enabled_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="SetScheduleEnabledJsonBody") - - -@_attrs_define -class SetScheduleEnabledJsonBody: - """ - Attributes: - enabled (bool): - """ - - enabled: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - enabled = self.enabled - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "enabled": enabled, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - enabled = d.pop("enabled") - - set_schedule_enabled_json_body = cls( - enabled=enabled, - ) - - set_schedule_enabled_json_body.additional_properties = d - return set_schedule_enabled_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/slack_token.py b/python-client/windmill-api/windmill_api/models/slack_token.py deleted file mode 100644 index aaa783a389..0000000000 --- a/python-client/windmill-api/windmill_api/models/slack_token.py +++ /dev/null @@ -1,101 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.slack_token_bot import SlackTokenBot - - - - - -T = TypeVar("T", bound="SlackToken") - - -@_attrs_define -class SlackToken: - """ - Attributes: - access_token (str): - team_id (str): - team_name (str): - bot (SlackTokenBot): - """ - - access_token: str - team_id: str - team_name: str - bot: 'SlackTokenBot' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.slack_token_bot import SlackTokenBot - access_token = self.access_token - team_id = self.team_id - team_name = self.team_name - bot = self.bot.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "access_token": access_token, - "team_id": team_id, - "team_name": team_name, - "bot": bot, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.slack_token_bot import SlackTokenBot - d = src_dict.copy() - access_token = d.pop("access_token") - - team_id = d.pop("team_id") - - team_name = d.pop("team_name") - - bot = SlackTokenBot.from_dict(d.pop("bot")) - - - - - slack_token = cls( - access_token=access_token, - team_id=team_id, - team_name=team_name, - bot=bot, - ) - - slack_token.additional_properties = d - return slack_token - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/slack_token_bot.py b/python-client/windmill-api/windmill_api/models/slack_token_bot.py deleted file mode 100644 index 85f7b7a746..0000000000 --- a/python-client/windmill-api/windmill_api/models/slack_token_bot.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="SlackTokenBot") - - -@_attrs_define -class SlackTokenBot: - """ - Attributes: - bot_access_token (Union[Unset, str]): - """ - - bot_access_token: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - bot_access_token = self.bot_access_token - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if bot_access_token is not UNSET: - field_dict["bot_access_token"] = bot_access_token - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - bot_access_token = d.pop("bot_access_token", UNSET) - - slack_token_bot = cls( - bot_access_token=bot_access_token, - ) - - slack_token_bot.additional_properties = d - return slack_token_bot - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/star_json_body.py b/python-client/windmill-api/windmill_api/models/star_json_body.py deleted file mode 100644 index 3318eeb540..0000000000 --- a/python-client/windmill-api/windmill_api/models/star_json_body.py +++ /dev/null @@ -1,93 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.star_json_body_favorite_kind import StarJsonBodyFavoriteKind -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="StarJsonBody") - - -@_attrs_define -class StarJsonBody: - """ - Attributes: - path (Union[Unset, str]): - favorite_kind (Union[Unset, StarJsonBodyFavoriteKind]): - """ - - path: Union[Unset, str] = UNSET - favorite_kind: Union[Unset, StarJsonBodyFavoriteKind] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - favorite_kind: Union[Unset, str] = UNSET - if not isinstance(self.favorite_kind, Unset): - favorite_kind = self.favorite_kind.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if favorite_kind is not UNSET: - field_dict["favorite_kind"] = favorite_kind - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path", UNSET) - - _favorite_kind = d.pop("favorite_kind", UNSET) - favorite_kind: Union[Unset, StarJsonBodyFavoriteKind] - if isinstance(_favorite_kind, Unset): - favorite_kind = UNSET - else: - favorite_kind = StarJsonBodyFavoriteKind(_favorite_kind) - - - - - star_json_body = cls( - path=path, - favorite_kind=favorite_kind, - ) - - star_json_body.additional_properties = d - return star_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/star_json_body_favorite_kind.py b/python-client/windmill-api/windmill_api/models/star_json_body_favorite_kind.py deleted file mode 100644 index 66a37e859b..0000000000 --- a/python-client/windmill-api/windmill_api/models/star_json_body_favorite_kind.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class StarJsonBodyFavoriteKind(str, Enum): - APP = "app" - FLOW = "flow" - RAW_APP = "raw_app" - SCRIPT = "script" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/static_transform.py b/python-client/windmill-api/windmill_api/models/static_transform.py deleted file mode 100644 index 2f750061c0..0000000000 --- a/python-client/windmill-api/windmill_api/models/static_transform.py +++ /dev/null @@ -1,85 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.static_transform_type import StaticTransformType - - - - - - -T = TypeVar("T", bound="StaticTransform") - - -@_attrs_define -class StaticTransform: - """ - Attributes: - type (StaticTransformType): - value (Union[Unset, Any]): - """ - - type: StaticTransformType - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - type = self.type.value - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "type": type, - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - type = StaticTransformType(d.pop("type")) - - - - - value = d.pop("value", UNSET) - - static_transform = cls( - type=type, - value=value, - ) - - static_transform.additional_properties = d - return static_transform - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/static_transform_type.py b/python-client/windmill-api/windmill_api/models/static_transform_type.py deleted file mode 100644 index 88b8748561..0000000000 --- a/python-client/windmill-api/windmill_api/models/static_transform_type.py +++ /dev/null @@ -1,7 +0,0 @@ -from enum import Enum - -class StaticTransformType(str, Enum): - JAVASCRIPT = "javascript" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/test_license_key_json_body.py b/python-client/windmill-api/windmill_api/models/test_license_key_json_body.py deleted file mode 100644 index 0d70089491..0000000000 --- a/python-client/windmill-api/windmill_api/models/test_license_key_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="TestLicenseKeyJsonBody") - - -@_attrs_define -class TestLicenseKeyJsonBody: - """ - Attributes: - license_key (str): - """ - - license_key: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - license_key = self.license_key - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "license_key": license_key, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - license_key = d.pop("license_key") - - test_license_key_json_body = cls( - license_key=license_key, - ) - - test_license_key_json_body.additional_properties = d - return test_license_key_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/test_smtp_json_body.py b/python-client/windmill-api/windmill_api/models/test_smtp_json_body.py deleted file mode 100644 index 7bbdb26e1e..0000000000 --- a/python-client/windmill-api/windmill_api/models/test_smtp_json_body.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.test_smtp_json_body_smtp import TestSmtpJsonBodySmtp - - - - - -T = TypeVar("T", bound="TestSmtpJsonBody") - - -@_attrs_define -class TestSmtpJsonBody: - """ - Attributes: - to (str): - smtp (TestSmtpJsonBodySmtp): - """ - - to: str - smtp: 'TestSmtpJsonBodySmtp' - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.test_smtp_json_body_smtp import TestSmtpJsonBodySmtp - to = self.to - smtp = self.smtp.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "to": to, - "smtp": smtp, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.test_smtp_json_body_smtp import TestSmtpJsonBodySmtp - d = src_dict.copy() - to = d.pop("to") - - smtp = TestSmtpJsonBodySmtp.from_dict(d.pop("smtp")) - - - - - test_smtp_json_body = cls( - to=to, - smtp=smtp, - ) - - test_smtp_json_body.additional_properties = d - return test_smtp_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/test_smtp_json_body_smtp.py b/python-client/windmill-api/windmill_api/models/test_smtp_json_body_smtp.py deleted file mode 100644 index cd3733ed4b..0000000000 --- a/python-client/windmill-api/windmill_api/models/test_smtp_json_body_smtp.py +++ /dev/null @@ -1,105 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="TestSmtpJsonBodySmtp") - - -@_attrs_define -class TestSmtpJsonBodySmtp: - """ - Attributes: - host (str): - username (str): - password (str): - port (int): - from_ (str): - tls_implicit (bool): - """ - - host: str - username: str - password: str - port: int - from_: str - tls_implicit: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - host = self.host - username = self.username - password = self.password - port = self.port - from_ = self.from_ - tls_implicit = self.tls_implicit - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "host": host, - "username": username, - "password": password, - "port": port, - "from": from_, - "tls_implicit": tls_implicit, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - host = d.pop("host") - - username = d.pop("username") - - password = d.pop("password") - - port = d.pop("port") - - from_ = d.pop("from") - - tls_implicit = d.pop("tls_implicit") - - test_smtp_json_body_smtp = cls( - host=host, - username=username, - password=password, - port=port, - from_=from_, - tls_implicit=tls_implicit, - ) - - test_smtp_json_body_smtp.additional_properties = d - return test_smtp_json_body_smtp - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/timeseries_metric.py b/python-client/windmill-api/windmill_api/models/timeseries_metric.py deleted file mode 100644 index 91faf6964e..0000000000 --- a/python-client/windmill-api/windmill_api/models/timeseries_metric.py +++ /dev/null @@ -1,103 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.timeseries_metric_values_item import TimeseriesMetricValuesItem - - - - - -T = TypeVar("T", bound="TimeseriesMetric") - - -@_attrs_define -class TimeseriesMetric: - """ - Attributes: - values (List['TimeseriesMetricValuesItem']): - metric_id (Union[Unset, str]): - """ - - values: List['TimeseriesMetricValuesItem'] - metric_id: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.timeseries_metric_values_item import TimeseriesMetricValuesItem - values = [] - for values_item_data in self.values: - values_item = values_item_data.to_dict() - - values.append(values_item) - - - - - metric_id = self.metric_id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "values": values, - }) - if metric_id is not UNSET: - field_dict["metric_id"] = metric_id - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.timeseries_metric_values_item import TimeseriesMetricValuesItem - d = src_dict.copy() - values = [] - _values = d.pop("values") - for values_item_data in (_values): - values_item = TimeseriesMetricValuesItem.from_dict(values_item_data) - - - - values.append(values_item) - - - metric_id = d.pop("metric_id", UNSET) - - timeseries_metric = cls( - values=values, - metric_id=metric_id, - ) - - timeseries_metric.additional_properties = d - return timeseries_metric - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/timeseries_metric_values_item.py b/python-client/windmill-api/windmill_api/models/timeseries_metric_values_item.py deleted file mode 100644 index 351104dd84..0000000000 --- a/python-client/windmill-api/windmill_api/models/timeseries_metric_values_item.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -import datetime -from dateutil.parser import isoparse - - - - - - -T = TypeVar("T", bound="TimeseriesMetricValuesItem") - - -@_attrs_define -class TimeseriesMetricValuesItem: - """ - Attributes: - timestamp (datetime.datetime): - value (float): - """ - - timestamp: datetime.datetime - value: float - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - timestamp = self.timestamp.isoformat() - - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "timestamp": timestamp, - "value": value, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - timestamp = isoparse(d.pop("timestamp")) - - - - - value = d.pop("value") - - timeseries_metric_values_item = cls( - timestamp=timestamp, - value=value, - ) - - timeseries_metric_values_item.additional_properties = d - return timeseries_metric_values_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/toggle_workspace_error_handler_for_flow_json_body.py b/python-client/windmill-api/windmill_api/models/toggle_workspace_error_handler_for_flow_json_body.py deleted file mode 100644 index e725bbdcaf..0000000000 --- a/python-client/windmill-api/windmill_api/models/toggle_workspace_error_handler_for_flow_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ToggleWorkspaceErrorHandlerForFlowJsonBody") - - -@_attrs_define -class ToggleWorkspaceErrorHandlerForFlowJsonBody: - """ - Attributes: - muted (Union[Unset, bool]): - """ - - muted: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - muted = self.muted - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if muted is not UNSET: - field_dict["muted"] = muted - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - muted = d.pop("muted", UNSET) - - toggle_workspace_error_handler_for_flow_json_body = cls( - muted=muted, - ) - - toggle_workspace_error_handler_for_flow_json_body.additional_properties = d - return toggle_workspace_error_handler_for_flow_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/toggle_workspace_error_handler_for_script_json_body.py b/python-client/windmill-api/windmill_api/models/toggle_workspace_error_handler_for_script_json_body.py deleted file mode 100644 index 569aed2b12..0000000000 --- a/python-client/windmill-api/windmill_api/models/toggle_workspace_error_handler_for_script_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="ToggleWorkspaceErrorHandlerForScriptJsonBody") - - -@_attrs_define -class ToggleWorkspaceErrorHandlerForScriptJsonBody: - """ - Attributes: - muted (Union[Unset, bool]): - """ - - muted: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - muted = self.muted - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if muted is not UNSET: - field_dict["muted"] = muted - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - muted = d.pop("muted", UNSET) - - toggle_workspace_error_handler_for_script_json_body = cls( - muted=muted, - ) - - toggle_workspace_error_handler_for_script_json_body.additional_properties = d - return toggle_workspace_error_handler_for_script_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/token_response.py b/python-client/windmill-api/windmill_api/models/token_response.py deleted file mode 100644 index 99e748541b..0000000000 --- a/python-client/windmill-api/windmill_api/models/token_response.py +++ /dev/null @@ -1,104 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="TokenResponse") - - -@_attrs_define -class TokenResponse: - """ - Attributes: - access_token (str): - expires_in (Union[Unset, int]): - refresh_token (Union[Unset, str]): - scope (Union[Unset, List[str]]): - """ - - access_token: str - expires_in: Union[Unset, int] = UNSET - refresh_token: Union[Unset, str] = UNSET - scope: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - access_token = self.access_token - expires_in = self.expires_in - refresh_token = self.refresh_token - scope: Union[Unset, List[str]] = UNSET - if not isinstance(self.scope, Unset): - scope = self.scope - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "access_token": access_token, - }) - if expires_in is not UNSET: - field_dict["expires_in"] = expires_in - if refresh_token is not UNSET: - field_dict["refresh_token"] = refresh_token - if scope is not UNSET: - field_dict["scope"] = scope - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - access_token = d.pop("access_token") - - expires_in = d.pop("expires_in", UNSET) - - refresh_token = d.pop("refresh_token", UNSET) - - scope = cast(List[str], d.pop("scope", UNSET)) - - - token_response = cls( - access_token=access_token, - expires_in=expires_in, - refresh_token=refresh_token, - scope=scope, - ) - - token_response.additional_properties = d - return token_response - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/truncated_token.py b/python-client/windmill-api/windmill_api/models/truncated_token.py deleted file mode 100644 index 60dad783e8..0000000000 --- a/python-client/windmill-api/windmill_api/models/truncated_token.py +++ /dev/null @@ -1,140 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="TruncatedToken") - - -@_attrs_define -class TruncatedToken: - """ - Attributes: - token_prefix (str): - created_at (datetime.datetime): - last_used_at (datetime.datetime): - label (Union[Unset, str]): - expiration (Union[Unset, datetime.datetime]): - scopes (Union[Unset, List[str]]): - """ - - token_prefix: str - created_at: datetime.datetime - last_used_at: datetime.datetime - label: Union[Unset, str] = UNSET - expiration: Union[Unset, datetime.datetime] = UNSET - scopes: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - token_prefix = self.token_prefix - created_at = self.created_at.isoformat() - - last_used_at = self.last_used_at.isoformat() - - label = self.label - expiration: Union[Unset, str] = UNSET - if not isinstance(self.expiration, Unset): - expiration = self.expiration.isoformat() - - scopes: Union[Unset, List[str]] = UNSET - if not isinstance(self.scopes, Unset): - scopes = self.scopes - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "token_prefix": token_prefix, - "created_at": created_at, - "last_used_at": last_used_at, - }) - if label is not UNSET: - field_dict["label"] = label - if expiration is not UNSET: - field_dict["expiration"] = expiration - if scopes is not UNSET: - field_dict["scopes"] = scopes - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - token_prefix = d.pop("token_prefix") - - created_at = isoparse(d.pop("created_at")) - - - - - last_used_at = isoparse(d.pop("last_used_at")) - - - - - label = d.pop("label", UNSET) - - _expiration = d.pop("expiration", UNSET) - expiration: Union[Unset, datetime.datetime] - if isinstance(_expiration, Unset): - expiration = UNSET - else: - expiration = isoparse(_expiration) - - - - - scopes = cast(List[str], d.pop("scopes", UNSET)) - - - truncated_token = cls( - token_prefix=token_prefix, - created_at=created_at, - last_used_at=last_used_at, - label=label, - expiration=expiration, - scopes=scopes, - ) - - truncated_token.additional_properties = d - return truncated_token - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/unstar_json_body.py b/python-client/windmill-api/windmill_api/models/unstar_json_body.py deleted file mode 100644 index 8ae90e9960..0000000000 --- a/python-client/windmill-api/windmill_api/models/unstar_json_body.py +++ /dev/null @@ -1,93 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..models.unstar_json_body_favorite_kind import UnstarJsonBodyFavoriteKind -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UnstarJsonBody") - - -@_attrs_define -class UnstarJsonBody: - """ - Attributes: - path (Union[Unset, str]): - favorite_kind (Union[Unset, UnstarJsonBodyFavoriteKind]): - """ - - path: Union[Unset, str] = UNSET - favorite_kind: Union[Unset, UnstarJsonBodyFavoriteKind] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - favorite_kind: Union[Unset, str] = UNSET - if not isinstance(self.favorite_kind, Unset): - favorite_kind = self.favorite_kind.value - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if favorite_kind is not UNSET: - field_dict["favorite_kind"] = favorite_kind - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path", UNSET) - - _favorite_kind = d.pop("favorite_kind", UNSET) - favorite_kind: Union[Unset, UnstarJsonBodyFavoriteKind] - if isinstance(_favorite_kind, Unset): - favorite_kind = UNSET - else: - favorite_kind = UnstarJsonBodyFavoriteKind(_favorite_kind) - - - - - unstar_json_body = cls( - path=path, - favorite_kind=favorite_kind, - ) - - unstar_json_body.additional_properties = d - return unstar_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/unstar_json_body_favorite_kind.py b/python-client/windmill-api/windmill_api/models/unstar_json_body_favorite_kind.py deleted file mode 100644 index 07e3a1fd1c..0000000000 --- a/python-client/windmill-api/windmill_api/models/unstar_json_body_favorite_kind.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class UnstarJsonBodyFavoriteKind(str, Enum): - APP = "app" - FLOW = "flow" - RAW_APP = "raw_app" - SCRIPT = "script" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/update_app_history_json_body.py b/python-client/windmill-api/windmill_api/models/update_app_history_json_body.py deleted file mode 100644 index 76ad9a25b8..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_app_history_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateAppHistoryJsonBody") - - -@_attrs_define -class UpdateAppHistoryJsonBody: - """ - Attributes: - deployment_msg (Union[Unset, str]): - """ - - deployment_msg: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - deployment_msg = self.deployment_msg - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if deployment_msg is not UNSET: - field_dict["deployment_msg"] = deployment_msg - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - deployment_msg = d.pop("deployment_msg", UNSET) - - update_app_history_json_body = cls( - deployment_msg=deployment_msg, - ) - - update_app_history_json_body.additional_properties = d - return update_app_history_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_app_json_body.py b/python-client/windmill-api/windmill_api/models/update_app_json_body.py deleted file mode 100644 index bfa154f709..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_app_json_body.py +++ /dev/null @@ -1,122 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.update_app_json_body_policy import UpdateAppJsonBodyPolicy - - - - - -T = TypeVar("T", bound="UpdateAppJsonBody") - - -@_attrs_define -class UpdateAppJsonBody: - """ - Attributes: - path (Union[Unset, str]): - summary (Union[Unset, str]): - value (Union[Unset, Any]): - policy (Union[Unset, UpdateAppJsonBodyPolicy]): - deployment_message (Union[Unset, str]): - """ - - path: Union[Unset, str] = UNSET - summary: Union[Unset, str] = UNSET - value: Union[Unset, Any] = UNSET - policy: Union[Unset, 'UpdateAppJsonBodyPolicy'] = UNSET - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.update_app_json_body_policy import UpdateAppJsonBodyPolicy - path = self.path - summary = self.summary - value = self.value - policy: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.policy, Unset): - policy = self.policy.to_dict() - - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if summary is not UNSET: - field_dict["summary"] = summary - if value is not UNSET: - field_dict["value"] = value - if policy is not UNSET: - field_dict["policy"] = policy - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.update_app_json_body_policy import UpdateAppJsonBodyPolicy - d = src_dict.copy() - path = d.pop("path", UNSET) - - summary = d.pop("summary", UNSET) - - value = d.pop("value", UNSET) - - _policy = d.pop("policy", UNSET) - policy: Union[Unset, UpdateAppJsonBodyPolicy] - if isinstance(_policy, Unset): - policy = UNSET - else: - policy = UpdateAppJsonBodyPolicy.from_dict(_policy) - - - - - deployment_message = d.pop("deployment_message", UNSET) - - update_app_json_body = cls( - path=path, - summary=summary, - value=value, - policy=policy, - deployment_message=deployment_message, - ) - - update_app_json_body.additional_properties = d - return update_app_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy.py b/python-client/windmill-api/windmill_api/models/update_app_json_body_policy.py deleted file mode 100644 index fc17fe1260..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy.py +++ /dev/null @@ -1,126 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..models.update_app_json_body_policy_execution_mode import UpdateAppJsonBodyPolicyExecutionMode -from typing import Dict -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.update_app_json_body_policy_triggerables import UpdateAppJsonBodyPolicyTriggerables - - - - - -T = TypeVar("T", bound="UpdateAppJsonBodyPolicy") - - -@_attrs_define -class UpdateAppJsonBodyPolicy: - """ - Attributes: - triggerables (Union[Unset, UpdateAppJsonBodyPolicyTriggerables]): - execution_mode (Union[Unset, UpdateAppJsonBodyPolicyExecutionMode]): - on_behalf_of (Union[Unset, str]): - on_behalf_of_email (Union[Unset, str]): - """ - - triggerables: Union[Unset, 'UpdateAppJsonBodyPolicyTriggerables'] = UNSET - execution_mode: Union[Unset, UpdateAppJsonBodyPolicyExecutionMode] = UNSET - on_behalf_of: Union[Unset, str] = UNSET - on_behalf_of_email: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.update_app_json_body_policy_triggerables import UpdateAppJsonBodyPolicyTriggerables - triggerables: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.triggerables, Unset): - triggerables = self.triggerables.to_dict() - - execution_mode: Union[Unset, str] = UNSET - if not isinstance(self.execution_mode, Unset): - execution_mode = self.execution_mode.value - - on_behalf_of = self.on_behalf_of - on_behalf_of_email = self.on_behalf_of_email - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if triggerables is not UNSET: - field_dict["triggerables"] = triggerables - if execution_mode is not UNSET: - field_dict["execution_mode"] = execution_mode - if on_behalf_of is not UNSET: - field_dict["on_behalf_of"] = on_behalf_of - if on_behalf_of_email is not UNSET: - field_dict["on_behalf_of_email"] = on_behalf_of_email - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.update_app_json_body_policy_triggerables import UpdateAppJsonBodyPolicyTriggerables - d = src_dict.copy() - _triggerables = d.pop("triggerables", UNSET) - triggerables: Union[Unset, UpdateAppJsonBodyPolicyTriggerables] - if isinstance(_triggerables, Unset): - triggerables = UNSET - else: - triggerables = UpdateAppJsonBodyPolicyTriggerables.from_dict(_triggerables) - - - - - _execution_mode = d.pop("execution_mode", UNSET) - execution_mode: Union[Unset, UpdateAppJsonBodyPolicyExecutionMode] - if isinstance(_execution_mode, Unset): - execution_mode = UNSET - else: - execution_mode = UpdateAppJsonBodyPolicyExecutionMode(_execution_mode) - - - - - on_behalf_of = d.pop("on_behalf_of", UNSET) - - on_behalf_of_email = d.pop("on_behalf_of_email", UNSET) - - update_app_json_body_policy = cls( - triggerables=triggerables, - execution_mode=execution_mode, - on_behalf_of=on_behalf_of, - on_behalf_of_email=on_behalf_of_email, - ) - - update_app_json_body_policy.additional_properties = d - return update_app_json_body_policy - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_execution_mode.py b/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_execution_mode.py deleted file mode 100644 index 6ce941cdee..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_execution_mode.py +++ /dev/null @@ -1,9 +0,0 @@ -from enum import Enum - -class UpdateAppJsonBodyPolicyExecutionMode(str, Enum): - ANONYMOUS = "anonymous" - PUBLISHER = "publisher" - VIEWER = "viewer" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_triggerables.py b/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_triggerables.py deleted file mode 100644 index a4d0856813..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_triggerables.py +++ /dev/null @@ -1,79 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict - -if TYPE_CHECKING: - from ..models.update_app_json_body_policy_triggerables_additional_property import UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty - - - - - -T = TypeVar("T", bound="UpdateAppJsonBodyPolicyTriggerables") - - -@_attrs_define -class UpdateAppJsonBodyPolicyTriggerables: - """ - """ - - additional_properties: Dict[str, 'UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty'] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.update_app_json_body_policy_triggerables_additional_property import UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty - - field_dict: Dict[str, Any] = {} - for prop_name, prop in self.additional_properties.items(): - field_dict[prop_name] = prop.to_dict() - - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.update_app_json_body_policy_triggerables_additional_property import UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty - d = src_dict.copy() - update_app_json_body_policy_triggerables = cls( - ) - - - additional_properties = {} - for prop_name, prop_dict in d.items(): - additional_property = UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty.from_dict(prop_dict) - - - - additional_properties[prop_name] = additional_property - - update_app_json_body_policy_triggerables.additional_properties = additional_properties - return update_app_json_body_policy_triggerables - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> 'UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty': - return self.additional_properties[key] - - def __setitem__(self, key: str, value: 'UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty') -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_triggerables_additional_property.py b/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_triggerables_additional_property.py deleted file mode 100644 index dcbb0076c1..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_app_json_body_policy_triggerables_additional_property.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty") - - -@_attrs_define -class UpdateAppJsonBodyPolicyTriggerablesAdditionalProperty: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - update_app_json_body_policy_triggerables_additional_property = cls( - ) - - update_app_json_body_policy_triggerables_additional_property.additional_properties = d - return update_app_json_body_policy_triggerables_additional_property - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_flow_json_body.py b/python-client/windmill-api/windmill_api/models/update_flow_json_body.py deleted file mode 100644 index 79c94578cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_flow_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateFlowJsonBody") - - -@_attrs_define -class UpdateFlowJsonBody: - """ - Attributes: - deployment_message (Union[Unset, str]): - """ - - deployment_message: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - deployment_message = self.deployment_message - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if deployment_message is not UNSET: - field_dict["deployment_message"] = deployment_message - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - deployment_message = d.pop("deployment_message", UNSET) - - update_flow_json_body = cls( - deployment_message=deployment_message, - ) - - update_flow_json_body.additional_properties = d - return update_flow_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_folder_json_body.py b/python-client/windmill-api/windmill_api/models/update_folder_json_body.py deleted file mode 100644 index cf95588f15..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_folder_json_body.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from typing import cast, List - - - - - - -T = TypeVar("T", bound="UpdateFolderJsonBody") - - -@_attrs_define -class UpdateFolderJsonBody: - """ - Attributes: - owners (Union[Unset, List[str]]): - extra_perms (Union[Unset, Any]): - """ - - owners: Union[Unset, List[str]] = UNSET - extra_perms: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - owners: Union[Unset, List[str]] = UNSET - if not isinstance(self.owners, Unset): - owners = self.owners - - - - - extra_perms = self.extra_perms - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if owners is not UNSET: - field_dict["owners"] = owners - if extra_perms is not UNSET: - field_dict["extra_perms"] = extra_perms - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - owners = cast(List[str], d.pop("owners", UNSET)) - - - extra_perms = d.pop("extra_perms", UNSET) - - update_folder_json_body = cls( - owners=owners, - extra_perms=extra_perms, - ) - - update_folder_json_body.additional_properties = d - return update_folder_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_group_json_body.py b/python-client/windmill-api/windmill_api/models/update_group_json_body.py deleted file mode 100644 index 285beafed6..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_group_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateGroupJsonBody") - - -@_attrs_define -class UpdateGroupJsonBody: - """ - Attributes: - summary (Union[Unset, str]): - """ - - summary: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - summary = self.summary - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if summary is not UNSET: - field_dict["summary"] = summary - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - summary = d.pop("summary", UNSET) - - update_group_json_body = cls( - summary=summary, - ) - - update_group_json_body.additional_properties = d - return update_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_input.py b/python-client/windmill-api/windmill_api/models/update_input.py deleted file mode 100644 index b0f6fd2d97..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_input.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UpdateInput") - - -@_attrs_define -class UpdateInput: - """ - Attributes: - id (str): - name (str): - is_public (bool): - """ - - id: str - name: str - is_public: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - is_public = self.is_public - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "is_public": is_public, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - is_public = d.pop("is_public") - - update_input = cls( - id=id, - name=name, - is_public=is_public, - ) - - update_input.additional_properties = d - return update_input - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_input_json_body.py b/python-client/windmill-api/windmill_api/models/update_input_json_body.py deleted file mode 100644 index bd66fdd3fb..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_input_json_body.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UpdateInputJsonBody") - - -@_attrs_define -class UpdateInputJsonBody: - """ - Attributes: - id (str): - name (str): - is_public (bool): - """ - - id: str - name: str - is_public: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - is_public = self.is_public - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "is_public": is_public, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - is_public = d.pop("is_public") - - update_input_json_body = cls( - id=id, - name=name, - is_public=is_public, - ) - - update_input_json_body.additional_properties = d - return update_input_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_instance_group_json_body.py b/python-client/windmill-api/windmill_api/models/update_instance_group_json_body.py deleted file mode 100644 index 6d14fec615..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_instance_group_json_body.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UpdateInstanceGroupJsonBody") - - -@_attrs_define -class UpdateInstanceGroupJsonBody: - """ - Attributes: - new_summary (str): - """ - - new_summary: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - new_summary = self.new_summary - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "new_summary": new_summary, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - new_summary = d.pop("new_summary") - - update_instance_group_json_body = cls( - new_summary=new_summary, - ) - - update_instance_group_json_body.additional_properties = d - return update_instance_group_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_raw_app_json_body.py b/python-client/windmill-api/windmill_api/models/update_raw_app_json_body.py deleted file mode 100644 index ad0a21e432..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_raw_app_json_body.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateRawAppJsonBody") - - -@_attrs_define -class UpdateRawAppJsonBody: - """ - Attributes: - path (Union[Unset, str]): - summary (Union[Unset, str]): - value (Union[Unset, str]): - """ - - path: Union[Unset, str] = UNSET - summary: Union[Unset, str] = UNSET - value: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - summary = self.summary - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if summary is not UNSET: - field_dict["summary"] = summary - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path", UNSET) - - summary = d.pop("summary", UNSET) - - value = d.pop("value", UNSET) - - update_raw_app_json_body = cls( - path=path, - summary=summary, - value=value, - ) - - update_raw_app_json_body.additional_properties = d - return update_raw_app_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_resource_json_body.py b/python-client/windmill-api/windmill_api/models/update_resource_json_body.py deleted file mode 100644 index 83799c40a9..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_resource_json_body.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateResourceJsonBody") - - -@_attrs_define -class UpdateResourceJsonBody: - """ - Attributes: - path (Union[Unset, str]): - description (Union[Unset, str]): - value (Union[Unset, Any]): - """ - - path: Union[Unset, str] = UNSET - description: Union[Unset, str] = UNSET - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - description = self.description - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if description is not UNSET: - field_dict["description"] = description - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path", UNSET) - - description = d.pop("description", UNSET) - - value = d.pop("value", UNSET) - - update_resource_json_body = cls( - path=path, - description=description, - value=value, - ) - - update_resource_json_body.additional_properties = d - return update_resource_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_resource_type_json_body.py b/python-client/windmill-api/windmill_api/models/update_resource_type_json_body.py deleted file mode 100644 index 21776d5f5b..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_resource_type_json_body.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateResourceTypeJsonBody") - - -@_attrs_define -class UpdateResourceTypeJsonBody: - """ - Attributes: - schema (Union[Unset, Any]): - description (Union[Unset, str]): - """ - - schema: Union[Unset, Any] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - schema = self.schema - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if schema is not UNSET: - field_dict["schema"] = schema - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - schema = d.pop("schema", UNSET) - - description = d.pop("description", UNSET) - - update_resource_type_json_body = cls( - schema=schema, - description=description, - ) - - update_resource_type_json_body.additional_properties = d - return update_resource_type_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_resource_value_json_body.py b/python-client/windmill-api/windmill_api/models/update_resource_value_json_body.py deleted file mode 100644 index b36cc56364..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_resource_value_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateResourceValueJsonBody") - - -@_attrs_define -class UpdateResourceValueJsonBody: - """ - Attributes: - value (Union[Unset, Any]): - """ - - value: Union[Unset, Any] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - value = self.value - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if value is not UNSET: - field_dict["value"] = value - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - value = d.pop("value", UNSET) - - update_resource_value_json_body = cls( - value=value, - ) - - update_resource_value_json_body.additional_properties = d - return update_resource_value_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_schedule_json_body.py b/python-client/windmill-api/windmill_api/models/update_schedule_json_body.py deleted file mode 100644 index e84ac0ada8..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_schedule_json_body.py +++ /dev/null @@ -1,234 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.update_schedule_json_body_args import UpdateScheduleJsonBodyArgs - from ..models.update_schedule_json_body_on_recovery_extra_args import UpdateScheduleJsonBodyOnRecoveryExtraArgs - from ..models.update_schedule_json_body_on_failure_extra_args import UpdateScheduleJsonBodyOnFailureExtraArgs - from ..models.update_schedule_json_body_retry import UpdateScheduleJsonBodyRetry - - - - - -T = TypeVar("T", bound="UpdateScheduleJsonBody") - - -@_attrs_define -class UpdateScheduleJsonBody: - """ - Attributes: - schedule (str): - timezone (str): - args (UpdateScheduleJsonBodyArgs): - on_failure (Union[Unset, str]): - on_failure_times (Union[Unset, float]): - on_failure_exact (Union[Unset, bool]): - on_failure_extra_args (Union[Unset, UpdateScheduleJsonBodyOnFailureExtraArgs]): - on_recovery (Union[Unset, str]): - on_recovery_times (Union[Unset, float]): - on_recovery_extra_args (Union[Unset, UpdateScheduleJsonBodyOnRecoveryExtraArgs]): - ws_error_handler_muted (Union[Unset, bool]): - retry (Union[Unset, UpdateScheduleJsonBodyRetry]): - no_flow_overlap (Union[Unset, bool]): - summary (Union[Unset, str]): - tag (Union[Unset, str]): - """ - - schedule: str - timezone: str - args: 'UpdateScheduleJsonBodyArgs' - on_failure: Union[Unset, str] = UNSET - on_failure_times: Union[Unset, float] = UNSET - on_failure_exact: Union[Unset, bool] = UNSET - on_failure_extra_args: Union[Unset, 'UpdateScheduleJsonBodyOnFailureExtraArgs'] = UNSET - on_recovery: Union[Unset, str] = UNSET - on_recovery_times: Union[Unset, float] = UNSET - on_recovery_extra_args: Union[Unset, 'UpdateScheduleJsonBodyOnRecoveryExtraArgs'] = UNSET - ws_error_handler_muted: Union[Unset, bool] = UNSET - retry: Union[Unset, 'UpdateScheduleJsonBodyRetry'] = UNSET - no_flow_overlap: Union[Unset, bool] = UNSET - summary: Union[Unset, str] = UNSET - tag: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.update_schedule_json_body_args import UpdateScheduleJsonBodyArgs - from ..models.update_schedule_json_body_on_recovery_extra_args import UpdateScheduleJsonBodyOnRecoveryExtraArgs - from ..models.update_schedule_json_body_on_failure_extra_args import UpdateScheduleJsonBodyOnFailureExtraArgs - from ..models.update_schedule_json_body_retry import UpdateScheduleJsonBodyRetry - schedule = self.schedule - timezone = self.timezone - args = self.args.to_dict() - - on_failure = self.on_failure - on_failure_times = self.on_failure_times - on_failure_exact = self.on_failure_exact - on_failure_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_failure_extra_args, Unset): - on_failure_extra_args = self.on_failure_extra_args.to_dict() - - on_recovery = self.on_recovery - on_recovery_times = self.on_recovery_times - on_recovery_extra_args: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.on_recovery_extra_args, Unset): - on_recovery_extra_args = self.on_recovery_extra_args.to_dict() - - ws_error_handler_muted = self.ws_error_handler_muted - retry: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.retry, Unset): - retry = self.retry.to_dict() - - no_flow_overlap = self.no_flow_overlap - summary = self.summary - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "schedule": schedule, - "timezone": timezone, - "args": args, - }) - if on_failure is not UNSET: - field_dict["on_failure"] = on_failure - if on_failure_times is not UNSET: - field_dict["on_failure_times"] = on_failure_times - if on_failure_exact is not UNSET: - field_dict["on_failure_exact"] = on_failure_exact - if on_failure_extra_args is not UNSET: - field_dict["on_failure_extra_args"] = on_failure_extra_args - if on_recovery is not UNSET: - field_dict["on_recovery"] = on_recovery - if on_recovery_times is not UNSET: - field_dict["on_recovery_times"] = on_recovery_times - if on_recovery_extra_args is not UNSET: - field_dict["on_recovery_extra_args"] = on_recovery_extra_args - if ws_error_handler_muted is not UNSET: - field_dict["ws_error_handler_muted"] = ws_error_handler_muted - if retry is not UNSET: - field_dict["retry"] = retry - if no_flow_overlap is not UNSET: - field_dict["no_flow_overlap"] = no_flow_overlap - if summary is not UNSET: - field_dict["summary"] = summary - if tag is not UNSET: - field_dict["tag"] = tag - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.update_schedule_json_body_args import UpdateScheduleJsonBodyArgs - from ..models.update_schedule_json_body_on_recovery_extra_args import UpdateScheduleJsonBodyOnRecoveryExtraArgs - from ..models.update_schedule_json_body_on_failure_extra_args import UpdateScheduleJsonBodyOnFailureExtraArgs - from ..models.update_schedule_json_body_retry import UpdateScheduleJsonBodyRetry - d = src_dict.copy() - schedule = d.pop("schedule") - - timezone = d.pop("timezone") - - args = UpdateScheduleJsonBodyArgs.from_dict(d.pop("args")) - - - - - on_failure = d.pop("on_failure", UNSET) - - on_failure_times = d.pop("on_failure_times", UNSET) - - on_failure_exact = d.pop("on_failure_exact", UNSET) - - _on_failure_extra_args = d.pop("on_failure_extra_args", UNSET) - on_failure_extra_args: Union[Unset, UpdateScheduleJsonBodyOnFailureExtraArgs] - if isinstance(_on_failure_extra_args, Unset): - on_failure_extra_args = UNSET - else: - on_failure_extra_args = UpdateScheduleJsonBodyOnFailureExtraArgs.from_dict(_on_failure_extra_args) - - - - - on_recovery = d.pop("on_recovery", UNSET) - - on_recovery_times = d.pop("on_recovery_times", UNSET) - - _on_recovery_extra_args = d.pop("on_recovery_extra_args", UNSET) - on_recovery_extra_args: Union[Unset, UpdateScheduleJsonBodyOnRecoveryExtraArgs] - if isinstance(_on_recovery_extra_args, Unset): - on_recovery_extra_args = UNSET - else: - on_recovery_extra_args = UpdateScheduleJsonBodyOnRecoveryExtraArgs.from_dict(_on_recovery_extra_args) - - - - - ws_error_handler_muted = d.pop("ws_error_handler_muted", UNSET) - - _retry = d.pop("retry", UNSET) - retry: Union[Unset, UpdateScheduleJsonBodyRetry] - if isinstance(_retry, Unset): - retry = UNSET - else: - retry = UpdateScheduleJsonBodyRetry.from_dict(_retry) - - - - - no_flow_overlap = d.pop("no_flow_overlap", UNSET) - - summary = d.pop("summary", UNSET) - - tag = d.pop("tag", UNSET) - - update_schedule_json_body = cls( - schedule=schedule, - timezone=timezone, - args=args, - on_failure=on_failure, - on_failure_times=on_failure_times, - on_failure_exact=on_failure_exact, - on_failure_extra_args=on_failure_extra_args, - on_recovery=on_recovery, - on_recovery_times=on_recovery_times, - on_recovery_extra_args=on_recovery_extra_args, - ws_error_handler_muted=ws_error_handler_muted, - retry=retry, - no_flow_overlap=no_flow_overlap, - summary=summary, - tag=tag, - ) - - update_schedule_json_body.additional_properties = d - return update_schedule_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_args.py b/python-client/windmill-api/windmill_api/models/update_schedule_json_body_args.py deleted file mode 100644 index cfc22daa5b..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UpdateScheduleJsonBodyArgs") - - -@_attrs_define -class UpdateScheduleJsonBodyArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - update_schedule_json_body_args = cls( - ) - - update_schedule_json_body_args.additional_properties = d - return update_schedule_json_body_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_on_failure_extra_args.py b/python-client/windmill-api/windmill_api/models/update_schedule_json_body_on_failure_extra_args.py deleted file mode 100644 index df48d82798..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_on_failure_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UpdateScheduleJsonBodyOnFailureExtraArgs") - - -@_attrs_define -class UpdateScheduleJsonBodyOnFailureExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - update_schedule_json_body_on_failure_extra_args = cls( - ) - - update_schedule_json_body_on_failure_extra_args.additional_properties = d - return update_schedule_json_body_on_failure_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_on_recovery_extra_args.py b/python-client/windmill-api/windmill_api/models/update_schedule_json_body_on_recovery_extra_args.py deleted file mode 100644 index f78371a8da..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_on_recovery_extra_args.py +++ /dev/null @@ -1,62 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UpdateScheduleJsonBodyOnRecoveryExtraArgs") - - -@_attrs_define -class UpdateScheduleJsonBodyOnRecoveryExtraArgs: - """ - """ - - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - update_schedule_json_body_on_recovery_extra_args = cls( - ) - - update_schedule_json_body_on_recovery_extra_args.additional_properties = d - return update_schedule_json_body_on_recovery_extra_args - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry.py b/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry.py deleted file mode 100644 index ecc5559ee4..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry.py +++ /dev/null @@ -1,112 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from ..types import UNSET, Unset -from typing import Dict - -if TYPE_CHECKING: - from ..models.update_schedule_json_body_retry_exponential import UpdateScheduleJsonBodyRetryExponential - from ..models.update_schedule_json_body_retry_constant import UpdateScheduleJsonBodyRetryConstant - - - - - -T = TypeVar("T", bound="UpdateScheduleJsonBodyRetry") - - -@_attrs_define -class UpdateScheduleJsonBodyRetry: - """ - Attributes: - constant (Union[Unset, UpdateScheduleJsonBodyRetryConstant]): - exponential (Union[Unset, UpdateScheduleJsonBodyRetryExponential]): - """ - - constant: Union[Unset, 'UpdateScheduleJsonBodyRetryConstant'] = UNSET - exponential: Union[Unset, 'UpdateScheduleJsonBodyRetryExponential'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.update_schedule_json_body_retry_exponential import UpdateScheduleJsonBodyRetryExponential - from ..models.update_schedule_json_body_retry_constant import UpdateScheduleJsonBodyRetryConstant - constant: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.constant, Unset): - constant = self.constant.to_dict() - - exponential: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.exponential, Unset): - exponential = self.exponential.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if constant is not UNSET: - field_dict["constant"] = constant - if exponential is not UNSET: - field_dict["exponential"] = exponential - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.update_schedule_json_body_retry_exponential import UpdateScheduleJsonBodyRetryExponential - from ..models.update_schedule_json_body_retry_constant import UpdateScheduleJsonBodyRetryConstant - d = src_dict.copy() - _constant = d.pop("constant", UNSET) - constant: Union[Unset, UpdateScheduleJsonBodyRetryConstant] - if isinstance(_constant, Unset): - constant = UNSET - else: - constant = UpdateScheduleJsonBodyRetryConstant.from_dict(_constant) - - - - - _exponential = d.pop("exponential", UNSET) - exponential: Union[Unset, UpdateScheduleJsonBodyRetryExponential] - if isinstance(_exponential, Unset): - exponential = UNSET - else: - exponential = UpdateScheduleJsonBodyRetryExponential.from_dict(_exponential) - - - - - update_schedule_json_body_retry = cls( - constant=constant, - exponential=exponential, - ) - - update_schedule_json_body_retry.additional_properties = d - return update_schedule_json_body_retry - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry_constant.py b/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry_constant.py deleted file mode 100644 index 307a151e63..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry_constant.py +++ /dev/null @@ -1,81 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateScheduleJsonBodyRetryConstant") - - -@_attrs_define -class UpdateScheduleJsonBodyRetryConstant: - """ - Attributes: - attempts (Union[Unset, int]): - seconds (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - seconds = self.seconds - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if seconds is not UNSET: - field_dict["seconds"] = seconds - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - seconds = d.pop("seconds", UNSET) - - update_schedule_json_body_retry_constant = cls( - attempts=attempts, - seconds=seconds, - ) - - update_schedule_json_body_retry_constant.additional_properties = d - return update_schedule_json_body_retry_constant - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry_exponential.py b/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry_exponential.py deleted file mode 100644 index 82749b4644..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_schedule_json_body_retry_exponential.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateScheduleJsonBodyRetryExponential") - - -@_attrs_define -class UpdateScheduleJsonBodyRetryExponential: - """ - Attributes: - attempts (Union[Unset, int]): - multiplier (Union[Unset, int]): - seconds (Union[Unset, int]): - random_factor (Union[Unset, int]): - """ - - attempts: Union[Unset, int] = UNSET - multiplier: Union[Unset, int] = UNSET - seconds: Union[Unset, int] = UNSET - random_factor: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - attempts = self.attempts - multiplier = self.multiplier - seconds = self.seconds - random_factor = self.random_factor - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if attempts is not UNSET: - field_dict["attempts"] = attempts - if multiplier is not UNSET: - field_dict["multiplier"] = multiplier - if seconds is not UNSET: - field_dict["seconds"] = seconds - if random_factor is not UNSET: - field_dict["random_factor"] = random_factor - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - attempts = d.pop("attempts", UNSET) - - multiplier = d.pop("multiplier", UNSET) - - seconds = d.pop("seconds", UNSET) - - random_factor = d.pop("random_factor", UNSET) - - update_schedule_json_body_retry_exponential = cls( - attempts=attempts, - multiplier=multiplier, - seconds=seconds, - random_factor=random_factor, - ) - - update_schedule_json_body_retry_exponential.additional_properties = d - return update_schedule_json_body_retry_exponential - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_script_history_json_body.py b/python-client/windmill-api/windmill_api/models/update_script_history_json_body.py deleted file mode 100644 index aea2a195cd..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_script_history_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateScriptHistoryJsonBody") - - -@_attrs_define -class UpdateScriptHistoryJsonBody: - """ - Attributes: - deployment_msg (Union[Unset, str]): - """ - - deployment_msg: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - deployment_msg = self.deployment_msg - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if deployment_msg is not UNSET: - field_dict["deployment_msg"] = deployment_msg - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - deployment_msg = d.pop("deployment_msg", UNSET) - - update_script_history_json_body = cls( - deployment_msg=deployment_msg, - ) - - update_script_history_json_body.additional_properties = d - return update_script_history_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_tutorial_progress_json_body.py b/python-client/windmill-api/windmill_api/models/update_tutorial_progress_json_body.py deleted file mode 100644 index da1352191f..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_tutorial_progress_json_body.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateTutorialProgressJsonBody") - - -@_attrs_define -class UpdateTutorialProgressJsonBody: - """ - Attributes: - progress (Union[Unset, int]): - """ - - progress: Union[Unset, int] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - progress = self.progress - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if progress is not UNSET: - field_dict["progress"] = progress - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - progress = d.pop("progress", UNSET) - - update_tutorial_progress_json_body = cls( - progress=progress, - ) - - update_tutorial_progress_json_body.additional_properties = d - return update_tutorial_progress_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_user_json_body.py b/python-client/windmill-api/windmill_api/models/update_user_json_body.py deleted file mode 100644 index 12330798aa..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_user_json_body.py +++ /dev/null @@ -1,89 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateUserJsonBody") - - -@_attrs_define -class UpdateUserJsonBody: - """ - Attributes: - is_admin (Union[Unset, bool]): - operator (Union[Unset, bool]): - disabled (Union[Unset, bool]): - """ - - is_admin: Union[Unset, bool] = UNSET - operator: Union[Unset, bool] = UNSET - disabled: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - is_admin = self.is_admin - operator = self.operator - disabled = self.disabled - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if is_admin is not UNSET: - field_dict["is_admin"] = is_admin - if operator is not UNSET: - field_dict["operator"] = operator - if disabled is not UNSET: - field_dict["disabled"] = disabled - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - is_admin = d.pop("is_admin", UNSET) - - operator = d.pop("operator", UNSET) - - disabled = d.pop("disabled", UNSET) - - update_user_json_body = cls( - is_admin=is_admin, - operator=operator, - disabled=disabled, - ) - - update_user_json_body.additional_properties = d - return update_user_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/update_variable_json_body.py b/python-client/windmill-api/windmill_api/models/update_variable_json_body.py deleted file mode 100644 index 20032e5701..0000000000 --- a/python-client/windmill-api/windmill_api/models/update_variable_json_body.py +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UpdateVariableJsonBody") - - -@_attrs_define -class UpdateVariableJsonBody: - """ - Attributes: - path (Union[Unset, str]): - value (Union[Unset, str]): - is_secret (Union[Unset, bool]): - description (Union[Unset, str]): - """ - - path: Union[Unset, str] = UNSET - value: Union[Unset, str] = UNSET - is_secret: Union[Unset, bool] = UNSET - description: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - path = self.path - value = self.value - is_secret = self.is_secret - description = self.description - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if path is not UNSET: - field_dict["path"] = path - if value is not UNSET: - field_dict["value"] = value - if is_secret is not UNSET: - field_dict["is_secret"] = is_secret - if description is not UNSET: - field_dict["description"] = description - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - path = d.pop("path", UNSET) - - value = d.pop("value", UNSET) - - is_secret = d.pop("is_secret", UNSET) - - description = d.pop("description", UNSET) - - update_variable_json_body = cls( - path=path, - value=value, - is_secret=is_secret, - description=description, - ) - - update_variable_json_body.additional_properties = d - return update_variable_json_body - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/upload_file_part.py b/python-client/windmill-api/windmill_api/models/upload_file_part.py deleted file mode 100644 index 5a90bf025c..0000000000 --- a/python-client/windmill-api/windmill_api/models/upload_file_part.py +++ /dev/null @@ -1,77 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UploadFilePart") - - -@_attrs_define -class UploadFilePart: - """ - Attributes: - part_number (int): - tag (str): - """ - - part_number: int - tag: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - part_number = self.part_number - tag = self.tag - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "part_number": part_number, - "tag": tag, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - part_number = d.pop("part_number") - - tag = d.pop("tag") - - upload_file_part = cls( - part_number=part_number, - tag=tag, - ) - - upload_file_part.additional_properties = d - return upload_file_part - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/usage.py b/python-client/windmill-api/windmill_api/models/usage.py deleted file mode 100644 index fae2efd613..0000000000 --- a/python-client/windmill-api/windmill_api/models/usage.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="Usage") - - -@_attrs_define -class Usage: - """ - Attributes: - executions (Union[Unset, float]): - """ - - executions: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - executions = self.executions - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if executions is not UNSET: - field_dict["executions"] = executions - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - executions = d.pop("executions", UNSET) - - usage = cls( - executions=executions, - ) - - usage.additional_properties = d - return usage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/user.py b/python-client/windmill-api/windmill_api/models/user.py deleted file mode 100644 index 73dcd73a98..0000000000 --- a/python-client/windmill-api/windmill_api/models/user.py +++ /dev/null @@ -1,185 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.user_usage import UserUsage - - - - - -T = TypeVar("T", bound="User") - - -@_attrs_define -class User: - """ - Attributes: - email (str): - username (str): - is_admin (bool): - is_super_admin (bool): - created_at (datetime.datetime): - operator (bool): - disabled (bool): - folders (List[str]): - folders_owners (List[str]): - groups (Union[Unset, List[str]]): - usage (Union[Unset, UserUsage]): - """ - - email: str - username: str - is_admin: bool - is_super_admin: bool - created_at: datetime.datetime - operator: bool - disabled: bool - folders: List[str] - folders_owners: List[str] - groups: Union[Unset, List[str]] = UNSET - usage: Union[Unset, 'UserUsage'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.user_usage import UserUsage - email = self.email - username = self.username - is_admin = self.is_admin - is_super_admin = self.is_super_admin - created_at = self.created_at.isoformat() - - operator = self.operator - disabled = self.disabled - folders = self.folders - - - - - folders_owners = self.folders_owners - - - - - groups: Union[Unset, List[str]] = UNSET - if not isinstance(self.groups, Unset): - groups = self.groups - - - - - usage: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.usage, Unset): - usage = self.usage.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "username": username, - "is_admin": is_admin, - "is_super_admin": is_super_admin, - "created_at": created_at, - "operator": operator, - "disabled": disabled, - "folders": folders, - "folders_owners": folders_owners, - }) - if groups is not UNSET: - field_dict["groups"] = groups - if usage is not UNSET: - field_dict["usage"] = usage - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.user_usage import UserUsage - d = src_dict.copy() - email = d.pop("email") - - username = d.pop("username") - - is_admin = d.pop("is_admin") - - is_super_admin = d.pop("is_super_admin") - - created_at = isoparse(d.pop("created_at")) - - - - - operator = d.pop("operator") - - disabled = d.pop("disabled") - - folders = cast(List[str], d.pop("folders")) - - - folders_owners = cast(List[str], d.pop("folders_owners")) - - - groups = cast(List[str], d.pop("groups", UNSET)) - - - _usage = d.pop("usage", UNSET) - usage: Union[Unset, UserUsage] - if isinstance(_usage, Unset): - usage = UNSET - else: - usage = UserUsage.from_dict(_usage) - - - - - user = cls( - email=email, - username=username, - is_admin=is_admin, - is_super_admin=is_super_admin, - created_at=created_at, - operator=operator, - disabled=disabled, - folders=folders, - folders_owners=folders_owners, - groups=groups, - usage=usage, - ) - - user.additional_properties = d - return user - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/user_usage.py b/python-client/windmill-api/windmill_api/models/user_usage.py deleted file mode 100644 index bf90b7172c..0000000000 --- a/python-client/windmill-api/windmill_api/models/user_usage.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="UserUsage") - - -@_attrs_define -class UserUsage: - """ - Attributes: - executions (Union[Unset, float]): - """ - - executions: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - executions = self.executions - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if executions is not UNSET: - field_dict["executions"] = executions - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - executions = d.pop("executions", UNSET) - - user_usage = cls( - executions=executions, - ) - - user_usage.additional_properties = d - return user_usage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/user_workspace_list.py b/python-client/windmill-api/windmill_api/models/user_workspace_list.py deleted file mode 100644 index 08b05725d4..0000000000 --- a/python-client/windmill-api/windmill_api/models/user_workspace_list.py +++ /dev/null @@ -1,100 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import cast -from typing import Dict -from typing import cast, List - -if TYPE_CHECKING: - from ..models.user_workspace_list_workspaces_item import UserWorkspaceListWorkspacesItem - - - - - -T = TypeVar("T", bound="UserWorkspaceList") - - -@_attrs_define -class UserWorkspaceList: - """ - Attributes: - email (str): - workspaces (List['UserWorkspaceListWorkspacesItem']): - """ - - email: str - workspaces: List['UserWorkspaceListWorkspacesItem'] - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.user_workspace_list_workspaces_item import UserWorkspaceListWorkspacesItem - email = self.email - workspaces = [] - for workspaces_item_data in self.workspaces: - workspaces_item = workspaces_item_data.to_dict() - - workspaces.append(workspaces_item) - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "workspaces": workspaces, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.user_workspace_list_workspaces_item import UserWorkspaceListWorkspacesItem - d = src_dict.copy() - email = d.pop("email") - - workspaces = [] - _workspaces = d.pop("workspaces") - for workspaces_item_data in (_workspaces): - workspaces_item = UserWorkspaceListWorkspacesItem.from_dict(workspaces_item_data) - - - - workspaces.append(workspaces_item) - - - user_workspace_list = cls( - email=email, - workspaces=workspaces, - ) - - user_workspace_list.additional_properties = d - return user_workspace_list - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/user_workspace_list_workspaces_item.py b/python-client/windmill-api/windmill_api/models/user_workspace_list_workspaces_item.py deleted file mode 100644 index ce0e52cf62..0000000000 --- a/python-client/windmill-api/windmill_api/models/user_workspace_list_workspaces_item.py +++ /dev/null @@ -1,84 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="UserWorkspaceListWorkspacesItem") - - -@_attrs_define -class UserWorkspaceListWorkspacesItem: - """ - Attributes: - id (str): - name (str): - username (str): - """ - - id: str - name: str - username: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - username = self.username - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "username": username, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - username = d.pop("username") - - user_workspace_list_workspaces_item = cls( - id=id, - name=name, - username=username, - ) - - user_workspace_list_workspaces_item.additional_properties = d - return user_workspace_list_workspaces_item - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/whoami_response_200.py b/python-client/windmill-api/windmill_api/models/whoami_response_200.py deleted file mode 100644 index 2add389441..0000000000 --- a/python-client/windmill-api/windmill_api/models/whoami_response_200.py +++ /dev/null @@ -1,185 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.whoami_response_200_usage import WhoamiResponse200Usage - - - - - -T = TypeVar("T", bound="WhoamiResponse200") - - -@_attrs_define -class WhoamiResponse200: - """ - Attributes: - email (str): - username (str): - is_admin (bool): - is_super_admin (bool): - created_at (datetime.datetime): - operator (bool): - disabled (bool): - folders (List[str]): - folders_owners (List[str]): - groups (Union[Unset, List[str]]): - usage (Union[Unset, WhoamiResponse200Usage]): - """ - - email: str - username: str - is_admin: bool - is_super_admin: bool - created_at: datetime.datetime - operator: bool - disabled: bool - folders: List[str] - folders_owners: List[str] - groups: Union[Unset, List[str]] = UNSET - usage: Union[Unset, 'WhoamiResponse200Usage'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.whoami_response_200_usage import WhoamiResponse200Usage - email = self.email - username = self.username - is_admin = self.is_admin - is_super_admin = self.is_super_admin - created_at = self.created_at.isoformat() - - operator = self.operator - disabled = self.disabled - folders = self.folders - - - - - folders_owners = self.folders_owners - - - - - groups: Union[Unset, List[str]] = UNSET - if not isinstance(self.groups, Unset): - groups = self.groups - - - - - usage: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.usage, Unset): - usage = self.usage.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "username": username, - "is_admin": is_admin, - "is_super_admin": is_super_admin, - "created_at": created_at, - "operator": operator, - "disabled": disabled, - "folders": folders, - "folders_owners": folders_owners, - }) - if groups is not UNSET: - field_dict["groups"] = groups - if usage is not UNSET: - field_dict["usage"] = usage - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.whoami_response_200_usage import WhoamiResponse200Usage - d = src_dict.copy() - email = d.pop("email") - - username = d.pop("username") - - is_admin = d.pop("is_admin") - - is_super_admin = d.pop("is_super_admin") - - created_at = isoparse(d.pop("created_at")) - - - - - operator = d.pop("operator") - - disabled = d.pop("disabled") - - folders = cast(List[str], d.pop("folders")) - - - folders_owners = cast(List[str], d.pop("folders_owners")) - - - groups = cast(List[str], d.pop("groups", UNSET)) - - - _usage = d.pop("usage", UNSET) - usage: Union[Unset, WhoamiResponse200Usage] - if isinstance(_usage, Unset): - usage = UNSET - else: - usage = WhoamiResponse200Usage.from_dict(_usage) - - - - - whoami_response_200 = cls( - email=email, - username=username, - is_admin=is_admin, - is_super_admin=is_super_admin, - created_at=created_at, - operator=operator, - disabled=disabled, - folders=folders, - folders_owners=folders_owners, - groups=groups, - usage=usage, - ) - - whoami_response_200.additional_properties = d - return whoami_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/whoami_response_200_usage.py b/python-client/windmill-api/windmill_api/models/whoami_response_200_usage.py deleted file mode 100644 index 1adcbfdf24..0000000000 --- a/python-client/windmill-api/windmill_api/models/whoami_response_200_usage.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="WhoamiResponse200Usage") - - -@_attrs_define -class WhoamiResponse200Usage: - """ - Attributes: - executions (Union[Unset, float]): - """ - - executions: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - executions = self.executions - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if executions is not UNSET: - field_dict["executions"] = executions - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - executions = d.pop("executions", UNSET) - - whoami_response_200_usage = cls( - executions=executions, - ) - - whoami_response_200_usage.additional_properties = d - return whoami_response_200_usage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/whois_response_200.py b/python-client/windmill-api/windmill_api/models/whois_response_200.py deleted file mode 100644 index 804e0cd3b8..0000000000 --- a/python-client/windmill-api/windmill_api/models/whois_response_200.py +++ /dev/null @@ -1,185 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -from typing import Dict -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.whois_response_200_usage import WhoisResponse200Usage - - - - - -T = TypeVar("T", bound="WhoisResponse200") - - -@_attrs_define -class WhoisResponse200: - """ - Attributes: - email (str): - username (str): - is_admin (bool): - is_super_admin (bool): - created_at (datetime.datetime): - operator (bool): - disabled (bool): - folders (List[str]): - folders_owners (List[str]): - groups (Union[Unset, List[str]]): - usage (Union[Unset, WhoisResponse200Usage]): - """ - - email: str - username: str - is_admin: bool - is_super_admin: bool - created_at: datetime.datetime - operator: bool - disabled: bool - folders: List[str] - folders_owners: List[str] - groups: Union[Unset, List[str]] = UNSET - usage: Union[Unset, 'WhoisResponse200Usage'] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - from ..models.whois_response_200_usage import WhoisResponse200Usage - email = self.email - username = self.username - is_admin = self.is_admin - is_super_admin = self.is_super_admin - created_at = self.created_at.isoformat() - - operator = self.operator - disabled = self.disabled - folders = self.folders - - - - - folders_owners = self.folders_owners - - - - - groups: Union[Unset, List[str]] = UNSET - if not isinstance(self.groups, Unset): - groups = self.groups - - - - - usage: Union[Unset, Dict[str, Any]] = UNSET - if not isinstance(self.usage, Unset): - usage = self.usage.to_dict() - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "email": email, - "username": username, - "is_admin": is_admin, - "is_super_admin": is_super_admin, - "created_at": created_at, - "operator": operator, - "disabled": disabled, - "folders": folders, - "folders_owners": folders_owners, - }) - if groups is not UNSET: - field_dict["groups"] = groups - if usage is not UNSET: - field_dict["usage"] = usage - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.whois_response_200_usage import WhoisResponse200Usage - d = src_dict.copy() - email = d.pop("email") - - username = d.pop("username") - - is_admin = d.pop("is_admin") - - is_super_admin = d.pop("is_super_admin") - - created_at = isoparse(d.pop("created_at")) - - - - - operator = d.pop("operator") - - disabled = d.pop("disabled") - - folders = cast(List[str], d.pop("folders")) - - - folders_owners = cast(List[str], d.pop("folders_owners")) - - - groups = cast(List[str], d.pop("groups", UNSET)) - - - _usage = d.pop("usage", UNSET) - usage: Union[Unset, WhoisResponse200Usage] - if isinstance(_usage, Unset): - usage = UNSET - else: - usage = WhoisResponse200Usage.from_dict(_usage) - - - - - whois_response_200 = cls( - email=email, - username=username, - is_admin=is_admin, - is_super_admin=is_super_admin, - created_at=created_at, - operator=operator, - disabled=disabled, - folders=folders, - folders_owners=folders_owners, - groups=groups, - usage=usage, - ) - - whois_response_200.additional_properties = d - return whois_response_200 - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/whois_response_200_usage.py b/python-client/windmill-api/windmill_api/models/whois_response_200_usage.py deleted file mode 100644 index 07cffd3876..0000000000 --- a/python-client/windmill-api/windmill_api/models/whois_response_200_usage.py +++ /dev/null @@ -1,73 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="WhoisResponse200Usage") - - -@_attrs_define -class WhoisResponse200Usage: - """ - Attributes: - executions (Union[Unset, float]): - """ - - executions: Union[Unset, float] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - executions = self.executions - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if executions is not UNSET: - field_dict["executions"] = executions - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - executions = d.pop("executions", UNSET) - - whois_response_200_usage = cls( - executions=executions, - ) - - whois_response_200_usage.additional_properties = d - return whois_response_200_usage - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/windmill_file_metadata.py b/python-client/windmill-api/windmill_api/models/windmill_file_metadata.py deleted file mode 100644 index 34878bbe08..0000000000 --- a/python-client/windmill-api/windmill_api/models/windmill_file_metadata.py +++ /dev/null @@ -1,130 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="WindmillFileMetadata") - - -@_attrs_define -class WindmillFileMetadata: - """ - Attributes: - mime_type (Union[Unset, str]): - size_in_bytes (Union[Unset, int]): - last_modified (Union[Unset, datetime.datetime]): - expires (Union[Unset, datetime.datetime]): - version_id (Union[Unset, str]): - """ - - mime_type: Union[Unset, str] = UNSET - size_in_bytes: Union[Unset, int] = UNSET - last_modified: Union[Unset, datetime.datetime] = UNSET - expires: Union[Unset, datetime.datetime] = UNSET - version_id: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - mime_type = self.mime_type - size_in_bytes = self.size_in_bytes - last_modified: Union[Unset, str] = UNSET - if not isinstance(self.last_modified, Unset): - last_modified = self.last_modified.isoformat() - - expires: Union[Unset, str] = UNSET - if not isinstance(self.expires, Unset): - expires = self.expires.isoformat() - - version_id = self.version_id - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - }) - if mime_type is not UNSET: - field_dict["mime_type"] = mime_type - if size_in_bytes is not UNSET: - field_dict["size_in_bytes"] = size_in_bytes - if last_modified is not UNSET: - field_dict["last_modified"] = last_modified - if expires is not UNSET: - field_dict["expires"] = expires - if version_id is not UNSET: - field_dict["version_id"] = version_id - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - mime_type = d.pop("mime_type", UNSET) - - size_in_bytes = d.pop("size_in_bytes", UNSET) - - _last_modified = d.pop("last_modified", UNSET) - last_modified: Union[Unset, datetime.datetime] - if isinstance(_last_modified, Unset): - last_modified = UNSET - else: - last_modified = isoparse(_last_modified) - - - - - _expires = d.pop("expires", UNSET) - expires: Union[Unset, datetime.datetime] - if isinstance(_expires, Unset): - expires = UNSET - else: - expires = isoparse(_expires) - - - - - version_id = d.pop("version_id", UNSET) - - windmill_file_metadata = cls( - mime_type=mime_type, - size_in_bytes=size_in_bytes, - last_modified=last_modified, - expires=expires, - version_id=version_id, - ) - - windmill_file_metadata.additional_properties = d - return windmill_file_metadata - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/windmill_file_preview.py b/python-client/windmill-api/windmill_api/models/windmill_file_preview.py deleted file mode 100644 index 994b93c346..0000000000 --- a/python-client/windmill-api/windmill_api/models/windmill_file_preview.py +++ /dev/null @@ -1,101 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset -from ..models.windmill_file_preview_content_type import WindmillFilePreviewContentType - - - - - - -T = TypeVar("T", bound="WindmillFilePreview") - - -@_attrs_define -class WindmillFilePreview: - """ - Attributes: - content_type (WindmillFilePreviewContentType): - msg (Union[Unset, str]): - content (Union[Unset, str]): - download_url (Union[Unset, str]): - """ - - content_type: WindmillFilePreviewContentType - msg: Union[Unset, str] = UNSET - content: Union[Unset, str] = UNSET - download_url: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - content_type = self.content_type.value - - msg = self.msg - content = self.content - download_url = self.download_url - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "content_type": content_type, - }) - if msg is not UNSET: - field_dict["msg"] = msg - if content is not UNSET: - field_dict["content"] = content - if download_url is not UNSET: - field_dict["download_url"] = download_url - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - content_type = WindmillFilePreviewContentType(d.pop("content_type")) - - - - - msg = d.pop("msg", UNSET) - - content = d.pop("content", UNSET) - - download_url = d.pop("download_url", UNSET) - - windmill_file_preview = cls( - content_type=content_type, - msg=msg, - content=content, - download_url=download_url, - ) - - windmill_file_preview.additional_properties = d - return windmill_file_preview - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/windmill_file_preview_content_type.py b/python-client/windmill-api/windmill_api/models/windmill_file_preview_content_type.py deleted file mode 100644 index 410b8f2fec..0000000000 --- a/python-client/windmill-api/windmill_api/models/windmill_file_preview_content_type.py +++ /dev/null @@ -1,10 +0,0 @@ -from enum import Enum - -class WindmillFilePreviewContentType(str, Enum): - CSV = "Csv" - PARQUET = "Parquet" - RAWTEXT = "RawText" - UNKNOWN = "Unknown" - - def __str__(self) -> str: - return str(self.value) diff --git a/python-client/windmill-api/windmill_api/models/windmill_large_file.py b/python-client/windmill-api/windmill_api/models/windmill_large_file.py deleted file mode 100644 index 77711be2f6..0000000000 --- a/python-client/windmill-api/windmill_api/models/windmill_large_file.py +++ /dev/null @@ -1,70 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="WindmillLargeFile") - - -@_attrs_define -class WindmillLargeFile: - """ - Attributes: - s3 (str): - """ - - s3: str - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - s3 = self.s3 - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "s3": s3, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - s3 = d.pop("s3") - - windmill_large_file = cls( - s3=s3, - ) - - windmill_large_file.additional_properties = d - return windmill_large_file - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/worker_ping.py b/python-client/windmill-api/windmill_api/models/worker_ping.py deleted file mode 100644 index 5a37c3f824..0000000000 --- a/python-client/windmill-api/windmill_api/models/worker_ping.py +++ /dev/null @@ -1,145 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from typing import cast -from typing import cast, List -import datetime -from dateutil.parser import isoparse -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="WorkerPing") - - -@_attrs_define -class WorkerPing: - """ - Attributes: - worker (str): - worker_instance (str): - started_at (datetime.datetime): - ip (str): - jobs_executed (int): - worker_group (str): - wm_version (str): - last_ping (Union[Unset, float]): - custom_tags (Union[Unset, List[str]]): - """ - - worker: str - worker_instance: str - started_at: datetime.datetime - ip: str - jobs_executed: int - worker_group: str - wm_version: str - last_ping: Union[Unset, float] = UNSET - custom_tags: Union[Unset, List[str]] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - worker = self.worker - worker_instance = self.worker_instance - started_at = self.started_at.isoformat() - - ip = self.ip - jobs_executed = self.jobs_executed - worker_group = self.worker_group - wm_version = self.wm_version - last_ping = self.last_ping - custom_tags: Union[Unset, List[str]] = UNSET - if not isinstance(self.custom_tags, Unset): - custom_tags = self.custom_tags - - - - - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "worker": worker, - "worker_instance": worker_instance, - "started_at": started_at, - "ip": ip, - "jobs_executed": jobs_executed, - "worker_group": worker_group, - "wm_version": wm_version, - }) - if last_ping is not UNSET: - field_dict["last_ping"] = last_ping - if custom_tags is not UNSET: - field_dict["custom_tags"] = custom_tags - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - worker = d.pop("worker") - - worker_instance = d.pop("worker_instance") - - started_at = isoparse(d.pop("started_at")) - - - - - ip = d.pop("ip") - - jobs_executed = d.pop("jobs_executed") - - worker_group = d.pop("worker_group") - - wm_version = d.pop("wm_version") - - last_ping = d.pop("last_ping", UNSET) - - custom_tags = cast(List[str], d.pop("custom_tags", UNSET)) - - - worker_ping = cls( - worker=worker, - worker_instance=worker_instance, - started_at=started_at, - ip=ip, - jobs_executed=jobs_executed, - worker_group=worker_group, - wm_version=wm_version, - last_ping=last_ping, - custom_tags=custom_tags, - ) - - worker_ping.additional_properties = d - return worker_ping - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/workspace.py b/python-client/windmill-api/windmill_api/models/workspace.py deleted file mode 100644 index 4ea3aa862b..0000000000 --- a/python-client/windmill-api/windmill_api/models/workspace.py +++ /dev/null @@ -1,94 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="Workspace") - - -@_attrs_define -class Workspace: - """ - Attributes: - id (str): - name (str): - owner (str): - domain (Union[Unset, str]): - """ - - id: str - name: str - owner: str - domain: Union[Unset, str] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - id = self.id - name = self.name - owner = self.owner - domain = self.domain - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "id": id, - "name": name, - "owner": owner, - }) - if domain is not UNSET: - field_dict["domain"] = domain - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - id = d.pop("id") - - name = d.pop("name") - - owner = d.pop("owner") - - domain = d.pop("domain", UNSET) - - workspace = cls( - id=id, - name=name, - owner=owner, - domain=domain, - ) - - workspace.additional_properties = d - return workspace - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/workspace_git_sync.py b/python-client/windmill-api/windmill_api/models/workspace_git_sync.py deleted file mode 100644 index 3f40155d25..0000000000 --- a/python-client/windmill-api/windmill_api/models/workspace_git_sync.py +++ /dev/null @@ -1,87 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - -from typing import Union -from ..types import UNSET, Unset - - - - - - -T = TypeVar("T", bound="WorkspaceGitSync") - - -@_attrs_define -class WorkspaceGitSync: - """ - Attributes: - script_path (str): - git_repo_resource_path (str): - use_individual_branch (Union[Unset, bool]): - """ - - script_path: str - git_repo_resource_path: str - use_individual_branch: Union[Unset, bool] = UNSET - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - script_path = self.script_path - git_repo_resource_path = self.git_repo_resource_path - use_individual_branch = self.use_individual_branch - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "script_path": script_path, - "git_repo_resource_path": git_repo_resource_path, - }) - if use_individual_branch is not UNSET: - field_dict["use_individual_branch"] = use_individual_branch - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - script_path = d.pop("script_path") - - git_repo_resource_path = d.pop("git_repo_resource_path") - - use_individual_branch = d.pop("use_individual_branch", UNSET) - - workspace_git_sync = cls( - script_path=script_path, - git_repo_resource_path=git_repo_resource_path, - use_individual_branch=use_individual_branch, - ) - - workspace_git_sync.additional_properties = d - return workspace_git_sync - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/models/workspace_invite.py b/python-client/windmill-api/windmill_api/models/workspace_invite.py deleted file mode 100644 index 98f66ace8d..0000000000 --- a/python-client/windmill-api/windmill_api/models/workspace_invite.py +++ /dev/null @@ -1,91 +0,0 @@ -from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING - -from typing import List - - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..types import UNSET, Unset - - - - - - - -T = TypeVar("T", bound="WorkspaceInvite") - - -@_attrs_define -class WorkspaceInvite: - """ - Attributes: - workspace_id (str): - email (str): - is_admin (bool): - operator (bool): - """ - - workspace_id: str - email: str - is_admin: bool - operator: bool - additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) - - - def to_dict(self) -> Dict[str, Any]: - workspace_id = self.workspace_id - email = self.email - is_admin = self.is_admin - operator = self.operator - - field_dict: Dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({ - "workspace_id": workspace_id, - "email": email, - "is_admin": is_admin, - "operator": operator, - }) - - return field_dict - - - - @classmethod - def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - d = src_dict.copy() - workspace_id = d.pop("workspace_id") - - email = d.pop("email") - - is_admin = d.pop("is_admin") - - operator = d.pop("operator") - - workspace_invite = cls( - workspace_id=workspace_id, - email=email, - is_admin=is_admin, - operator=operator, - ) - - workspace_invite.additional_properties = d - return workspace_invite - - @property - def additional_keys(self) -> List[str]: - return list(self.additional_properties.keys()) - - def __getitem__(self, key: str) -> Any: - return self.additional_properties[key] - - def __setitem__(self, key: str, value: Any) -> None: - self.additional_properties[key] = value - - def __delitem__(self, key: str) -> None: - del self.additional_properties[key] - - def __contains__(self, key: str) -> bool: - return key in self.additional_properties diff --git a/python-client/windmill-api/windmill_api/py.typed b/python-client/windmill-api/windmill_api/py.typed deleted file mode 100644 index 1aad32711f..0000000000 --- a/python-client/windmill-api/windmill_api/py.typed +++ /dev/null @@ -1 +0,0 @@ -# Marker file for PEP 561 \ No newline at end of file diff --git a/python-client/windmill-api/windmill_api/types.py b/python-client/windmill-api/windmill_api/types.py deleted file mode 100644 index 557ac24270..0000000000 --- a/python-client/windmill-api/windmill_api/types.py +++ /dev/null @@ -1,44 +0,0 @@ -""" Contains some shared types for properties """ -from http import HTTPStatus -from typing import Any, BinaryIO, Generic, MutableMapping, Optional, Tuple, TypeVar, Literal - -from attrs import define - - -class Unset: - def __bool__(self) -> Literal[False]: - return False - - -UNSET: Unset = Unset() - -FileJsonType = Tuple[Optional[str], BinaryIO, Optional[str]] - - -@define -class File: - """ Contains information for file uploads """ - - payload: BinaryIO - file_name: Optional[str] = None - mime_type: Optional[str] = None - - def to_tuple(self) -> FileJsonType: - """ Return a tuple representation that httpx will accept for multipart/form-data """ - return self.file_name, self.payload, self.mime_type - - -T = TypeVar("T") - - -@define -class Response(Generic[T]): - """ A response from an endpoint """ - - status_code: HTTPStatus - content: bytes - headers: MutableMapping[str, str] - parsed: Optional[T] - - -__all__ = ["File", "Response", "FileJsonType"]