Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2022-04-06 21:14:32 -07:00
parent 15d5bf50c1
commit a8d537e29c
18 changed files with 1022 additions and 1016 deletions

View File

@ -6,6 +6,7 @@ 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:
""" """ """ """
@ -35,7 +36,6 @@ 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,

View File

@ -1,5 +1,6 @@
from enum import Enum from enum import Enum
class ApiCallQueryGroupBy(str, Enum): class ApiCallQueryGroupBy(str, Enum):
EMAIL = 'email' EMAIL = 'email'
METHOD = 'method' METHOD = 'method'

View File

@ -11,6 +11,7 @@ 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:
""" """ """ """
@ -210,7 +211,6 @@ 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,

View File

@ -9,6 +9,7 @@ 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:
""" """ """ """
@ -83,7 +84,6 @@ 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,

View File

@ -1,5 +1,6 @@
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'

View File

@ -6,6 +6,7 @@ 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:
""" """ """ """
@ -41,7 +42,6 @@ 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,

View File

@ -8,6 +8,7 @@ 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:
""" """ """ """
@ -142,7 +143,6 @@ 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,

View File

@ -12,6 +12,7 @@ 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:
""" """ """ """
@ -157,7 +158,6 @@ 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,

View File

@ -1,5 +1,6 @@
from enum import Enum from enum import Enum
class FileConversionOutputFormat(str, Enum): class FileConversionOutputFormat(str, Enum):
STL = 'stl' STL = 'stl'
OBJ = 'obj' OBJ = 'obj'

View File

@ -1,5 +1,6 @@
from enum import Enum from enum import Enum
class FileConversionSourceFormat(str, Enum): class FileConversionSourceFormat(str, Enum):
STL = 'stl' STL = 'stl'
OBJ = 'obj' OBJ = 'obj'

View File

@ -1,5 +1,6 @@
from enum import Enum from enum import Enum
class FileConversionStatus(str, Enum): class FileConversionStatus(str, Enum):
QUEUED = 'Queued' QUEUED = 'Queued'
UPLOADED = 'Uploaded' UPLOADED = 'Uploaded'

View File

@ -12,6 +12,7 @@ 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:
""" """ """ """
@ -132,7 +133,6 @@ 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,

View File

@ -1,5 +1,6 @@
from enum import Enum from enum import Enum
class Method(str, Enum): class Method(str, Enum):
OPTIONS = 'OPTIONS' OPTIONS = 'OPTIONS'
GET = 'GET' GET = 'GET'

View File

@ -6,6 +6,7 @@ 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:
""" """ """ """
@ -29,7 +30,6 @@ 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,
) )

View File

@ -8,6 +8,7 @@ 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:
""" """ """ """
@ -124,7 +125,6 @@ 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,

View File

@ -1182,8 +1182,8 @@
"libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#FileService.CreateConversion" "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#FileService.CreateConversion"
}, },
"x-python": { "x-python": {
"example": "from kittycad.models import FileConversionWithOutput\nfrom kittycad.api.file import create_file_conversion\nfrom kittycad.types import Response\n\nfc: FileConversionWithOutput = create_file_conversion.sync(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)\n\n# OR if you need more info (e.g. status_code)\nresponse: Response[FileConversionWithOutput] = create_file_conversion.sync_detailed(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)\n\n# OR run async\nfc: FileConversionWithOutput = await create_file_conversion.asyncio(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)\n\n# OR run async with more info\nresponse: Response[FileConversionWithOutput] = await create_file_conversion.asyncio_detailed(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)", "example": "from kittycad.models import FileConversionWithOutput\nfrom kittycad.api.file import create_file_conversion_with_base64_helper\nfrom kittycad.types import Response\n\nfc: FileConversionWithOutput = create_file_conversion_with_base64_helper.sync(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)\n\n# OR if you need more info (e.g. status_code)\nresponse: Response[FileConversionWithOutput] = create_file_conversion_with_base64_helper.sync_detailed(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)\n\n# OR run async\nfc: FileConversionWithOutput = await create_file_conversion_with_base64_helper.asyncio(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)\n\n# OR run async with more info\nresponse: Response[FileConversionWithOutput] = await create_file_conversion_with_base64_helper.asyncio_detailed(client=client, output_format=FileConversionOutputFormat, src_format=FileConversionSourceFormat, body=bytes)",
"libDocsLink": "https://python.api.docs.kittycad.io/modules/kittycad.api.file.create_file_conversion.html" "libDocsLink": "https://python.api.docs.kittycad.io/modules/kittycad.api.file.create_file_conversion_with_base64_helper.html"
} }
} }
}, },
@ -1392,8 +1392,8 @@
"libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#FileService.GetConversion" "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#FileService.GetConversion"
}, },
"x-python": { "x-python": {
"example": "from kittycad.models import FileConversionWithOutput\nfrom kittycad.api.file import get_file_conversion\nfrom kittycad.types import Response\n\nfc: FileConversionWithOutput = get_file_conversion.sync(client=client, id=)\n\n# OR if you need more info (e.g. status_code)\nresponse: Response[FileConversionWithOutput] = get_file_conversion.sync_detailed(client=client, id=)\n\n# OR run async\nfc: FileConversionWithOutput = await get_file_conversion.asyncio(client=client, id=)\n\n# OR run async with more info\nresponse: Response[FileConversionWithOutput] = await get_file_conversion.asyncio_detailed(client=client, id=)", "example": "from kittycad.models import FileConversionWithOutput\nfrom kittycad.api.file import get_file_conversion_with_base64_helper\nfrom kittycad.types import Response\n\nfc: FileConversionWithOutput = get_file_conversion_with_base64_helper.sync(client=client, id=)\n\n# OR if you need more info (e.g. status_code)\nresponse: Response[FileConversionWithOutput] = get_file_conversion_with_base64_helper.sync_detailed(client=client, id=)\n\n# OR run async\nfc: FileConversionWithOutput = await get_file_conversion_with_base64_helper.asyncio(client=client, id=)\n\n# OR run async with more info\nresponse: Response[FileConversionWithOutput] = await get_file_conversion_with_base64_helper.asyncio_detailed(client=client, id=)",
"libDocsLink": "https://python.api.docs.kittycad.io/modules/kittycad.api.file.get_file_conversion.html" "libDocsLink": "https://python.api.docs.kittycad.io/modules/kittycad.api.file.get_file_conversion_with_base64_helper.html"
} }
} }
}, },