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:
@ -1 +1 @@
|
||||
""" Contains methods for accessing the api_calls API paths: API calls that have been performed by users can be queried by the API. This is helpful for debugging as well as billing. """ # noqa: E501
|
||||
"""Contains methods for accessing the api_calls API paths: API calls that have been performed by users can be queried by the API. This is helpful for debugging as well as billing.""" # noqa: E501
|
||||
|
||||
@ -19,7 +19,6 @@ def _get_kwargs(
|
||||
) # noqa: E501
|
||||
|
||||
if group_by is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&group_by=" + str(group_by)
|
||||
else:
|
||||
|
||||
@ -36,7 +36,9 @@ def _get_kwargs(
|
||||
}
|
||||
|
||||
|
||||
def _parse_response(*, response: httpx.Response) -> Optional[
|
||||
def _parse_response(
|
||||
*, response: httpx.Response
|
||||
) -> Optional[
|
||||
Union[
|
||||
FileConversion,
|
||||
FileCenterOfMass,
|
||||
@ -132,7 +134,9 @@ def _parse_response(*, response: httpx.Response) -> Optional[
|
||||
return Error(**response.json())
|
||||
|
||||
|
||||
def _build_response(*, response: httpx.Response) -> Response[
|
||||
def _build_response(
|
||||
*, response: httpx.Response
|
||||
) -> Response[
|
||||
Optional[
|
||||
Union[
|
||||
FileConversion,
|
||||
@ -207,8 +211,7 @@ def sync(
|
||||
"""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.
|
||||
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.
|
||||
""" # noqa: E501
|
||||
Only Zoo employees with the proper access can view async operations for other users.""" # noqa: E501
|
||||
|
||||
return sync_detailed(
|
||||
id=id,
|
||||
@ -266,8 +269,7 @@ async def asyncio(
|
||||
"""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.
|
||||
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.
|
||||
""" # noqa: E501
|
||||
Only Zoo employees with the proper access can view async operations for other users.""" # noqa: E501
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
|
||||
@ -21,21 +21,18 @@ def _get_kwargs(
|
||||
) # noqa: E501
|
||||
|
||||
if limit is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&limit=" + str(limit)
|
||||
else:
|
||||
url = url + "?limit=" + str(limit)
|
||||
|
||||
if page_token is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&page_token=" + str(page_token)
|
||||
else:
|
||||
url = url + "?page_token=" + str(page_token)
|
||||
|
||||
if sort_by is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&sort_by=" + str(sort_by)
|
||||
else:
|
||||
|
||||
@ -23,21 +23,18 @@ def _get_kwargs(
|
||||
) # noqa: E501
|
||||
|
||||
if limit is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&limit=" + str(limit)
|
||||
else:
|
||||
url = url + "?limit=" + str(limit)
|
||||
|
||||
if page_token is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&page_token=" + str(page_token)
|
||||
else:
|
||||
url = url + "?page_token=" + str(page_token)
|
||||
|
||||
if sort_by is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&sort_by=" + str(sort_by)
|
||||
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.
|
||||
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.
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||
""" # noqa: E501
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||
|
||||
return sync_detailed(
|
||||
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.
|
||||
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.
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||
""" # noqa: E501
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
|
||||
@ -23,28 +23,24 @@ def _get_kwargs(
|
||||
) # noqa: E501
|
||||
|
||||
if limit is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&limit=" + str(limit)
|
||||
else:
|
||||
url = url + "?limit=" + str(limit)
|
||||
|
||||
if page_token is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&page_token=" + str(page_token)
|
||||
else:
|
||||
url = url + "?page_token=" + str(page_token)
|
||||
|
||||
if sort_by is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&sort_by=" + str(sort_by)
|
||||
else:
|
||||
url = url + "?sort_by=" + str(sort_by)
|
||||
|
||||
if status is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&status=" + str(status)
|
||||
else:
|
||||
|
||||
@ -21,21 +21,18 @@ def _get_kwargs(
|
||||
) # noqa: E501
|
||||
|
||||
if limit is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&limit=" + str(limit)
|
||||
else:
|
||||
url = url + "?limit=" + str(limit)
|
||||
|
||||
if page_token is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&page_token=" + str(page_token)
|
||||
else:
|
||||
url = url + "?page_token=" + str(page_token)
|
||||
|
||||
if sort_by is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&sort_by=" + str(sort_by)
|
||||
else:
|
||||
@ -109,8 +106,7 @@ def sync(
|
||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||
"""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.
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||
""" # noqa: E501
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||
|
||||
return sync_detailed(
|
||||
limit=limit,
|
||||
@ -149,8 +145,7 @@ async def asyncio(
|
||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||
"""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.
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.
|
||||
""" # noqa: E501
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
|
||||
@ -21,21 +21,18 @@ def _get_kwargs(
|
||||
) # noqa: E501
|
||||
|
||||
if limit is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&limit=" + str(limit)
|
||||
else:
|
||||
url = url + "?limit=" + str(limit)
|
||||
|
||||
if page_token is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&page_token=" + str(page_token)
|
||||
else:
|
||||
url = url + "?page_token=" + str(page_token)
|
||||
|
||||
if sort_by is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&sort_by=" + str(sort_by)
|
||||
else:
|
||||
@ -108,8 +105,7 @@ def sync(
|
||||
page_token: Optional[str] = None,
|
||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||
"""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.
|
||||
""" # noqa: E501
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||
|
||||
return sync_detailed(
|
||||
limit=limit,
|
||||
@ -147,8 +143,7 @@ async def asyncio(
|
||||
page_token: Optional[str] = None,
|
||||
) -> Optional[Union[ApiCallWithPriceResultsPage, Error]]:
|
||||
"""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.
|
||||
""" # noqa: E501
|
||||
The API calls are returned in order of creation, with the most recently created API calls first.""" # noqa: E501
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
|
||||
Reference in New Issue
Block a user