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_tokens API paths: API tokens allow users to call the API outside of their session token that is used as a cookie in the user interface. Users can create, delete, and list their API tokens. But, of course, you need an API token to do this, so first be sure to generate one in the account UI. """ # noqa: E501
|
||||
"""Contains methods for accessing the api_tokens API paths: API tokens allow users to call the API outside of their session token that is used as a cookie in the user interface. Users can create, delete, and list their API tokens. But, of course, you need an API token to do this, so first be sure to generate one in the account UI.""" # noqa: E501
|
||||
|
||||
@ -18,7 +18,6 @@ def _get_kwargs(
|
||||
) # noqa: E501
|
||||
|
||||
if label is not None:
|
||||
|
||||
if "?" in url:
|
||||
url = url + "&label=" + str(label)
|
||||
else:
|
||||
|
||||
@ -73,8 +73,7 @@ def sync(
|
||||
client: Client,
|
||||
) -> Optional[Error]:
|
||||
"""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.
|
||||
""" # noqa: E501
|
||||
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
|
||||
|
||||
return sync_detailed(
|
||||
token=token,
|
||||
@ -104,8 +103,7 @@ async def asyncio(
|
||||
client: Client,
|
||||
) -> Optional[Error]:
|
||||
"""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.
|
||||
""" # noqa: E501
|
||||
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
|
||||
|
||||
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[ApiTokenResultsPage, Error]]:
|
||||
"""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.
|
||||
""" # noqa: E501
|
||||
The API tokens are returned in order of creation, with the most recently created API tokens first.""" # noqa: E501
|
||||
|
||||
return sync_detailed(
|
||||
limit=limit,
|
||||
@ -147,8 +143,7 @@ async def asyncio(
|
||||
page_token: Optional[str] = None,
|
||||
) -> Optional[Union[ApiTokenResultsPage, Error]]:
|
||||
"""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.
|
||||
""" # noqa: E501
|
||||
The API tokens are returned in order of creation, with the most recently created API tokens first.""" # noqa: E501
|
||||
|
||||
return (
|
||||
await asyncio_detailed(
|
||||
|
||||
Reference in New Issue
Block a user