more fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2022-04-06 20:48:04 -07:00
parent ed6b2c8e77
commit 1408f075ee
39 changed files with 1100 additions and 1106 deletions

View File

@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
from ...types import Response
def _get_kwargs(
limit: integer,
limit: int,
page_token: str,
sort_by: CreatedAtSortMode,
*,
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [ApiCall
for item in response.json()
]
return response_200
if response.status_code == 4XX:
if response.status_code == 400:
response_4XX = Error.from_dict(response.json())
return response_4XX
if response.status_code == 5XX:
if response.status_code == 500:
response_5XX = Error.from_dict(response.json())
return response_5XX
return None
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [ApiCall
def sync_detailed(
limit: integer,
limit: int,
page_token: str,
sort_by: CreatedAtSortMode,
*,
@ -76,7 +76,7 @@ def sync_detailed(
def sync(
limit: integer,
limit: int,
page_token: str,
sort_by: CreatedAtSortMode,
*,
@ -94,7 +94,7 @@ The API calls are returned in order of creation, with the most recently created
async def asyncio_detailed(
limit: integer,
limit: int,
page_token: str,
sort_by: CreatedAtSortMode,
*,
@ -114,7 +114,7 @@ async def asyncio_detailed(
async def asyncio(
limit: integer,
limit: int,
page_token: str,
sort_by: CreatedAtSortMode,
*,