upgrade pydantic (#266)
* upgrade pydantic Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * update other deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * update other deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * ruff Signed-off-by: Jess Frazelle <github@jessfraz.com> * bump more deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * format Signed-off-by: Jess Frazelle <github@jessfraz.com> * bump Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
38
.github/workflows/black.yml
vendored
38
.github/workflows/black.yml
vendored
@ -1,38 +0,0 @@
|
|||||||
name: black
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: main
|
|
||||||
paths:
|
|
||||||
- '**.py'
|
|
||||||
- .github/workflows/black.yml
|
|
||||||
- 'pyproject.toml'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '**.py'
|
|
||||||
- .github/workflows/black.yml
|
|
||||||
- 'pyproject.toml'
|
|
||||||
jobs:
|
|
||||||
black:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
|
|
||||||
# Installation instructions are from: https://python-poetry.org/docs/
|
|
||||||
- name: Install dependencies
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
pip install \
|
|
||||||
poetry
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
poetry install
|
|
||||||
poetry build
|
|
||||||
|
|
||||||
- name: Run black
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
poetry run black --check --diff . generate/generate.py docs/conf.py kittycad/client_test.py kittycad/examples_test.py
|
|
1
.github/workflows/ruff.yml
vendored
1
.github/workflows/ruff.yml
vendored
@ -36,3 +36,4 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
poetry run ruff check --output-format=github .
|
poetry run ruff check --output-format=github .
|
||||||
|
poetry run ruff format --check
|
||||||
|
@ -20,8 +20,8 @@ poetry run python generate/generate.py
|
|||||||
|
|
||||||
# Format and lint.
|
# Format and lint.
|
||||||
poetry run isort .
|
poetry run isort .
|
||||||
poetry run black . generate/generate.py docs/conf.py kittycad/client_test.py kittycad/examples_test.py kittycad/models/*.py kittycad/api/*.py kittycad/api/*/*.py
|
|
||||||
poetry run ruff check --fix .
|
poetry run ruff check --fix .
|
||||||
|
poetry run ruff format
|
||||||
poetry run mypy . --exclude venv || true
|
poetry run mypy . --exclude venv || true
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -19,7 +19,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if group_by is not None:
|
if group_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&group_by=" + str(group_by)
|
url = url + "&group_by=" + str(group_by)
|
||||||
else:
|
else:
|
||||||
|
@ -36,7 +36,9 @@ def _get_kwargs(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def _parse_response(*, response: httpx.Response) -> Optional[
|
def _parse_response(
|
||||||
|
*, response: httpx.Response
|
||||||
|
) -> Optional[
|
||||||
Union[
|
Union[
|
||||||
FileConversion,
|
FileConversion,
|
||||||
FileCenterOfMass,
|
FileCenterOfMass,
|
||||||
@ -132,7 +134,9 @@ def _parse_response(*, response: httpx.Response) -> Optional[
|
|||||||
return Error(**response.json())
|
return Error(**response.json())
|
||||||
|
|
||||||
|
|
||||||
def _build_response(*, response: httpx.Response) -> Response[
|
def _build_response(
|
||||||
|
*, response: httpx.Response
|
||||||
|
) -> Response[
|
||||||
Optional[
|
Optional[
|
||||||
Union[
|
Union[
|
||||||
FileConversion,
|
FileConversion,
|
||||||
@ -207,8 +211,7 @@ def sync(
|
|||||||
"""Get the status and output of an async operation.
|
"""Get the status and output of an async operation.
|
||||||
This endpoint requires authentication by any Zoo user. It returns details of the requested async operation for the user.
|
This endpoint requires authentication by any Zoo user. It returns details of the requested async operation for the user.
|
||||||
If the user is not authenticated to view the specified async operation, then it is not returned.
|
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||||
Only Zoo employees with the proper access can view async operations for other users.
|
Only Zoo employees with the proper access can view async operations for other users.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -266,8 +269,7 @@ async def asyncio(
|
|||||||
"""Get the status and output of an async operation.
|
"""Get the status and output of an async operation.
|
||||||
This endpoint requires authentication by any Zoo user. It returns details of the requested async operation for the user.
|
This endpoint requires authentication by any Zoo user. It returns details of the requested async operation for the user.
|
||||||
If the user is not authenticated to view the specified async operation, then it is not returned.
|
If the user is not authenticated to view the specified async operation, then it is not returned.
|
||||||
Only Zoo employees with the proper access can view async operations for other users.
|
Only Zoo employees with the proper access can view async operations for other users.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
|
@ -23,21 +23,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
@ -115,8 +112,7 @@ def sync(
|
|||||||
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
||||||
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
||||||
If the authenticated user is a Zoo employee, then the API calls are returned for the user specified by the user id.
|
If the authenticated user is a Zoo employee, then the API calls are returned for the user specified by the user id.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
id=id,
|
id=id,
|
||||||
@ -160,8 +156,7 @@ async def asyncio(
|
|||||||
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user if "me" is passed as the user id.
|
||||||
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
Alternatively, you can use the `/user/api-calls` endpoint to get the API calls for your user.
|
||||||
If the authenticated user is a Zoo employee, then the API calls are returned for the user specified by the user id.
|
If the authenticated user is a Zoo employee, then the API calls are returned for the user specified by the user id.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -23,28 +23,24 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
url = url + "?sort_by=" + str(sort_by)
|
url = url + "?sort_by=" + str(sort_by)
|
||||||
|
|
||||||
if status is not None:
|
if status is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&status=" + str(status)
|
url = url + "&status=" + str(status)
|
||||||
else:
|
else:
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
@ -109,8 +106,7 @@ def sync(
|
|||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This includes all API calls that were made by users in the org.
|
"""This includes all API calls that were made by users in the org.
|
||||||
This endpoint requires authentication by an org admin. It returns the API calls for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It returns the API calls for the authenticated user's org.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -149,8 +145,7 @@ async def asyncio(
|
|||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This includes all API calls that were made by users in the org.
|
"""This includes all API calls that were made by users in the org.
|
||||||
This endpoint requires authentication by an org admin. It returns the API calls for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It returns the API calls for the authenticated user's org.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
@ -108,8 +105,7 @@ def sync(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -147,8 +143,7 @@ async def asyncio(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API calls for the authenticated user.
|
||||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -18,7 +18,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if label is not None:
|
if label is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&label=" + str(label)
|
url = url + "&label=" + str(label)
|
||||||
else:
|
else:
|
||||||
|
@ -73,8 +73,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It deletes the requested API token for the user.
|
"""This endpoint requires authentication by any Zoo user. It deletes the requested API token for the user.
|
||||||
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.
|
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
token=token,
|
token=token,
|
||||||
@ -104,8 +103,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It deletes the requested API token for the user.
|
"""This endpoint requires authentication by any Zoo user. It deletes the requested API token for the user.
|
||||||
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.
|
This endpoint does not actually delete the API token from the database. It merely marks the token as invalid. We still want to keep the token in the database for historical purposes.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
@ -108,8 +105,7 @@ def sync(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It returns the API tokens for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API tokens for the authenticated user.
|
||||||
The API tokens are returned in order of creation, with the most recently created API tokens first.
|
The API tokens are returned in order of creation, with the most recently created API tokens first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -147,8 +143,7 @@ async def asyncio(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It returns the API tokens for the authenticated user.
|
"""This endpoint requires authentication by any Zoo user. It returns the API tokens for the authenticated user.
|
||||||
The API tokens are returned in order of creation, with the most recently created API tokens first.
|
The API tokens are returned in order of creation, with the most recently created API tokens first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -67,8 +67,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -94,8 +93,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -74,8 +74,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[AppClientInfo, Error]]:
|
) -> Optional[Union[AppClientInfo, Error]]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -101,8 +100,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[AppClientInfo, Error]]:
|
) -> Optional[Union[AppClientInfo, Error]]:
|
||||||
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
"""This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
|
||||||
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
|
The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -33,7 +33,12 @@ def sync(
|
|||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
|
|
||||||
return ws_connect(kwargs["url"].replace("http", "ws"), additional_headers=kwargs["headers"], close_timeout=120, max_size=None) # type: ignore
|
return ws_connect(
|
||||||
|
kwargs["url"].replace("http", "ws"),
|
||||||
|
additional_headers=kwargs["headers"],
|
||||||
|
close_timeout=120,
|
||||||
|
max_size=None,
|
||||||
|
) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
|
@ -22,7 +22,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if output is not None:
|
if output is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&output=" + str(output)
|
url = url + "&output=" + str(output)
|
||||||
else:
|
else:
|
||||||
@ -93,7 +92,6 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
output: Optional[str] = None,
|
output: Optional[str] = None,
|
||||||
) -> Optional[Union[CodeOutput, Error]]:
|
) -> Optional[Union[CodeOutput, Error]]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
lang=lang,
|
lang=lang,
|
||||||
output=output,
|
output=output,
|
||||||
@ -129,7 +127,6 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
output: Optional[str] = None,
|
output: Optional[str] = None,
|
||||||
) -> Optional[Union[CodeOutput, Error]]:
|
) -> Optional[Union[CodeOutput, Error]]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
lang=lang,
|
lang=lang,
|
||||||
|
@ -22,14 +22,12 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if output_unit is not None:
|
if output_unit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&output_unit=" + str(output_unit)
|
url = url + "&output_unit=" + str(output_unit)
|
||||||
else:
|
else:
|
||||||
url = url + "?output_unit=" + str(output_unit)
|
url = url + "?output_unit=" + str(output_unit)
|
||||||
|
|
||||||
if src_format is not None:
|
if src_format is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&src_format=" + str(src_format)
|
url = url + "&src_format=" + str(src_format)
|
||||||
else:
|
else:
|
||||||
@ -106,8 +104,7 @@ def sync(
|
|||||||
This endpoint returns the cartesian coordinate in world space measure units.
|
This endpoint returns the cartesian coordinate in world space measure units.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
output_unit=output_unit,
|
output_unit=output_unit,
|
||||||
@ -148,8 +145,7 @@ async def asyncio(
|
|||||||
This endpoint returns the cartesian coordinate in world space measure units.
|
This endpoint returns the cartesian coordinate in world space measure units.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -93,8 +93,7 @@ def sync(
|
|||||||
"""If you wish to specify the conversion options, use the `/file/conversion` endpoint instead.
|
"""If you wish to specify the conversion options, use the `/file/conversion` endpoint instead.
|
||||||
Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously.
|
Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously.
|
||||||
If the conversion is performed synchronously, the contents of the converted file (`output`) will be returned as a base64 encoded string.
|
If the conversion is performed synchronously, the contents of the converted file (`output`) will be returned as a base64 encoded string.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
output_format=output_format,
|
output_format=output_format,
|
||||||
@ -134,8 +133,7 @@ async def asyncio(
|
|||||||
"""If you wish to specify the conversion options, use the `/file/conversion` endpoint instead.
|
"""If you wish to specify the conversion options, use the `/file/conversion` endpoint instead.
|
||||||
Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously.
|
Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously.
|
||||||
If the conversion is performed synchronously, the contents of the converted file (`output`) will be returned as a base64 encoded string.
|
If the conversion is performed synchronously, the contents of the converted file (`output`) will be returned as a base64 encoded string.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -25,28 +25,24 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if material_mass is not None:
|
if material_mass is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&material_mass=" + str(material_mass)
|
url = url + "&material_mass=" + str(material_mass)
|
||||||
else:
|
else:
|
||||||
url = url + "?material_mass=" + str(material_mass)
|
url = url + "?material_mass=" + str(material_mass)
|
||||||
|
|
||||||
if material_mass_unit is not None:
|
if material_mass_unit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&material_mass_unit=" + str(material_mass_unit)
|
url = url + "&material_mass_unit=" + str(material_mass_unit)
|
||||||
else:
|
else:
|
||||||
url = url + "?material_mass_unit=" + str(material_mass_unit)
|
url = url + "?material_mass_unit=" + str(material_mass_unit)
|
||||||
|
|
||||||
if output_unit is not None:
|
if output_unit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&output_unit=" + str(output_unit)
|
url = url + "&output_unit=" + str(output_unit)
|
||||||
else:
|
else:
|
||||||
url = url + "?output_unit=" + str(output_unit)
|
url = url + "?output_unit=" + str(output_unit)
|
||||||
|
|
||||||
if src_format is not None:
|
if src_format is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&src_format=" + str(src_format)
|
url = url + "&src_format=" + str(src_format)
|
||||||
else:
|
else:
|
||||||
@ -127,8 +123,7 @@ def sync(
|
|||||||
This endpoint assumes if you are giving a material mass in a specific mass units, we return a density in mass unit per cubic measure unit.
|
This endpoint assumes if you are giving a material mass in a specific mass units, we return a density in mass unit per cubic measure unit.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the density of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the density of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
material_mass=material_mass,
|
material_mass=material_mass,
|
||||||
@ -177,8 +172,7 @@ async def asyncio(
|
|||||||
This endpoint assumes if you are giving a material mass in a specific mass units, we return a density in mass unit per cubic measure unit.
|
This endpoint assumes if you are giving a material mass in a specific mass units, we return a density in mass unit per cubic measure unit.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the density of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the density of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -25,28 +25,24 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if material_density is not None:
|
if material_density is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&material_density=" + str(material_density)
|
url = url + "&material_density=" + str(material_density)
|
||||||
else:
|
else:
|
||||||
url = url + "?material_density=" + str(material_density)
|
url = url + "?material_density=" + str(material_density)
|
||||||
|
|
||||||
if material_density_unit is not None:
|
if material_density_unit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&material_density_unit=" + str(material_density_unit)
|
url = url + "&material_density_unit=" + str(material_density_unit)
|
||||||
else:
|
else:
|
||||||
url = url + "?material_density_unit=" + str(material_density_unit)
|
url = url + "?material_density_unit=" + str(material_density_unit)
|
||||||
|
|
||||||
if output_unit is not None:
|
if output_unit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&output_unit=" + str(output_unit)
|
url = url + "&output_unit=" + str(output_unit)
|
||||||
else:
|
else:
|
||||||
url = url + "?output_unit=" + str(output_unit)
|
url = url + "?output_unit=" + str(output_unit)
|
||||||
|
|
||||||
if src_format is not None:
|
if src_format is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&src_format=" + str(src_format)
|
url = url + "&src_format=" + str(src_format)
|
||||||
else:
|
else:
|
||||||
@ -127,8 +123,7 @@ def sync(
|
|||||||
This endpoint assumes if you are giving a material density in a specific mass unit per cubic measure unit, we return a mass in mass units. The same mass units as passed in the material density.
|
This endpoint assumes if you are giving a material density in a specific mass unit per cubic measure unit, we return a mass in mass units. The same mass units as passed in the material density.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
material_density=material_density,
|
material_density=material_density,
|
||||||
@ -177,8 +172,7 @@ async def asyncio(
|
|||||||
This endpoint assumes if you are giving a material density in a specific mass unit per cubic measure unit, we return a mass in mass units. The same mass units as passed in the material density.
|
This endpoint assumes if you are giving a material density in a specific mass unit per cubic measure unit, we return a mass in mass units. The same mass units as passed in the material density.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -22,14 +22,12 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if output_unit is not None:
|
if output_unit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&output_unit=" + str(output_unit)
|
url = url + "&output_unit=" + str(output_unit)
|
||||||
else:
|
else:
|
||||||
url = url + "?output_unit=" + str(output_unit)
|
url = url + "?output_unit=" + str(output_unit)
|
||||||
|
|
||||||
if src_format is not None:
|
if src_format is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&src_format=" + str(src_format)
|
url = url + "&src_format=" + str(src_format)
|
||||||
else:
|
else:
|
||||||
@ -106,8 +104,7 @@ def sync(
|
|||||||
This endpoint returns the square measure units.
|
This endpoint returns the square measure units.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the surface area of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the surface area of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
output_unit=output_unit,
|
output_unit=output_unit,
|
||||||
@ -148,8 +145,7 @@ async def asyncio(
|
|||||||
This endpoint returns the square measure units.
|
This endpoint returns the square measure units.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the surface area of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the surface area of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -22,14 +22,12 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if output_unit is not None:
|
if output_unit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&output_unit=" + str(output_unit)
|
url = url + "&output_unit=" + str(output_unit)
|
||||||
else:
|
else:
|
||||||
url = url + "?output_unit=" + str(output_unit)
|
url = url + "?output_unit=" + str(output_unit)
|
||||||
|
|
||||||
if src_format is not None:
|
if src_format is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&src_format=" + str(src_format)
|
url = url + "&src_format=" + str(src_format)
|
||||||
else:
|
else:
|
||||||
@ -104,8 +102,7 @@ def sync(
|
|||||||
This endpoint returns the cubic measure units.
|
This endpoint returns the cubic measure units.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the volume of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the volume of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
output_unit=output_unit,
|
output_unit=output_unit,
|
||||||
@ -146,8 +143,7 @@ async def asyncio(
|
|||||||
This endpoint returns the cubic measure units.
|
This endpoint returns the cubic measure units.
|
||||||
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
|
||||||
Get the volume of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
Get the volume of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
|
||||||
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -79,7 +79,6 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[VerificationTokenResponse, Error]]:
|
) -> Optional[Union[VerificationTokenResponse, Error]]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
client=client,
|
client=client,
|
||||||
@ -107,7 +106,6 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[VerificationTokenResponse, Error]]:
|
) -> Optional[Union[VerificationTokenResponse, Error]]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
|
@ -19,21 +19,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if callback_url is not None:
|
if callback_url is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&callback_url=" + str(callback_url)
|
url = url + "&callback_url=" + str(callback_url)
|
||||||
else:
|
else:
|
||||||
url = url + "?callback_url=" + str(callback_url)
|
url = url + "?callback_url=" + str(callback_url)
|
||||||
|
|
||||||
if email is not None:
|
if email is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&email=" + str(email)
|
url = url + "&email=" + str(email)
|
||||||
else:
|
else:
|
||||||
url = url + "?email=" + str(email)
|
url = url + "?email=" + str(email)
|
||||||
|
|
||||||
if token is not None:
|
if token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&token=" + str(token)
|
url = url + "&token=" + str(token)
|
||||||
else:
|
else:
|
||||||
@ -99,7 +96,6 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
callback_url: Optional[str] = None,
|
callback_url: Optional[str] = None,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
callback_url=callback_url,
|
callback_url=callback_url,
|
||||||
email=email,
|
email=email,
|
||||||
@ -135,7 +131,6 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
callback_url: Optional[str] = None,
|
callback_url: Optional[str] = None,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
callback_url=callback_url,
|
callback_url=callback_url,
|
||||||
|
@ -20,7 +20,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if callback_url is not None:
|
if callback_url is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&callback_url=" + str(callback_url)
|
url = url + "&callback_url=" + str(callback_url)
|
||||||
else:
|
else:
|
||||||
|
@ -77,7 +77,6 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
provider_id=provider_id,
|
provider_id=provider_id,
|
||||||
body=body,
|
body=body,
|
||||||
@ -109,7 +108,6 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
provider_id=provider_id,
|
provider_id=provider_id,
|
||||||
|
@ -71,7 +71,6 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[IpAddrInfo, Error]]:
|
) -> Optional[Union[IpAddrInfo, Error]]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
).parsed
|
).parsed
|
||||||
@ -95,7 +94,6 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[IpAddrInfo, Error]]:
|
) -> Optional[Union[IpAddrInfo, Error]]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
|
@ -70,7 +70,6 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[dict, Error]]:
|
) -> Optional[Union[dict, Error]]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
).parsed
|
).parsed
|
||||||
@ -94,7 +93,6 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[dict, Error]]:
|
) -> Optional[Union[dict, Error]]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
|
@ -71,7 +71,6 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Pong, Error]]:
|
) -> Optional[Union[Pong, Error]]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
).parsed
|
).parsed
|
||||||
@ -95,7 +94,6 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Pong, Error]]:
|
) -> Optional[Union[Pong, Error]]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
|
@ -79,7 +79,6 @@ def sync(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[KclCodeCompletionResponse, Error]]:
|
) -> Optional[Union[KclCodeCompletionResponse, Error]]:
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
client=client,
|
client=client,
|
||||||
@ -107,7 +106,6 @@ async def asyncio(
|
|||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[KclCodeCompletionResponse, Error]]:
|
) -> Optional[Union[KclCodeCompletionResponse, Error]]:
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if kcl is not None:
|
if kcl is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&kcl=" + str(kcl)
|
url = url + "&kcl=" + str(kcl)
|
||||||
else:
|
else:
|
||||||
@ -96,8 +95,7 @@ def sync(
|
|||||||
) -> Optional[Union[TextToCad, Error]]:
|
) -> Optional[Union[TextToCad, Error]]:
|
||||||
"""Because our source of truth for the resulting model is a STEP file, you will always have STEP file contents when you list your generated models. Any other formats you request here will also be returned when you list your generated models.
|
"""Because our source of truth for the resulting model is a STEP file, you will always have STEP file contents when you list your generated models. Any other formats you request here will also be returned when you list your generated models.
|
||||||
This operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
This operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
||||||
One thing to note, if you hit the cache, this endpoint will return right away. So you only have to wait if the status is not `Completed` or `Failed`.
|
One thing to note, if you hit the cache, this endpoint will return right away. So you only have to wait if the status is not `Completed` or `Failed`.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
output_format=output_format,
|
output_format=output_format,
|
||||||
@ -136,8 +134,7 @@ async def asyncio(
|
|||||||
) -> Optional[Union[TextToCad, Error]]:
|
) -> Optional[Union[TextToCad, Error]]:
|
||||||
"""Because our source of truth for the resulting model is a STEP file, you will always have STEP file contents when you list your generated models. Any other formats you request here will also be returned when you list your generated models.
|
"""Because our source of truth for the resulting model is a STEP file, you will always have STEP file contents when you list your generated models. Any other formats you request here will also be returned when you list your generated models.
|
||||||
This operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
This operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
|
||||||
One thing to note, if you hit the cache, this endpoint will return right away. So you only have to wait if the status is not `Completed` or `Failed`.
|
One thing to note, if you hit the cache, this endpoint will return right away. So you only have to wait if the status is not `Completed` or `Failed`.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -20,7 +20,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if feedback is not None:
|
if feedback is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&feedback=" + str(feedback)
|
url = url + "&feedback=" + str(feedback)
|
||||||
else:
|
else:
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
@ -109,8 +106,7 @@ def sync(
|
|||||||
) -> Optional[Union[MlPromptResultsPage, Error]]:
|
) -> Optional[Union[MlPromptResultsPage, Error]]:
|
||||||
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by a Zoo employee.
|
This endpoint requires authentication by a Zoo employee.
|
||||||
The ML prompts are returned in order of creation, with the most recently created ML prompts first.
|
The ML prompts are returned in order of creation, with the most recently created ML prompts first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -149,8 +145,7 @@ async def asyncio(
|
|||||||
) -> Optional[Union[MlPromptResultsPage, Error]]:
|
) -> Optional[Union[MlPromptResultsPage, Error]]:
|
||||||
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
"""For text-to-cad prompts, this will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by a Zoo employee.
|
This endpoint requires authentication by a Zoo employee.
|
||||||
The ML prompts are returned in order of creation, with the most recently created ML prompts first.
|
The ML prompts are returned in order of creation, with the most recently created ML prompts first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -22,28 +22,24 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
url = url + "?sort_by=" + str(sort_by)
|
url = url + "?sort_by=" + str(sort_by)
|
||||||
|
|
||||||
if no_models is not None:
|
if no_models is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&no_models=" + str(no_models)
|
url = url + "&no_models=" + str(no_models)
|
||||||
else:
|
else:
|
||||||
@ -120,8 +116,7 @@ def sync(
|
|||||||
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
||||||
"""This will always return the STEP file contents as well as the format the user originally requested.
|
"""This will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
|
||||||
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.
|
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -164,8 +159,7 @@ async def asyncio(
|
|||||||
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
) -> Optional[Union[TextToCadResultsPage, Error]]:
|
||||||
"""This will always return the STEP file contents as well as the format the user originally requested.
|
"""This will always return the STEP file contents as well as the format the user originally requested.
|
||||||
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It returns the text-to-CAD models for the authenticated user.
|
||||||
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.
|
The text-to-CAD models are returned in order of creation, with the most recently created text-to-CAD models first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -27,63 +27,54 @@ def _get_kwargs(
|
|||||||
url = "{}/ws/modeling/commands".format(client.base_url) # noqa: E501
|
url = "{}/ws/modeling/commands".format(client.base_url) # noqa: E501
|
||||||
|
|
||||||
if fps is not None:
|
if fps is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&fps=" + str(fps)
|
url = url + "&fps=" + str(fps)
|
||||||
else:
|
else:
|
||||||
url = url + "?fps=" + str(fps)
|
url = url + "?fps=" + str(fps)
|
||||||
|
|
||||||
if pool is not None:
|
if pool is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&pool=" + str(pool)
|
url = url + "&pool=" + str(pool)
|
||||||
else:
|
else:
|
||||||
url = url + "?pool=" + str(pool)
|
url = url + "?pool=" + str(pool)
|
||||||
|
|
||||||
if post_effect is not None:
|
if post_effect is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&post_effect=" + str(post_effect)
|
url = url + "&post_effect=" + str(post_effect)
|
||||||
else:
|
else:
|
||||||
url = url + "?post_effect=" + str(post_effect)
|
url = url + "?post_effect=" + str(post_effect)
|
||||||
|
|
||||||
if replay is not None:
|
if replay is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&replay=" + str(replay)
|
url = url + "&replay=" + str(replay)
|
||||||
else:
|
else:
|
||||||
url = url + "?replay=" + str(replay)
|
url = url + "?replay=" + str(replay)
|
||||||
|
|
||||||
if show_grid is not None:
|
if show_grid is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&show_grid=" + str(show_grid).lower()
|
url = url + "&show_grid=" + str(show_grid).lower()
|
||||||
else:
|
else:
|
||||||
url = url + "?show_grid=" + str(show_grid).lower()
|
url = url + "?show_grid=" + str(show_grid).lower()
|
||||||
|
|
||||||
if unlocked_framerate is not None:
|
if unlocked_framerate is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&unlocked_framerate=" + str(unlocked_framerate).lower()
|
url = url + "&unlocked_framerate=" + str(unlocked_framerate).lower()
|
||||||
else:
|
else:
|
||||||
url = url + "?unlocked_framerate=" + str(unlocked_framerate).lower()
|
url = url + "?unlocked_framerate=" + str(unlocked_framerate).lower()
|
||||||
|
|
||||||
if video_res_height is not None:
|
if video_res_height is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&video_res_height=" + str(video_res_height)
|
url = url + "&video_res_height=" + str(video_res_height)
|
||||||
else:
|
else:
|
||||||
url = url + "?video_res_height=" + str(video_res_height)
|
url = url + "?video_res_height=" + str(video_res_height)
|
||||||
|
|
||||||
if video_res_width is not None:
|
if video_res_width is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&video_res_width=" + str(video_res_width)
|
url = url + "&video_res_width=" + str(video_res_width)
|
||||||
else:
|
else:
|
||||||
url = url + "?video_res_width=" + str(video_res_width)
|
url = url + "?video_res_width=" + str(video_res_width)
|
||||||
|
|
||||||
if webrtc is not None:
|
if webrtc is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&webrtc=" + str(webrtc).lower()
|
url = url + "&webrtc=" + str(webrtc).lower()
|
||||||
else:
|
else:
|
||||||
@ -128,7 +119,12 @@ def sync(
|
|||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
|
|
||||||
return ws_connect(kwargs["url"].replace("http", "ws"), additional_headers=kwargs["headers"], close_timeout=120, max_size=None) # type: ignore
|
return ws_connect(
|
||||||
|
kwargs["url"].replace("http", "ws"),
|
||||||
|
additional_headers=kwargs["headers"],
|
||||||
|
close_timeout=120,
|
||||||
|
max_size=None,
|
||||||
|
) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
|
@ -81,8 +81,7 @@ def sync(
|
|||||||
In both cases the user gets an email that they have been added to the org.
|
In both cases the user gets an email that they have been added to the org.
|
||||||
If the user is already in your org, this will return a 400 and a message.
|
If the user is already in your org, this will return a 400 and a message.
|
||||||
If the user is already in a different org, this will return a 400 and a message.
|
If the user is already in a different org, this will return a 400 and a message.
|
||||||
This endpoint requires authentication by an org admin. It adds the specified member to the authenticated user's org.
|
This endpoint requires authentication by an org admin. It adds the specified member to the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
@ -115,8 +114,7 @@ async def asyncio(
|
|||||||
In both cases the user gets an email that they have been added to the org.
|
In both cases the user gets an email that they have been added to the org.
|
||||||
If the user is already in your org, this will return a 400 and a message.
|
If the user is already in your org, this will return a 400 and a message.
|
||||||
If the user is already in a different org, this will return a 400 and a message.
|
If the user is already in a different org, this will return a 400 and a message.
|
||||||
This endpoint requires authentication by an org admin. It adds the specified member to the authenticated user's org.
|
This endpoint requires authentication by an org admin. It adds the specified member to the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -68,8 +68,7 @@ def sync(
|
|||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""In order to delete an org, you must first delete all of its members, except yourself.
|
"""In order to delete an org, you must first delete all of its members, except yourself.
|
||||||
You must also have no outstanding invoices or unpaid balances.
|
You must also have no outstanding invoices or unpaid balances.
|
||||||
This endpoint requires authentication by an org admin. It deletes the authenticated user's org.
|
This endpoint requires authentication by an org admin. It deletes the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -96,8 +95,7 @@ async def asyncio(
|
|||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""In order to delete an org, you must first delete all of its members, except yourself.
|
"""In order to delete an org, you must first delete all of its members, except yourself.
|
||||||
You must also have no outstanding invoices or unpaid balances.
|
You must also have no outstanding invoices or unpaid balances.
|
||||||
This endpoint requires authentication by an org admin. It deletes the authenticated user's org.
|
This endpoint requires authentication by an org admin. It deletes the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -23,28 +23,24 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
url = url + "?sort_by=" + str(sort_by)
|
url = url + "?sort_by=" + str(sort_by)
|
||||||
|
|
||||||
if role is not None:
|
if role is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&role=" + str(role)
|
url = url + "&role=" + str(role)
|
||||||
else:
|
else:
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
|
@ -78,8 +78,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by the org admin. It creates the payment information for the authenticated user's org.
|
This endpoint requires authentication by the org admin. It creates the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
@ -109,8 +108,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by the org admin. It creates the payment information for the authenticated user's org.
|
This endpoint requires authentication by the org admin. It creates the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -78,8 +78,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It creates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It creates the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
@ -109,8 +108,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It creates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It creates the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -67,8 +67,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by an org admin. It deletes the payment information for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It deletes the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -94,8 +93,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by an org admin. It deletes the payment information for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It deletes the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -67,8 +67,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It deletes the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It deletes the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -94,8 +93,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It deletes the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It deletes the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -72,8 +72,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by an org admin. It gets the payment information for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It gets the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -99,8 +98,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by an org admin. It gets the payment information for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It gets the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -72,8 +72,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It gets the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It gets the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -99,8 +98,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It gets the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It gets the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -78,8 +78,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by an org admin. It updates the payment information for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It updates the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
@ -109,8 +108,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by an org admin. It updates the payment information for the authenticated user's org.
|
This endpoint requires authentication by an org admin. It updates the payment information for the authenticated user's org.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -78,8 +78,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It updates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It updates the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
body=body,
|
body=body,
|
||||||
@ -109,8 +108,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[Customer, Error]]:
|
) -> Optional[Union[Customer, Error]]:
|
||||||
"""This includes billing address, phone, and name.
|
"""This includes billing address, phone, and name.
|
||||||
This endpoint requires authentication by any Zoo user. It updates the payment information for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It updates the payment information for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -18,7 +18,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if label is not None:
|
if label is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&label=" + str(label)
|
url = url + "&label=" + str(label)
|
||||||
else:
|
else:
|
||||||
|
@ -73,8 +73,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by an org admin. It deletes the requested service account for the organization.
|
"""This endpoint requires authentication by an org admin. It deletes the requested service account for the organization.
|
||||||
This endpoint does not actually delete the service account from the database. It merely marks the token as invalid. We still want to keep the service account in the database for historical purposes.
|
This endpoint does not actually delete the service account from the database. It merely marks the token as invalid. We still want to keep the service account in the database for historical purposes.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
token=token,
|
token=token,
|
||||||
@ -104,8 +103,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by an org admin. It deletes the requested service account for the organization.
|
"""This endpoint requires authentication by an org admin. It deletes the requested service account for the organization.
|
||||||
This endpoint does not actually delete the service account from the database. It merely marks the token as invalid. We still want to keep the service account in the database for historical purposes.
|
This endpoint does not actually delete the service account from the database. It merely marks the token as invalid. We still want to keep the service account in the database for historical purposes.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
@ -108,8 +105,7 @@ def sync(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ServiceAccountResultsPage, Error]]:
|
) -> Optional[Union[ServiceAccountResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by an org admin. It returns the service accounts for the organization.
|
"""This endpoint requires authentication by an org admin. It returns the service accounts for the organization.
|
||||||
The service accounts are returned in order of creation, with the most recently created service accounts first.
|
The service accounts are returned in order of creation, with the most recently created service accounts first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
limit=limit,
|
limit=limit,
|
||||||
@ -147,8 +143,7 @@ async def asyncio(
|
|||||||
page_token: Optional[str] = None,
|
page_token: Optional[str] = None,
|
||||||
) -> Optional[Union[ServiceAccountResultsPage, Error]]:
|
) -> Optional[Union[ServiceAccountResultsPage, Error]]:
|
||||||
"""This endpoint requires authentication by an org admin. It returns the service accounts for the organization.
|
"""This endpoint requires authentication by an org admin. It returns the service accounts for the organization.
|
||||||
The service accounts are returned in order of creation, with the most recently created service accounts first.
|
The service accounts are returned in order of creation, with the most recently created service accounts first.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,6 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&value=" + str(value)
|
url = url + "&value=" + str(value)
|
||||||
else:
|
else:
|
||||||
|
@ -67,8 +67,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It deletes the authenticated user from Zoo's database.
|
"""This endpoint requires authentication by any Zoo user. It deletes the authenticated user from Zoo's database.
|
||||||
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.
|
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -94,8 +93,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Error]:
|
) -> Optional[Error]:
|
||||||
"""This endpoint requires authentication by any Zoo user. It deletes the authenticated user from Zoo's database.
|
"""This endpoint requires authentication by any Zoo user. It deletes the authenticated user from Zoo's database.
|
||||||
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.
|
This call will only succeed if all invoices associated with the user have been paid in full and there is no outstanding balance.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -74,8 +74,7 @@ def sync(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[AccountProvider], Error]]:
|
) -> Optional[Union[List[AccountProvider], Error]]:
|
||||||
"""If this returns an empty array, then the user has not connected any OAuth2 providers and uses raw email authentication.
|
"""If this returns an empty array, then the user has not connected any OAuth2 providers and uses raw email authentication.
|
||||||
This endpoint requires authentication by any Zoo user. It gets the providers for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It gets the providers for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return sync_detailed(
|
return sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
@ -101,8 +100,7 @@ async def asyncio(
|
|||||||
client: Client,
|
client: Client,
|
||||||
) -> Optional[Union[List[AccountProvider], Error]]:
|
) -> Optional[Union[List[AccountProvider], Error]]:
|
||||||
"""If this returns an empty array, then the user has not connected any OAuth2 providers and uses raw email authentication.
|
"""If this returns an empty array, then the user has not connected any OAuth2 providers and uses raw email authentication.
|
||||||
This endpoint requires authentication by any Zoo user. It gets the providers for the authenticated user.
|
This endpoint requires authentication by any Zoo user. It gets the providers for the authenticated user.""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
await asyncio_detailed(
|
await asyncio_detailed(
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
|
@ -21,21 +21,18 @@ def _get_kwargs(
|
|||||||
) # noqa: E501
|
) # noqa: E501
|
||||||
|
|
||||||
if limit is not None:
|
if limit is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&limit=" + str(limit)
|
url = url + "&limit=" + str(limit)
|
||||||
else:
|
else:
|
||||||
url = url + "?limit=" + str(limit)
|
url = url + "?limit=" + str(limit)
|
||||||
|
|
||||||
if page_token is not None:
|
if page_token is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&page_token=" + str(page_token)
|
url = url + "&page_token=" + str(page_token)
|
||||||
else:
|
else:
|
||||||
url = url + "?page_token=" + str(page_token)
|
url = url + "?page_token=" + str(page_token)
|
||||||
|
|
||||||
if sort_by is not None:
|
if sort_by is not None:
|
||||||
|
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&sort_by=" + str(sort_by)
|
url = url + "&sort_by=" + str(sort_by)
|
||||||
else:
|
else:
|
||||||
|
@ -160,7 +160,7 @@ def test_file_convert_stl():
|
|||||||
|
|
||||||
# Make sure the bytes are not empty.
|
# Make sure the bytes are not empty.
|
||||||
for key, value in fc.outputs.items():
|
for key, value in fc.outputs.items():
|
||||||
assert len(value.get_decoded()) > 0
|
assert len(value) > 0
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@ -174,14 +174,14 @@ async def test_file_convert_stl_async():
|
|||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
# Get the fc.
|
# Get the fc.
|
||||||
result: Optional[Union[FileConversion, Error]] = (
|
result: Optional[
|
||||||
await create_file_conversion.asyncio(
|
Union[FileConversion, Error]
|
||||||
|
] = await create_file_conversion.asyncio(
|
||||||
client=client,
|
client=client,
|
||||||
body=content,
|
body=content,
|
||||||
src_format=FileImportFormat.STL,
|
src_format=FileImportFormat.STL,
|
||||||
output_format=FileExportFormat.OBJ,
|
output_format=FileExportFormat.OBJ,
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
assert isinstance(result, FileConversion)
|
assert isinstance(result, FileConversion)
|
||||||
|
|
||||||
@ -199,7 +199,7 @@ async def test_file_convert_stl_async():
|
|||||||
|
|
||||||
# Make sure the bytes are not empty.
|
# Make sure the bytes are not empty.
|
||||||
for key, value in fc.outputs.items():
|
for key, value in fc.outputs.items():
|
||||||
assert len(value.get_decoded()) > 0
|
assert len(value) > 0
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@ -213,14 +213,14 @@ async def test_file_convert_obj_async():
|
|||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
# Get the fc.
|
# Get the fc.
|
||||||
result: Optional[Union[FileConversion, Error]] = (
|
result: Optional[
|
||||||
await create_file_conversion.asyncio(
|
Union[FileConversion, Error]
|
||||||
|
] = await create_file_conversion.asyncio(
|
||||||
client=client,
|
client=client,
|
||||||
body=content,
|
body=content,
|
||||||
src_format=FileImportFormat.OBJ,
|
src_format=FileImportFormat.OBJ,
|
||||||
output_format=FileExportFormat.STL,
|
output_format=FileExportFormat.STL,
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
assert isinstance(result, FileConversion)
|
assert isinstance(result, FileConversion)
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ async def test_file_convert_obj_async():
|
|||||||
|
|
||||||
# Make sure the bytes are not empty.
|
# Make sure the bytes are not empty.
|
||||||
for key, value in fc.outputs.items():
|
for key, value in fc.outputs.items():
|
||||||
assert len(value.get_decoded()) > 0
|
assert len(value) > 0
|
||||||
|
|
||||||
|
|
||||||
def test_file_mass():
|
def test_file_mass():
|
||||||
@ -508,7 +508,7 @@ def test_ws_import():
|
|||||||
# Break since now we know it was a success.
|
# Break since now we know it was a success.
|
||||||
png_contents = message_dict["resp"]["data"]["modeling_response"][
|
png_contents = message_dict["resp"]["data"]["modeling_response"][
|
||||||
"data"
|
"data"
|
||||||
]["contents"].get_decoded()
|
]["contents"]
|
||||||
break
|
break
|
||||||
|
|
||||||
# Save the contents to a file.
|
# Save the contents to a file.
|
||||||
@ -534,7 +534,27 @@ def test_serialize_deserialize():
|
|||||||
assert model_dump["request_id"] == "16a06065-6ca3-4a96-a042-d0bec6b161a6" # type: ignore
|
assert model_dump["request_id"] == "16a06065-6ca3-4a96-a042-d0bec6b161a6" # type: ignore
|
||||||
assert model_dump["resp"]["type"] == "modeling" # type: ignore
|
assert model_dump["resp"]["type"] == "modeling" # type: ignore
|
||||||
assert model_dump["resp"]["data"]["modeling_response"]["type"] == "import_files" # type: ignore
|
assert model_dump["resp"]["data"]["modeling_response"]["type"] == "import_files" # type: ignore
|
||||||
assert model_dump["resp"]["data"]["modeling_response"]["data"]["object_id"] == "f61ac02e-77bd-468f-858f-fd4141a26acd" # type: ignore
|
assert (
|
||||||
|
model_dump["resp"]["data"]["modeling_response"]["data"]["object_id"]
|
||||||
|
== "f61ac02e-77bd-468f-858f-fd4141a26acd"
|
||||||
|
) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
|
def test_deserialize_null_request_id():
|
||||||
|
json_str = """{"success":true,"request_id":null,"resp":{"type":"modeling_session_data","data":{"session":{"api_call_id":"91f7fd17-8846-4593-97ff-6400a81b8cdd"}}}}"""
|
||||||
|
d = json.loads(json_str)
|
||||||
|
print(d)
|
||||||
|
message = WebSocketResponse(**d)
|
||||||
|
model_dump = message.model_dump()
|
||||||
|
print(model_dump)
|
||||||
|
assert model_dump["success"] is True # type: ignore
|
||||||
|
assert model_dump["success"] is True # type: ignore
|
||||||
|
assert model_dump["request_id"] is None # type: ignore
|
||||||
|
assert model_dump["resp"]["type"] == "modeling_session_data" # type: ignore
|
||||||
|
assert (
|
||||||
|
model_dump["resp"]["data"]["session"]["api_call_id"]
|
||||||
|
== "91f7fd17-8846-4593-97ff-6400a81b8cdd"
|
||||||
|
) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
def test_text_to_cad():
|
def test_text_to_cad():
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.user_org_role import UserOrgRole
|
from ..models.user_org_role import UserOrgRole
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.unit_angle import UnitAngle
|
from ..models.unit_angle import UnitAngle
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.annotation_line_end import AnnotationLineEnd
|
from ..models.annotation_line_end import AnnotationLineEnd
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.annotation_text_alignment_x import AnnotationTextAlignmentX
|
from ..models.annotation_text_alignment_x import AnnotationTextAlignmentX
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ApiCallQueryGroup(BaseModel):
|
class ApiCallQueryGroup(BaseModel):
|
||||||
"""A response for a query on the API call table that is grouped by something."""
|
"""A response for a query on the API call table that is grouped by something."""
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.error_code import ErrorCode
|
from ..models.error_code import ErrorCode
|
||||||
|
@ -3,7 +3,6 @@ from typing import Optional
|
|||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AppClientInfo(BaseModel):
|
class AppClientInfo(BaseModel):
|
||||||
"""Information about a third party app client."""
|
"""Information about a third party app client."""
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ from typing import Optional
|
|||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AuthCallback(BaseModel):
|
class AuthCallback(BaseModel):
|
||||||
"""The authentication callback from the OAuth 2.0 client. This is typically posted to the redirect URL as query params after authenticating."""
|
"""The authentication callback from the OAuth 2.0 client. This is typically posted to the redirect URL as query params after authenticating."""
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@ class Axis(str, Enum):
|
|||||||
|
|
||||||
See [cglearn.eu] for background reading.
|
See [cglearn.eu] for background reading.
|
||||||
|
|
||||||
[cglearn.eu]: https://cglearn.eu/pub/computer-graphics/introduction-to-geometry#material-coordinate-systems-1
|
[cglearn.eu]: https://cglearn.eu/pub/computer-graphics/introduction-to-geometry#material-coordinate-systems-1""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
"""# 'Y' axis. """ # noqa: E501
|
"""# 'Y' axis. """ # noqa: E501
|
||||||
Y = "y"
|
Y = "y"
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.axis import Axis
|
from ..models.axis import Axis
|
||||||
|
@ -1,45 +1,32 @@
|
|||||||
import base64
|
import base64
|
||||||
import binascii
|
from typing import Any, Type
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
from pydantic import GetCoreSchemaHandler
|
from pydantic import GetCoreSchemaHandler
|
||||||
from pydantic_core import CoreSchema, core_schema
|
from pydantic_core import core_schema
|
||||||
|
|
||||||
|
|
||||||
class Base64Data:
|
class Base64Data(bytes):
|
||||||
def __init__(self, data: bytes):
|
|
||||||
"""
|
|
||||||
Initializes the object.
|
|
||||||
|
|
||||||
If the provided data is already in base64 encoded format, it will store it.
|
|
||||||
If the data is a regular byte string, it will encode and then store it.
|
|
||||||
"""
|
|
||||||
if self.is_base64(data):
|
|
||||||
self._data = str(data, "utf-8")
|
|
||||||
else:
|
|
||||||
encoded = base64.b64encode(data)
|
|
||||||
self._data = str(encoded, "utf-8")
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def is_base64(data: bytes) -> bool:
|
|
||||||
"""Checks if given data is base64 encoded."""
|
|
||||||
try:
|
|
||||||
str_data = str(data, "utf-8")
|
|
||||||
_ = base64.urlsafe_b64decode(str_data.strip("=") + "===")
|
|
||||||
return True
|
|
||||||
except binascii.Error:
|
|
||||||
return False
|
|
||||||
|
|
||||||
def get_encoded(self) -> str:
|
|
||||||
"""Returns the stored base64 encoded data."""
|
|
||||||
return self._data
|
|
||||||
|
|
||||||
def get_decoded(self) -> bytes:
|
|
||||||
"""Returns the decoded byte string."""
|
|
||||||
return base64.urlsafe_b64decode(self._data.strip("=") + "===")
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __get_pydantic_core_schema__(
|
def __get_pydantic_core_schema__(
|
||||||
cls, source_type: Any, handler: GetCoreSchemaHandler
|
cls, source: Type[Any], handler: GetCoreSchemaHandler
|
||||||
) -> CoreSchema:
|
) -> core_schema.CoreSchema:
|
||||||
return core_schema.no_info_after_validator_function(cls, handler(bytes))
|
return core_schema.no_info_after_validator_function(
|
||||||
|
cls.validate,
|
||||||
|
core_schema.union_schema(
|
||||||
|
[
|
||||||
|
core_schema.str_schema(),
|
||||||
|
core_schema.bytes_schema(),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
serialization=core_schema.plain_serializer_function_ser_schema(
|
||||||
|
cls.serialize
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def validate(cls, v):
|
||||||
|
return base64.urlsafe_b64decode(v.strip("=") + "===")
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def serialize(cls, v: "Base64Data") -> bytes:
|
||||||
|
return v
|
||||||
|
@ -3,7 +3,6 @@ from typing import Union
|
|||||||
from pydantic import BaseModel, ConfigDict, RootModel
|
from pydantic import BaseModel, ConfigDict, RootModel
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class response(BaseModel):
|
class response(BaseModel):
|
||||||
"""Response to the modeling command."""
|
"""Response to the modeling command."""
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CacheMetadata(BaseModel):
|
class CacheMetadata(BaseModel):
|
||||||
"""Metadata about our cache.
|
"""Metadata about our cache.
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.camera_settings import CameraSettings
|
from ..models.camera_settings import CameraSettings
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.camera_settings import CameraSettings
|
from ..models.camera_settings import CameraSettings
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.point3d import Point3d
|
from ..models.point3d import Point3d
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ClientMetrics(BaseModel):
|
class ClientMetrics(BaseModel):
|
||||||
"""ClientMetrics contains information regarding the state of the peer."""
|
"""ClientMetrics contains information regarding the state of the peer."""
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ClosePath(BaseModel):
|
class ClosePath(BaseModel):
|
||||||
"""The response from the `ClosePath` command."""
|
"""The response from the `ClosePath` command."""
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ from typing import List, Optional
|
|||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Cluster(BaseModel):
|
class Cluster(BaseModel):
|
||||||
"""Cluster information."""
|
"""Cluster information."""
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@ class CodeLanguage(str, Enum):
|
|||||||
|
|
||||||
<details><summary>JSON schema</summary>
|
<details><summary>JSON schema</summary>
|
||||||
|
|
||||||
```json { "description": "The language code is written in.", "oneOf": [ { "description": "The `go` programming language.", "type": "string", "enum": [ "go" ] }, { "description": "The `python` programming language.", "type": "string", "enum": [ "python" ] }, { "description": "The `node` programming language.", "type": "string", "enum": [ "node" ] } ] } ``` </details>
|
```json { "description": "The language code is written in.", "oneOf": [ { "description": "The `go` programming language.", "type": "string", "enum": [ "go" ] }, { "description": "The `python` programming language.", "type": "string", "enum": [ "python" ] }, { "description": "The `node` programming language.", "type": "string", "enum": [ "node" ] } ] } ``` </details>""" # noqa: E501
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
"""# The `go` programming language. """ # noqa: E501
|
"""# The `go` programming language. """ # noqa: E501
|
||||||
GO = "go"
|
GO = "go"
|
||||||
|
@ -10,8 +10,7 @@ class CodeOutput(BaseModel):
|
|||||||
|
|
||||||
<details><summary>JSON schema</summary>
|
<details><summary>JSON schema</summary>
|
||||||
|
|
||||||
```json { \"description\": \"Output of the code being executed.\", \"type\": \"object\", \"properties\": { \"output_files\": { \"description\": \"The contents of the files requested if they were passed.\", \"type\": \"array\", \"items\": { \"$ref\": \"#/components/schemas/OutputFile\" } }, \"stderr\": { \"description\": \"The stderr of the code.\", \"default\": \"\", \"type\": \"string\" }, \"stdout\": { \"description\": \"The stdout of the code.\", \"default\": \"\", \"type\": \"string\" } } } ``` </details>
|
```json { \"description\": \"Output of the code being executed.\", \"type\": \"object\", \"properties\": { \"output_files\": { \"description\": \"The contents of the files requested if they were passed.\", \"type\": \"array\", \"items\": { \"$ref\": \"#/components/schemas/OutputFile\" } }, \"stderr\": { \"description\": \"The stderr of the code.\", \"default\": \"\", \"type\": \"string\" }, \"stdout\": { \"description\": \"The stdout of the code.\", \"default\": \"\", \"type\": \"string\" } } } ``` </details>"""
|
||||||
"""
|
|
||||||
|
|
||||||
output_files: Optional[List[OutputFile]] = None
|
output_files: Optional[List[OutputFile]] = None
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Color(BaseModel):
|
class Color(BaseModel):
|
||||||
"""An RGBA color"""
|
"""An RGBA color"""
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ from typing import Dict, Optional
|
|||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Coupon(BaseModel):
|
class Coupon(BaseModel):
|
||||||
"""The resource representing a Coupon."""
|
"""The resource representing a Coupon."""
|
||||||
|
|
||||||
|
@ -7,8 +7,7 @@ from pydantic_core import CoreSchema, core_schema
|
|||||||
class Currency(str):
|
class Currency(str):
|
||||||
"""Currency is the list of supported currencies. Always lowercase.
|
"""Currency is the list of supported currencies. Always lowercase.
|
||||||
|
|
||||||
This comes from the Stripe API docs: For more details see <https://support.stripe.com/questions/which-currencies-does-stripe-support>.
|
This comes from the Stripe API docs: For more details see <https://support.stripe.com/questions/which-currencies-does-stripe-support>."""
|
||||||
"""
|
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return self
|
return self
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.point3d import Point3d
|
from ..models.point3d import Point3d
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.curve_type import CurveType
|
from ..models.curve_type import CurveType
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class DefaultCameraFocusOn(BaseModel):
|
class DefaultCameraFocusOn(BaseModel):
|
||||||
"""The response from the `DefaultCameraFocusOn` command."""
|
"""The response from the `DefaultCameraFocusOn` command."""
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.camera_settings import CameraSettings
|
from ..models.camera_settings import CameraSettings
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
from ..models.camera_settings import CameraSettings
|
from ..models.camera_settings import CameraSettings
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user