@ -205,7 +205,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -273,7 +273,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
responses = endpoint['responses']
|
responses = endpoint['responses']
|
||||||
for response_code in responses:
|
for response_code in responses:
|
||||||
response = responses[response_code]
|
response = responses[response_code]
|
||||||
f.write("\tif response.status_code == " + response_code + ":\n")
|
f.write("\tif response.status_code == " + response_code.replace("XX", "00") + ":\n")
|
||||||
if 'content' in response:
|
if 'content' in response:
|
||||||
content = response['content']
|
content = response['content']
|
||||||
for content_type in content:
|
for content_type in content:
|
||||||
@ -366,7 +366,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -397,7 +397,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -435,7 +435,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -469,7 +469,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -500,7 +500,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -531,7 +531,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -567,7 +567,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -602,7 +602,7 @@ response: Response[""" + success_type + """] = await """ + fn_name + """.asyncio
|
|||||||
parameter_name = parameter['name']
|
parameter_name = parameter['name']
|
||||||
if 'type' in parameter['schema']:
|
if 'type' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['type'].replace(
|
parameter_type = parameter['schema']['type'].replace(
|
||||||
'string', 'str')
|
'string', 'str').replace('integer', 'int')
|
||||||
elif '$ref' in parameter['schema']:
|
elif '$ref' in parameter['schema']:
|
||||||
parameter_type = parameter['schema']['$ref'].replace(
|
parameter_type = parameter['schema']['$ref'].replace(
|
||||||
'#/components/schemas/', '')
|
'#/components/schemas/', '')
|
||||||
@ -1201,12 +1201,12 @@ def getRequestBodyType(endpoint: dict) -> str:
|
|||||||
|
|
||||||
def camel_to_snake(name: str):
|
def camel_to_snake(name: str):
|
||||||
name = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
|
name = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
|
||||||
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', name).lower()
|
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', name).lower().replace('-', '_')
|
||||||
|
|
||||||
|
|
||||||
def camel_to_screaming_snake(name: str):
|
def camel_to_screaming_snake(name: str):
|
||||||
name = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
|
name = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
|
||||||
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', name).replace(' ', '').upper()
|
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', name).replace(' ', '').upper().replace('-', '_')
|
||||||
|
|
||||||
|
|
||||||
if (__name__ == '__main__'):
|
if (__name__ == '__main__'):
|
||||||
|
@ -29,10 +29,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, ApiCallW
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = ApiCallWithPrice.from_dict(response.json())
|
response_200 = ApiCallWithPrice.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -29,10 +29,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, ApiCallW
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = ApiCallWithPrice.from_dict(response.json())
|
response_200 = ApiCallWithPrice.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -33,10 +33,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [ApiCall
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [ApiCall
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [ApiCall
|
|||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -76,7 +76,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -93,7 +93,7 @@ def sync(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio_detailed(
|
async def asyncio_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -113,7 +113,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -10,7 +10,7 @@ from ...types import Response
|
|||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
id: str,
|
id: str,
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -36,10 +36,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [ApiCall
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -56,7 +56,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [ApiCall
|
|||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
id: str,
|
id: str,
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -80,7 +80,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
id: str,
|
id: str,
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -102,7 +102,7 @@ The API calls are returned in order of creation, with the most recently created
|
|||||||
|
|
||||||
async def asyncio_detailed(
|
async def asyncio_detailed(
|
||||||
id: str,
|
id: str,
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -124,7 +124,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
id: str,
|
id: str,
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [ApiCall
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [ApiCall
|
|||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -76,7 +76,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
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(
|
async def asyncio_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -114,7 +114,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -28,10 +28,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, ApiToken
|
|||||||
if response.status_code == 201:
|
if response.status_code == 201:
|
||||||
response_201 = ApiToken.from_dict(response.json())
|
response_201 = ApiToken.from_dict(response.json())
|
||||||
return response_201
|
return response_201
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -28,10 +28,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, Error]]:
|
|||||||
if response.status_code == 204:
|
if response.status_code == 204:
|
||||||
response_204 = None
|
response_204 = None
|
||||||
return response_204
|
return response_204
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -29,10 +29,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, ApiToken
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = ApiToken.from_dict(response.json())
|
response_200 = ApiToken.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [ApiToke
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [ApiToke
|
|||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -76,7 +76,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -94,7 +94,7 @@ The API tokens are returned in order of creation, with the most recently created
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio_detailed(
|
async def asyncio_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -114,7 +114,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -34,10 +34,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
if response.status_code == 201:
|
if response.status_code == 201:
|
||||||
response_201 = FileConversionWithOutput.from_dict(response.json())
|
response_201 = FileConversionWithOutput.from_dict(response.json())
|
||||||
return response_201
|
return response_201
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -29,10 +29,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = FileConversionWithOutput.from_dict(response.json())
|
response_200 = FileConversionWithOutput.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -29,10 +29,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, FileConv
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = FileConversionWithOutput.from_dict(response.json())
|
response_200 = FileConversionWithOutput.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [FileCon
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [FileCon
|
|||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -76,7 +76,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -94,7 +94,7 @@ This endpoint requires authentication by a KittyCAD employee. """
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio_detailed(
|
async def asyncio_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -114,7 +114,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [FileCon
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [FileCon
|
|||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -76,7 +76,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -95,7 +95,7 @@ The file conversions are returned in order of creation, with the most recently c
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio_detailed(
|
async def asyncio_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -115,7 +115,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -28,10 +28,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, dict, Er
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = response.json()
|
response_200 = response.json()
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -28,10 +28,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, Pong, Er
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = Pong.from_dict(response.json())
|
response_200 = Pong.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -29,10 +29,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, User, Er
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = User.from_dict(response.json())
|
response_200 = User.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -29,10 +29,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, Extended
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = ExtendedUser.from_dict(response.json())
|
response_200 = ExtendedUser.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -28,10 +28,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, User, Er
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = User.from_dict(response.json())
|
response_200 = User.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -28,10 +28,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, Extended
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
response_200 = ExtendedUser.from_dict(response.json())
|
response_200 = ExtendedUser.from_dict(response.json())
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
|
@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [User],
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [User],
|
|||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -76,7 +76,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -93,7 +93,7 @@ def sync(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio_detailed(
|
async def asyncio_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -113,7 +113,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -9,7 +9,7 @@ from ...models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from ...types import Response
|
from ...types import Response
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -35,10 +35,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[Any, [Extende
|
|||||||
for item in response.json()
|
for item in response.json()
|
||||||
]
|
]
|
||||||
return response_200
|
return response_200
|
||||||
if response.status_code == 4XX:
|
if response.status_code == 400:
|
||||||
response_4XX = Error.from_dict(response.json())
|
response_4XX = Error.from_dict(response.json())
|
||||||
return response_4XX
|
return response_4XX
|
||||||
if response.status_code == 5XX:
|
if response.status_code == 500:
|
||||||
response_5XX = Error.from_dict(response.json())
|
response_5XX = Error.from_dict(response.json())
|
||||||
return response_5XX
|
return response_5XX
|
||||||
return None
|
return None
|
||||||
@ -54,7 +54,7 @@ def _build_response(*, response: httpx.Response) -> Response[Union[Any, [Extende
|
|||||||
|
|
||||||
|
|
||||||
def sync_detailed(
|
def sync_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -76,7 +76,7 @@ def sync_detailed(
|
|||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -93,7 +93,7 @@ def sync(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio_detailed(
|
async def asyncio_detailed(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
@ -113,7 +113,7 @@ async def asyncio_detailed(
|
|||||||
|
|
||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
limit: integer,
|
limit: int,
|
||||||
page_token: str,
|
page_token: str,
|
||||||
sort_by: CreatedAtSortMode,
|
sort_by: CreatedAtSortMode,
|
||||||
*,
|
*,
|
||||||
|
@ -6,7 +6,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="ApiCallQueryGroup")
|
T = TypeVar("T", bound="ApiCallQueryGroup")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ApiCallQueryGroup:
|
class ApiCallQueryGroup:
|
||||||
""" """
|
""" """
|
||||||
@ -36,9 +35,10 @@ class ApiCallQueryGroup:
|
|||||||
|
|
||||||
query = d.pop("query", UNSET)
|
query = d.pop("query", UNSET)
|
||||||
|
|
||||||
|
|
||||||
api_call_query_group = cls(
|
api_call_query_group = cls(
|
||||||
count=count,
|
count= count,
|
||||||
query=query,
|
query= query,
|
||||||
)
|
)
|
||||||
|
|
||||||
api_call_query_group.additional_properties = d
|
api_call_query_group.additional_properties = d
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class ApiCallQueryGroupBy(str, Enum):
|
class ApiCallQueryGroupBy(str, Enum):
|
||||||
EMAIL = 'email'
|
EMAIL = 'email'
|
||||||
METHOD = 'method'
|
METHOD = 'method'
|
||||||
|
@ -11,7 +11,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="ApiCallWithPrice")
|
T = TypeVar("T", bound="ApiCallWithPrice")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ApiCallWithPrice:
|
class ApiCallWithPrice:
|
||||||
""" """
|
""" """
|
||||||
@ -211,28 +210,29 @@ class ApiCallWithPrice:
|
|||||||
|
|
||||||
user_id = d.pop("user_id", UNSET)
|
user_id = d.pop("user_id", UNSET)
|
||||||
|
|
||||||
|
|
||||||
api_call_with_price = cls(
|
api_call_with_price = cls(
|
||||||
completed_at=completed_at,
|
completed_at= completed_at,
|
||||||
created_at=created_at,
|
created_at= created_at,
|
||||||
duration=duration,
|
duration= duration,
|
||||||
email=email,
|
email= email,
|
||||||
endpoint=endpoint,
|
endpoint= endpoint,
|
||||||
id=id,
|
id= id,
|
||||||
ip_address=ip_address,
|
ip_address= ip_address,
|
||||||
method=method,
|
method= method,
|
||||||
minutes=minutes,
|
minutes= minutes,
|
||||||
origin=origin,
|
origin= origin,
|
||||||
price=price,
|
price= price,
|
||||||
request_body=request_body,
|
request_body= request_body,
|
||||||
request_query_params=request_query_params,
|
request_query_params= request_query_params,
|
||||||
response_body=response_body,
|
response_body= response_body,
|
||||||
started_at=started_at,
|
started_at= started_at,
|
||||||
status_code=status_code,
|
status_code= status_code,
|
||||||
stripe_invoice_item_id=stripe_invoice_item_id,
|
stripe_invoice_item_id= stripe_invoice_item_id,
|
||||||
token=token,
|
token= token,
|
||||||
updated_at=updated_at,
|
updated_at= updated_at,
|
||||||
user_agent=user_agent,
|
user_agent= user_agent,
|
||||||
user_id=user_id,
|
user_id= user_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
api_call_with_price.additional_properties = d
|
api_call_with_price.additional_properties = d
|
||||||
|
@ -9,7 +9,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="ApiToken")
|
T = TypeVar("T", bound="ApiToken")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ApiToken:
|
class ApiToken:
|
||||||
""" """
|
""" """
|
||||||
@ -84,13 +83,14 @@ class ApiToken:
|
|||||||
|
|
||||||
user_id = d.pop("user_id", UNSET)
|
user_id = d.pop("user_id", UNSET)
|
||||||
|
|
||||||
|
|
||||||
api_token = cls(
|
api_token = cls(
|
||||||
created_at=created_at,
|
created_at= created_at,
|
||||||
id=id,
|
id= id,
|
||||||
is_valid=is_valid,
|
is_valid= is_valid,
|
||||||
token=token,
|
token= token,
|
||||||
updated_at=updated_at,
|
updated_at= updated_at,
|
||||||
user_id=user_id,
|
user_id= user_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
api_token.additional_properties = d
|
api_token.additional_properties = d
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class CreatedAtSortMode(str, Enum):
|
class CreatedAtSortMode(str, Enum):
|
||||||
CREATED - AT - ASCENDING = 'created-at-ascending'
|
CREATED_AT_ASCENDING = 'created-at-ascending'
|
||||||
CREATED - AT - DESCENDING = 'created-at-descending'
|
CREATED_AT_DESCENDING = 'created-at-descending'
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return str(self.value)
|
return str(self.value)
|
||||||
|
@ -6,7 +6,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="Error")
|
T = TypeVar("T", bound="Error")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Error:
|
class Error:
|
||||||
""" """
|
""" """
|
||||||
@ -42,10 +41,11 @@ class Error:
|
|||||||
|
|
||||||
request_id = d.pop("request_id", UNSET)
|
request_id = d.pop("request_id", UNSET)
|
||||||
|
|
||||||
|
|
||||||
error = cls(
|
error = cls(
|
||||||
error_code=error_code,
|
error_code= error_code,
|
||||||
message=message,
|
message= message,
|
||||||
request_id=request_id,
|
request_id= request_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
error.additional_properties = d
|
error.additional_properties = d
|
||||||
|
@ -8,7 +8,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="ExtendedUser")
|
T = TypeVar("T", bound="ExtendedUser")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ExtendedUser:
|
class ExtendedUser:
|
||||||
""" """
|
""" """
|
||||||
@ -143,23 +142,24 @@ class ExtendedUser:
|
|||||||
|
|
||||||
zendesk_id = d.pop("zendesk_id", UNSET)
|
zendesk_id = d.pop("zendesk_id", UNSET)
|
||||||
|
|
||||||
|
|
||||||
extended_user = cls(
|
extended_user = cls(
|
||||||
company=company,
|
company= company,
|
||||||
created_at=created_at,
|
created_at= created_at,
|
||||||
discord=discord,
|
discord= discord,
|
||||||
email=email,
|
email= email,
|
||||||
email_verified=email_verified,
|
email_verified= email_verified,
|
||||||
first_name=first_name,
|
first_name= first_name,
|
||||||
github=github,
|
github= github,
|
||||||
id=id,
|
id= id,
|
||||||
image=image,
|
image= image,
|
||||||
last_name=last_name,
|
last_name= last_name,
|
||||||
mailchimp_id=mailchimp_id,
|
mailchimp_id= mailchimp_id,
|
||||||
name=name,
|
name= name,
|
||||||
phone=phone,
|
phone= phone,
|
||||||
stripe_id=stripe_id,
|
stripe_id= stripe_id,
|
||||||
updated_at=updated_at,
|
updated_at= updated_at,
|
||||||
zendesk_id=zendesk_id,
|
zendesk_id= zendesk_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
extended_user.additional_properties = d
|
extended_user.additional_properties = d
|
||||||
|
@ -12,7 +12,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="FileConversion")
|
T = TypeVar("T", bound="FileConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class FileConversion:
|
class FileConversion:
|
||||||
""" """
|
""" """
|
||||||
@ -158,19 +157,20 @@ class FileConversion:
|
|||||||
|
|
||||||
worker = d.pop("worker", UNSET)
|
worker = d.pop("worker", UNSET)
|
||||||
|
|
||||||
|
|
||||||
file_conversion = cls(
|
file_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at= completed_at,
|
||||||
created_at=created_at,
|
created_at= created_at,
|
||||||
id=id,
|
id= id,
|
||||||
output_file_link=output_file_link,
|
output_file_link= output_file_link,
|
||||||
output_format=output_format,
|
output_format= output_format,
|
||||||
src_file_link=src_file_link,
|
src_file_link= src_file_link,
|
||||||
src_format=src_format,
|
src_format= src_format,
|
||||||
started_at=started_at,
|
started_at= started_at,
|
||||||
status=status,
|
status= status,
|
||||||
updated_at=updated_at,
|
updated_at= updated_at,
|
||||||
user_id=user_id,
|
user_id= user_id,
|
||||||
worker=worker,
|
worker= worker,
|
||||||
)
|
)
|
||||||
|
|
||||||
file_conversion.additional_properties = d
|
file_conversion.additional_properties = d
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class FileConversionOutputFormat(str, Enum):
|
class FileConversionOutputFormat(str, Enum):
|
||||||
STL = 'stl'
|
STL = 'stl'
|
||||||
OBJ = 'obj'
|
OBJ = 'obj'
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class FileConversionSourceFormat(str, Enum):
|
class FileConversionSourceFormat(str, Enum):
|
||||||
STL = 'stl'
|
STL = 'stl'
|
||||||
OBJ = 'obj'
|
OBJ = 'obj'
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class FileConversionStatus(str, Enum):
|
class FileConversionStatus(str, Enum):
|
||||||
QUEUED = 'Queued'
|
QUEUED = 'Queued'
|
||||||
UPLOADED = 'Uploaded'
|
UPLOADED = 'Uploaded'
|
||||||
|
@ -12,7 +12,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="FileConversionWithOutput")
|
T = TypeVar("T", bound="FileConversionWithOutput")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class FileConversionWithOutput:
|
class FileConversionWithOutput:
|
||||||
""" """
|
""" """
|
||||||
@ -133,16 +132,17 @@ class FileConversionWithOutput:
|
|||||||
|
|
||||||
user_id = d.pop("user_id", UNSET)
|
user_id = d.pop("user_id", UNSET)
|
||||||
|
|
||||||
|
|
||||||
file_conversion_with_output = cls(
|
file_conversion_with_output = cls(
|
||||||
completed_at=completed_at,
|
completed_at= completed_at,
|
||||||
created_at=created_at,
|
created_at= created_at,
|
||||||
id=id,
|
id= id,
|
||||||
output=output,
|
output= output,
|
||||||
output_format=output_format,
|
output_format= output_format,
|
||||||
src_format=src_format,
|
src_format= src_format,
|
||||||
started_at=started_at,
|
started_at= started_at,
|
||||||
status=status,
|
status= status,
|
||||||
user_id=user_id,
|
user_id= user_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
file_conversion_with_output.additional_properties = d
|
file_conversion_with_output.additional_properties = d
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class Method(str, Enum):
|
class Method(str, Enum):
|
||||||
OPTIONS = 'OPTIONS'
|
OPTIONS = 'OPTIONS'
|
||||||
GET = 'GET'
|
GET = 'GET'
|
||||||
|
@ -6,7 +6,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="Pong")
|
T = TypeVar("T", bound="Pong")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Pong:
|
class Pong:
|
||||||
""" """
|
""" """
|
||||||
@ -30,8 +29,9 @@ class Pong:
|
|||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
message = d.pop("message", UNSET)
|
message = d.pop("message", UNSET)
|
||||||
|
|
||||||
|
|
||||||
pong = cls(
|
pong = cls(
|
||||||
message=message,
|
message= message,
|
||||||
)
|
)
|
||||||
|
|
||||||
pong.additional_properties = d
|
pong.additional_properties = d
|
||||||
|
@ -8,7 +8,6 @@ from ..types import UNSET, Unset
|
|||||||
|
|
||||||
T = TypeVar("T", bound="User")
|
T = TypeVar("T", bound="User")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class User:
|
class User:
|
||||||
""" """
|
""" """
|
||||||
@ -125,20 +124,21 @@ class User:
|
|||||||
else:
|
else:
|
||||||
updated_at = isoparse(_updated_at)
|
updated_at = isoparse(_updated_at)
|
||||||
|
|
||||||
|
|
||||||
user = cls(
|
user = cls(
|
||||||
company=company,
|
company= company,
|
||||||
created_at=created_at,
|
created_at= created_at,
|
||||||
discord=discord,
|
discord= discord,
|
||||||
email=email,
|
email= email,
|
||||||
email_verified=email_verified,
|
email_verified= email_verified,
|
||||||
first_name=first_name,
|
first_name= first_name,
|
||||||
github=github,
|
github= github,
|
||||||
id=id,
|
id= id,
|
||||||
image=image,
|
image= image,
|
||||||
last_name=last_name,
|
last_name= last_name,
|
||||||
name=name,
|
name= name,
|
||||||
phone=phone,
|
phone= phone,
|
||||||
updated_at=updated_at,
|
updated_at= updated_at,
|
||||||
)
|
)
|
||||||
|
|
||||||
user.additional_properties = d
|
user.additional_properties = d
|
||||||
|
Reference in New Issue
Block a user