@ -2233,7 +2233,7 @@ def renderTypeFromDict(f, property_name: str, property_schema: dict, data: dict)
|
|||||||
elif "$ref" in property_schema:
|
elif "$ref" in property_schema:
|
||||||
ref = property_schema["$ref"].replace("#/components/schemas/", "")
|
ref = property_schema["$ref"].replace("#/components/schemas/", "")
|
||||||
# Get the type for the reference.
|
# Get the type for the reference.
|
||||||
data["components"]["schemas"][ref]
|
actual_schema = data["components"]["schemas"][ref]
|
||||||
|
|
||||||
f.write(
|
f.write(
|
||||||
"\t\t_"
|
"\t\t_"
|
||||||
@ -2253,14 +2253,33 @@ def renderTypeFromDict(f, property_name: str, property_schema: dict, data: dict)
|
|||||||
"\t\tif isinstance(_" + clean_parameter_name(property_name) + ", Unset):\n"
|
"\t\tif isinstance(_" + clean_parameter_name(property_name) + ", Unset):\n"
|
||||||
)
|
)
|
||||||
f.write("\t\t\t" + clean_parameter_name(property_name) + " = UNSET\n")
|
f.write("\t\t\t" + clean_parameter_name(property_name) + " = UNSET\n")
|
||||||
|
f.write("\t\tif _" + clean_parameter_name(property_name) + " is None:\n")
|
||||||
|
f.write("\t\t\t" + clean_parameter_name(property_name) + " = UNSET\n")
|
||||||
f.write("\t\telse:\n")
|
f.write("\t\telse:\n")
|
||||||
|
|
||||||
|
is_enum = isEnumWithDocsOneOf(actual_schema)
|
||||||
|
if (
|
||||||
|
"properties" in actual_schema
|
||||||
|
or "oneOf" in actual_schema
|
||||||
|
or "anyOf" in actual_schema
|
||||||
|
or "allOf" in actual_schema
|
||||||
|
) and not is_enum:
|
||||||
|
f.write(
|
||||||
|
"\t\t\t"
|
||||||
|
+ clean_parameter_name(property_name)
|
||||||
|
+ " = "
|
||||||
|
+ ref
|
||||||
|
+ ".from_dict(_"
|
||||||
|
+ clean_parameter_name(property_name)
|
||||||
|
+ ")\n"
|
||||||
|
)
|
||||||
|
else:
|
||||||
f.write(
|
f.write(
|
||||||
"\t\t\t"
|
"\t\t\t"
|
||||||
+ clean_parameter_name(property_name)
|
+ clean_parameter_name(property_name)
|
||||||
+ " = _"
|
+ " = _"
|
||||||
+ clean_parameter_name(property_name)
|
+ clean_parameter_name(property_name)
|
||||||
+ " # type: ignore[arg-type]\n"
|
+ "\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
from typing import Dict, Any, Union, Type, TypeVar
|
from typing import Dict, Any, Union, Type, TypeVar
|
||||||
from typing_extensions import Self
|
from typing_extensions import Self
|
||||||
import attr
|
import attr
|
||||||
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
GY = TypeVar("GY", bound="{{name}}")
|
GY = TypeVar("GY", bound="{{name}}")
|
||||||
|
|
||||||
|
@ -1,66 +1,10 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1session~1{token}/get/x-python",
|
"path": "/paths/~1file~1volume/post/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_session_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Session\nfrom kittycad.types import Response\n\n\ndef example_get_session_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Session, Error]] = get_session_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Session = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_volume\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileVolume\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_create_file_volume():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileVolume, Error]] = create_file_volume.sync(\n client=client,\n output_unit=UnitVolume.CM3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileVolume = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_session_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_volume.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1center-of-mass/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_center_of_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileCenterOfMass\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_create_file_center_of_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileCenterOfMass, Error]\n ] = create_file_center_of_mass.sync(\n client=client,\n output_unit=UnitLength.CM,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileCenterOfMass = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_center_of_mass.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1mass~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_mass_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitMassConversion\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_get_mass_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitMassConversion, Error]\n ] = get_mass_unit_conversion.sync(\n client=client,\n input_unit=UnitMass.G,\n output_unit=UnitMass.G,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitMassConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_mass_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1frequency~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_frequency_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitFrequencyConversion\nfrom kittycad.models.unit_frequency import UnitFrequency\nfrom kittycad.types import Response\n\n\ndef example_get_frequency_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitFrequencyConversion, Error]\n ] = get_frequency_unit_conversion.sync(\n client=client,\n input_unit=UnitFrequency.GIGAHERTZ,\n output_unit=UnitFrequency.GIGAHERTZ,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitFrequencyConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_frequency_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_length_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitLengthConversion\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_get_length_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitLengthConversion, Error]\n ] = get_length_unit_conversion.sync(\n client=client,\n input_unit=UnitLength.CM,\n output_unit=UnitLength.CM,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitLengthConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_length_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from kittycad.api.meta import get_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_schema.sync(\n client=client,\n )\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1temperature~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1volume~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_volume_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitVolumeConversion\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_get_volume_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitVolumeConversion, Error]\n ] = get_volume_unit_conversion.sync(\n client=client,\n input_unit=UnitVolume.CM3,\n output_unit=UnitVolume.CM3,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitVolumeConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_volume_unit_conversion.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -73,42 +17,50 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment~1invoices/get/x-python",
|
"path": "/paths/~1users~1{id}~1api-calls/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_invoices_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Invoice\nfrom kittycad.types import Response\n\n\ndef example_list_invoices_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[List[Invoice], Error]] = list_invoices_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[Invoice] = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls_for_user.sync(\n client=client,\n id=\"<string>\",\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_invoices_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1users/get/x-python",
|
"path": "/paths/~1apps~1github~1consent/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[UserResultsPage, Error]] = list_users.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UserResultsPage = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1users-extended~1{id}/get/x-python",
|
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_extended.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_current_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitCurrentConversion\nfrom kittycad.models.unit_current import UnitCurrent\nfrom kittycad.types import Response\n\n\ndef example_get_current_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitCurrentConversion, Error]\n ] = get_current_unit_conversion.sync(\n client=client,\n input_unit=UnitCurrent.AMPERES,\n output_unit=UnitCurrent.AMPERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitCurrentConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_current_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ai-prompts~1{id}/get/x-python",
|
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_ai_prompt\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPrompt, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_prompt():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPrompt, Error]] = get_ai_prompt.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPrompt = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_length_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitLengthConversion\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_get_length_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitLengthConversion, Error]\n ] = get_length_unit_conversion.sync(\n client=client,\n input_unit=UnitLength.CM,\n output_unit=UnitLength.CM,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitLengthConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_ai_prompt.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_length_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1api-calls/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_angle_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAngleConversion\nfrom kittycad.models.unit_angle import UnitAngle\nfrom kittycad.types import Response\n\n\ndef example_get_angle_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAngleConversion, Error]\n ] = get_angle_unit_conversion.sync(\n client=client,\n input_unit=UnitAngle.DEGREES,\n output_unit=UnitAngle.DEGREES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAngleConversion = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_angle_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1file~1conversion~1{src_format}~1{output_format}/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileConversion\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_file_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileConversion, Error]] = create_file_conversion.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -119,174 +71,6 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1apps~1github~1webhook/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_webhook\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_webhook():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_webhook.sync(\n client=client,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_webhook.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1density/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_density\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileDensity\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_density import UnitDensity\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_create_file_density():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileDensity, Error]] = create_file_density.sync(\n client=client,\n material_mass=3.14,\n material_mass_unit=UnitMass.G,\n output_unit=UnitDensity.LB_FT3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileDensity = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_density.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1auth~1email/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, VerificationToken\nfrom kittycad.models.email_authentication_form import EmailAuthenticationForm\nfrom kittycad.types import Response\n\n\ndef example_auth_email():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[VerificationToken, Error]] = auth_email.sync(\n client=client,\n body=EmailAuthenticationForm(\n email=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: VerificationToken = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1async~1operations~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_async_operation\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n Error,\n FileCenterOfMass,\n FileConversion,\n FileDensity,\n FileMass,\n FileSurfaceArea,\n FileVolume,\n TextToCad,\n)\nfrom kittycad.types import Response\n\n\ndef example_get_async_operation():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n Error,\n ]\n ] = get_async_operation.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n ] = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_async_operation.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1users~1{id}~1api-calls/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls_for_user.sync(\n client=client,\n id=\"<string>\",\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1methods/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_payment_methods_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentMethod\nfrom kittycad.types import Response\n\n\ndef example_list_payment_methods_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[PaymentMethod], Error]\n ] = list_payment_methods_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[PaymentMethod] = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_payment_methods_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1area~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_area_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAreaConversion\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_get_area_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAreaConversion, Error]\n ] = get_area_unit_conversion.sync(\n client=client,\n input_unit=UnitArea.CM2,\n output_unit=UnitArea.CM2,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAreaConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_area_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1force~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_force_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitForceConversion\nfrom kittycad.models.unit_force import UnitForce\nfrom kittycad.types import Response\n\n\ndef example_get_force_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitForceConversion, Error]\n ] = get_force_unit_conversion.sync(\n client=client,\n input_unit=UnitForce.DYNES,\n output_unit=UnitForce.DYNES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitForceConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_force_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1ping/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import ping\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Pong\nfrom kittycad.types import Response\n\n\ndef example_ping():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Pong, Error]] = ping.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Pong = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.ping.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1front-hash/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from kittycad.api.users import get_user_front_hash_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_user_front_hash_self():\n # Create our client.\n client = ClientFromEnv()\n\n get_user_front_hash_self.sync(\n client=client,\n )\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_front_hash_self.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1onboarding/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_onboarding_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Onboarding\nfrom kittycad.types import Response\n\n\ndef example_get_user_onboarding_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Onboarding, Error]] = get_user_onboarding_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Onboarding = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1surface-area/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_surface_area\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileSurfaceArea\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_create_file_surface_area():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileSurfaceArea, Error]\n ] = create_file_surface_area.sync(\n client=client,\n output_unit=UnitArea.CM2,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileSurfaceArea = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_surface_area.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1ai-prompts/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_ai_prompts\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPromptResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_ai_prompts():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPromptResultsPage, Error]] = list_ai_prompts.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPromptResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_ai_prompts.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1energy~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_energy_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitEnergyConversion\nfrom kittycad.models.unit_energy import UnitEnergy\nfrom kittycad.types import Response\n\n\ndef example_get_energy_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitEnergyConversion, Error]\n ] = get_energy_unit_conversion.sync(\n client=client,\n input_unit=UnitEnergy.BTU,\n output_unit=UnitEnergy.BTU,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitEnergyConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_energy_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1text-to-cad/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_text_to_cad_models_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCadResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_text_to_cad_models_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCadResultsPage, Error]\n ] = list_text_to_cad_models_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCadResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_text_to_cad_models_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1intent/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import create_payment_intent_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentIntent\nfrom kittycad.types import Response\n\n\ndef example_create_payment_intent_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[PaymentIntent, Error]\n ] = create_payment_intent_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: PaymentIntent = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.create_payment_intent_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1api-call-metrics/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_metrics\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallQueryGroup, Error\nfrom kittycad.models.api_call_query_group_by import ApiCallQueryGroupBy\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_metrics():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[ApiCallQueryGroup], Error]\n ] = get_api_call_metrics.sync(\n client=client,\n group_by=ApiCallQueryGroupBy.EMAIL,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[ApiCallQueryGroup] = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_metrics.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1api-tokens/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import list_api_tokens_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiTokenResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_tokens_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiTokenResultsPage, Error]\n ] = list_api_tokens_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiTokenResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1api-tokens/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import create_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_create_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = create_api_token_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.create_api_token_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1api-tokens~1{token}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import get_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = get_api_token_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.get_api_token_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1api-tokens~1{token}/delete/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import delete_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_api_token_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.delete_api_token_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1logout/post/x-python",
|
"path": "/paths/~1logout/post/x-python",
|
||||||
@ -297,50 +81,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1apps~1github~1callback/get/x-python",
|
"path": "/paths/~1unit~1conversion~1volume~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_callback.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_volume_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitVolumeConversion\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_get_volume_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitVolumeConversion, Error]\n ] = get_volume_unit_conversion.sync(\n client=client,\n input_unit=UnitVolume.CM3,\n output_unit=UnitVolume.CM3,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitVolumeConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_callback.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_volume_unit_conversion.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1users~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1execute~1{lang}/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.executor import create_file_execution\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CodeOutput, Error\nfrom kittycad.models.code_language import CodeLanguage\nfrom kittycad.types import Response\n\n\ndef example_create_file_execution():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[CodeOutput, Error]] = create_file_execution.sync(\n client=client,\n lang=CodeLanguage.GO,\n output=None, # Optional[str]\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: CodeOutput = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_file_execution.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1tax/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import validate_customer_tax_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_validate_customer_tax_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = validate_customer_tax_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.validate_customer_tax_information_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1internal~1discord~1api-token~1{discord_id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import internal_get_api_token_for_discord_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_internal_get_api_token_for_discord_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiToken, Error]\n ] = internal_get_api_token_for_discord_user.sync(\n client=client,\n discord_id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.internal_get_api_token_for_discord_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_power_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPowerConversion\nfrom kittycad.models.unit_power import UnitPower\nfrom kittycad.types import Response\n\n\ndef example_get_power_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPowerConversion, Error]\n ] = get_power_unit_conversion.sync(\n client=client,\n input_unit=UnitPower.BTU_PER_MINUTE,\n output_unit=UnitPower.BTU_PER_MINUTE,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPowerConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_power_unit_conversion.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -351,6 +95,14 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment/delete/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment/post/x-python",
|
"path": "/paths/~1user~1payment/post/x-python",
|
||||||
@ -369,58 +121,26 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment/delete/x-python",
|
"path": "/paths/~1unit~1conversion~1frequency~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_frequency_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitFrequencyConversion\nfrom kittycad.models.unit_frequency import UnitFrequency\nfrom kittycad.types import Response\n\n\ndef example_get_frequency_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitFrequencyConversion, Error]\n ] = get_frequency_unit_conversion.sync(\n client=client,\n input_unit=UnitFrequency.GIGAHERTZ,\n output_unit=UnitFrequency.GIGAHERTZ,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitFrequencyConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_information_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_frequency_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python",
|
"path": "/paths/~1file~1surface-area/post/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_method_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_method_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_method_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_surface_area\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileSurfaceArea\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_create_file_surface_area():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileSurfaceArea, Error]\n ] = create_file_surface_area.sync(\n client=client,\n output_unit=UnitArea.CM2,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileSurfaceArea = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_method_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_surface_area.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1async~1operations/get/x-python",
|
"path": "/paths/~1user~1extended/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_async_operations\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AsyncApiCallResultsPage, Error\nfrom kittycad.models.api_call_status import ApiCallStatus\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_async_operations():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AsyncApiCallResultsPage, Error]\n ] = list_async_operations.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n status=ApiCallStatus.QUEUED,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AsyncApiCallResultsPage = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_self_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_self_extended.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self_extended.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1volume/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_volume\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileVolume\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_create_file_volume():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileVolume, Error]] = create_file_volume.sync(\n client=client,\n output_unit=UnitVolume.CM3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileVolume = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_volume.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_current_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitCurrentConversion\nfrom kittycad.models.unit_current import UnitCurrent\nfrom kittycad.types import Response\n\n\ndef example_get_current_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitCurrentConversion, Error]\n ] = get_current_unit_conversion.sync(\n client=client,\n input_unit=UnitCurrent.AMPERES,\n output_unit=UnitCurrent.AMPERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitCurrentConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_current_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1users-extended/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ExtendedUserResultsPage, Error]\n ] = list_users_extended.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUserResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users_extended.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1ai~1text-to-cad~1{output_format}/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.text_to_cad_create_body import TextToCadCreateBody\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[TextToCad, Error]] = create_text_to_cad.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n body=TextToCadCreateBody(\n prompt=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -433,18 +153,50 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user/get/x-python",
|
"path": "/paths/~1apps~1github~1callback/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_callback.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_callback.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user/put/x-python",
|
"path": "/paths/~1user~1payment~1intent/post/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import update_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.models.update_user import UpdateUser\nfrom kittycad.types import Response\n\n\ndef example_update_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = update_user_self.sync(\n client=client,\n body=UpdateUser(\n company=\"<string>\",\n discord=\"<string>\",\n first_name=\"<string>\",\n github=\"<string>\",\n last_name=\"<string>\",\n phone=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import create_payment_intent_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentIntent\nfrom kittycad.types import Response\n\n\ndef example_create_payment_intent_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[PaymentIntent, Error]\n ] = create_payment_intent_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: PaymentIntent = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.update_user_self.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.create_payment_intent_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ping/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import ping\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Pong\nfrom kittycad.types import Response\n\n\ndef example_ping():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Pong, Error]] = ping.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Pong = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.ping.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1mass~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_mass_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitMassConversion\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_get_mass_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitMassConversion, Error]\n ] = get_mass_unit_conversion.sync(\n client=client,\n input_unit=UnitMass.G,\n output_unit=UnitMass.G,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitMassConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_mass_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ws~1executor~1term/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from kittycad.api.executor import create_executor_term\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_create_executor_term():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = create_executor_term.sync(\n client=client,\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_executor_term.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -457,34 +209,50 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1api-calls/get/x-python",
|
"path": "/paths/~1user/put/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import update_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.models.update_user import UpdateUser\nfrom kittycad.types import Response\n\n\ndef example_update_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = update_user_self.sync(\n client=client,\n body=UpdateUser(\n company=\"<string>\",\n discord=\"<string>\",\n first_name=\"<string>\",\n github=\"<string>\",\n last_name=\"<string>\",\n phone=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.update_user_self.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1openai~1openapi.json/get/x-python",
|
"path": "/paths/~1async~1operations/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from kittycad.api.meta import get_openai_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_openai_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_openai_schema.sync(\n client=client,\n )\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_async_operations\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AsyncApiCallResultsPage, Error\nfrom kittycad.models.api_call_status import ApiCallStatus\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_async_operations():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AsyncApiCallResultsPage, Error]\n ] = list_async_operations.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n status=ApiCallStatus.QUEUED,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AsyncApiCallResultsPage = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_openai_schema.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1auth~1email~1callback/get/x-python",
|
"path": "/paths/~1user~1api-calls~1{id}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_auth_email_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = auth_email_callback.sync(\n client=client,\n email=\"<string>\",\n token=\"<string>\",\n callback_url=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email_callback.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1pressure~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1users-extended/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_pressure_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPressureConversion\nfrom kittycad.models.unit_pressure import UnitPressure\nfrom kittycad.types import Response\n\n\ndef example_get_pressure_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPressureConversion, Error]\n ] = get_pressure_unit_conversion.sync(\n client=client,\n input_unit=UnitPressure.ATMOSPHERES,\n output_unit=UnitPressure.ATMOSPHERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPressureConversion = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ExtendedUserResultsPage, Error]\n ] = list_users_extended.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUserResultsPage = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_pressure_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users_extended.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1methods/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_payment_methods_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentMethod\nfrom kittycad.types import Response\n\n\ndef example_list_payment_methods_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[PaymentMethod], Error]\n ] = list_payment_methods_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[PaymentMethod] = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_payment_methods_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1torque~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_torque_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTorqueConversion\nfrom kittycad.models.unit_torque import UnitTorque\nfrom kittycad.types import Response\n\n\ndef example_get_torque_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTorqueConversion, Error]\n ] = get_torque_unit_conversion.sync(\n client=client,\n input_unit=UnitTorque.NEWTON_METRES,\n output_unit=UnitTorque.NEWTON_METRES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTorqueConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_torque_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -497,10 +265,274 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1file~1conversion~1{src_format}~1{output_format}/post/x-python",
|
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileConversion\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_file_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileConversion, Error]] = create_file_conversion.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileConversion = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_method_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_method_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_method_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_method_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ws~1modeling~1commands/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, WebSocketResponse\nfrom kittycad.types import Response\n\n\ndef example_modeling_commands_ws():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = modeling_commands_ws.sync(\n client=client,\n fps=10,\n unlocked_framerate=False,\n video_res_height=10,\n video_res_width=10,\n webrtc=False,\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.modeling_commands_ws.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1file~1density/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_density\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileDensity\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_density import UnitDensity\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_create_file_density():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileDensity, Error]] = create_file_density.sync(\n client=client,\n material_mass=3.14,\n material_mass_unit=UnitMass.G,\n output_unit=UnitDensity.LB_FT3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileDensity = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_density.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ai-prompts~1{id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_ai_prompt\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPrompt, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_prompt():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPrompt, Error]] = get_ai_prompt.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPrompt = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_ai_prompt.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1auth~1email/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, VerificationToken\nfrom kittycad.models.email_authentication_form import EmailAuthenticationForm\nfrom kittycad.types import Response\n\n\ndef example_auth_email():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[VerificationToken, Error]] = auth_email.sync(\n client=client,\n body=EmailAuthenticationForm(\n email=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: VerificationToken = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1pressure~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_pressure_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPressureConversion\nfrom kittycad.models.unit_pressure import UnitPressure\nfrom kittycad.types import Response\n\n\ndef example_get_pressure_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPressureConversion, Error]\n ] = get_pressure_unit_conversion.sync(\n client=client,\n input_unit=UnitPressure.ATMOSPHERES,\n output_unit=UnitPressure.ATMOSPHERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPressureConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_pressure_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1apps~1github~1webhook/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_webhook\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_webhook():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_webhook.sync(\n client=client,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_webhook.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1users/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[UserResultsPage, Error]] = list_users.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UserResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1openai~1openapi.json/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from kittycad.api.meta import get_openai_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_openai_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_openai_schema.sync(\n client=client,\n )\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_openai_schema.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-tokens/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import list_api_tokens_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiTokenResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_tokens_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiTokenResultsPage, Error]\n ] = list_api_tokens_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiTokenResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-tokens/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import create_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_create_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = create_api_token_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.create_api_token_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1invoices/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_invoices_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Invoice\nfrom kittycad.types import Response\n\n\ndef example_list_invoices_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[List[Invoice], Error]] = list_invoices_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[Invoice] = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_invoices_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1api-call-metrics/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_metrics\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallQueryGroup, Error\nfrom kittycad.models.api_call_query_group_by import ApiCallQueryGroupBy\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_metrics():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[ApiCallQueryGroup], Error]\n ] = get_api_call_metrics.sync(\n client=client,\n group_by=ApiCallQueryGroupBy.EMAIL,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[ApiCallQueryGroup] = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_metrics.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ai~1text-to-cad~1{output_format}/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.text_to_cad_create_body import TextToCadCreateBody\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[TextToCad, Error]] = create_text_to_cad.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n body=TextToCadCreateBody(\n prompt=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from kittycad.api.meta import get_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_schema.sync(\n client=client,\n )\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1onboarding/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_onboarding_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Onboarding\nfrom kittycad.types import Response\n\n\ndef example_get_user_onboarding_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Onboarding, Error]] = get_user_onboarding_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Onboarding = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_power_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPowerConversion\nfrom kittycad.models.unit_power import UnitPower\nfrom kittycad.types import Response\n\n\ndef example_get_power_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPowerConversion, Error]\n ] = get_power_unit_conversion.sync(\n client=client,\n input_unit=UnitPower.BTU_PER_MINUTE,\n output_unit=UnitPower.BTU_PER_MINUTE,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPowerConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_power_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1tax/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import validate_customer_tax_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_validate_customer_tax_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = validate_customer_tax_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.validate_customer_tax_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1internal~1discord~1api-token~1{discord_id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import internal_get_api_token_for_discord_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_internal_get_api_token_for_discord_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiToken, Error]\n ] = internal_get_api_token_for_discord_user.sync(\n client=client,\n discord_id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.internal_get_api_token_for_discord_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1auth~1email~1callback/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_auth_email_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = auth_email_callback.sync(\n client=client,\n email=\"<string>\",\n token=\"<string>\",\n callback_url=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email_callback.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-tokens~1{token}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import get_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = get_api_token_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.get_api_token_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-tokens~1{token}/delete/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import delete_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_api_token_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.delete_api_token_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1file~1execute~1{lang}/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.executor import create_file_execution\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CodeOutput, Error\nfrom kittycad.models.code_language import CodeLanguage\nfrom kittycad.types import Response\n\n\ndef example_create_file_execution():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[CodeOutput, Error]] = create_file_execution.sync(\n client=client,\n lang=CodeLanguage.GO,\n output=None, # Optional[str]\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: CodeOutput = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_file_execution.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ai-prompts/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_ai_prompts\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPromptResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_ai_prompts():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPromptResultsPage, Error]] = list_ai_prompts.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPromptResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_ai_prompts.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1api-calls~1{id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1_meta~1info/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_metadata\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Metadata\nfrom kittycad.types import Response\n\n\ndef example_get_metadata():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Metadata, Error]] = get_metadata.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Metadata = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1text-to-cad/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_text_to_cad_models_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCadResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_text_to_cad_models_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCadResultsPage, Error]\n ] = list_text_to_cad_models_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCadResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_text_to_cad_models_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1session~1{token}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_session_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Session\nfrom kittycad.types import Response\n\n\ndef example_get_session_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Session, Error]] = get_session_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Session = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_session_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1users~1{id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1async~1operations~1{id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_async_operation\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n Error,\n FileCenterOfMass,\n FileConversion,\n FileDensity,\n FileMass,\n FileSurfaceArea,\n FileVolume,\n TextToCad,\n)\nfrom kittycad.types import Response\n\n\ndef example_get_async_operation():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n Error,\n ]\n ] = get_async_operation.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n ] = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_async_operation.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1temperature~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1file~1center-of-mass/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_center_of_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileCenterOfMass\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_create_file_center_of_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileCenterOfMass, Error]\n ] = create_file_center_of_mass.sync(\n client=client,\n output_unit=UnitLength.CM,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileCenterOfMass = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_center_of_mass.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1energy~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_energy_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitEnergyConversion\nfrom kittycad.models.unit_energy import UnitEnergy\nfrom kittycad.types import Response\n\n\ndef example_get_energy_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitEnergyConversion, Error]\n ] = get_energy_unit_conversion.sync(\n client=client,\n input_unit=UnitEnergy.BTU,\n output_unit=UnitEnergy.BTU,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitEnergyConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_energy_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_angle_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAngleConversion\nfrom kittycad.models.unit_angle import UnitAngle\nfrom kittycad.types import Response\n\n\ndef example_get_angle_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAngleConversion, Error]\n ] = get_angle_unit_conversion.sync(\n client=client,\n input_unit=UnitAngle.DEGREES,\n output_unit=UnitAngle.DEGREES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAngleConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_angle_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -521,66 +553,34 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1api-calls~1{id}/get/x-python",
|
"path": "/paths/~1users-extended~1{id}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_extended.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ws~1executor~1term/get/x-python",
|
"path": "/paths/~1unit~1conversion~1area~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from kittycad.api.executor import create_executor_term\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_create_executor_term():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = create_executor_term.sync(\n client=client,\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_area_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAreaConversion\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_get_area_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAreaConversion, Error]\n ] = get_area_unit_conversion.sync(\n client=client,\n input_unit=UnitArea.CM2,\n output_unit=UnitArea.CM2,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAreaConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_executor_term.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_area_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1api-calls~1{id}/get/x-python",
|
"path": "/paths/~1unit~1conversion~1force~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_force_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitForceConversion\nfrom kittycad.models.unit_force import UnitForce\nfrom kittycad.types import Response\n\n\ndef example_get_force_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitForceConversion, Error]\n ] = get_force_unit_conversion.sync(\n client=client,\n input_unit=UnitForce.DYNES,\n output_unit=UnitForce.DYNES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitForceConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_force_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1torque~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1user~1front-hash/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_torque_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTorqueConversion\nfrom kittycad.models.unit_torque import UnitTorque\nfrom kittycad.types import Response\n\n\ndef example_get_torque_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTorqueConversion, Error]\n ] = get_torque_unit_conversion.sync(\n client=client,\n input_unit=UnitTorque.NEWTON_METRES,\n output_unit=UnitTorque.NEWTON_METRES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTorqueConversion = result\n print(body)\n",
|
"example": "from kittycad.api.users import get_user_front_hash_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_user_front_hash_self():\n # Create our client.\n client = ClientFromEnv()\n\n get_user_front_hash_self.sync(\n client=client,\n )\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_torque_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_front_hash_self.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1_meta~1info/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_metadata\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Metadata\nfrom kittycad.types import Response\n\n\ndef example_get_metadata():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Metadata, Error]] = get_metadata.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Metadata = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1ws~1modeling~1commands/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, WebSocketResponse\nfrom kittycad.types import Response\n\n\ndef example_modeling_commands_ws():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = modeling_commands_ws.sync(\n client=client,\n fps=10,\n unlocked_framerate=False,\n video_res_height=10,\n video_res_width=10,\n webrtc=False,\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.modeling_commands_ws.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1apps~1github~1consent/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1extended/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_self_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_self_extended.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self_extended.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -45,8 +45,10 @@ class AiPluginApi:
|
|||||||
type: Union[Unset, AiPluginApiType]
|
type: Union[Unset, AiPluginApiType]
|
||||||
if isinstance(_type, Unset):
|
if isinstance(_type, Unset):
|
||||||
type = UNSET
|
type = UNSET
|
||||||
|
if _type is None:
|
||||||
|
type = UNSET
|
||||||
else:
|
else:
|
||||||
type = _type # type: ignore[arg-type]
|
type = _type
|
||||||
|
|
||||||
url = d.pop("url", UNSET)
|
url = d.pop("url", UNSET)
|
||||||
|
|
||||||
|
@ -41,15 +41,19 @@ class AiPluginAuth:
|
|||||||
authorization_type: Union[Unset, AiPluginHttpAuthType]
|
authorization_type: Union[Unset, AiPluginHttpAuthType]
|
||||||
if isinstance(_authorization_type, Unset):
|
if isinstance(_authorization_type, Unset):
|
||||||
authorization_type = UNSET
|
authorization_type = UNSET
|
||||||
|
if _authorization_type is None:
|
||||||
|
authorization_type = UNSET
|
||||||
else:
|
else:
|
||||||
authorization_type = _authorization_type # type: ignore[arg-type]
|
authorization_type = _authorization_type
|
||||||
|
|
||||||
_type = d.pop("type", UNSET)
|
_type = d.pop("type", UNSET)
|
||||||
type: Union[Unset, AiPluginAuthType]
|
type: Union[Unset, AiPluginAuthType]
|
||||||
if isinstance(_type, Unset):
|
if isinstance(_type, Unset):
|
||||||
type = UNSET
|
type = UNSET
|
||||||
|
if _type is None:
|
||||||
|
type = UNSET
|
||||||
else:
|
else:
|
||||||
type = _type # type: ignore[arg-type]
|
type = _type
|
||||||
|
|
||||||
ai_plugin_auth = cls(
|
ai_plugin_auth = cls(
|
||||||
authorization_type=authorization_type,
|
authorization_type=authorization_type,
|
||||||
|
@ -76,15 +76,19 @@ class AiPluginManifest:
|
|||||||
api: Union[Unset, AiPluginApi]
|
api: Union[Unset, AiPluginApi]
|
||||||
if isinstance(_api, Unset):
|
if isinstance(_api, Unset):
|
||||||
api = UNSET
|
api = UNSET
|
||||||
|
if _api is None:
|
||||||
|
api = UNSET
|
||||||
else:
|
else:
|
||||||
api = _api # type: ignore[arg-type]
|
api = AiPluginApi.from_dict(_api)
|
||||||
|
|
||||||
_auth = d.pop("auth", UNSET)
|
_auth = d.pop("auth", UNSET)
|
||||||
auth: Union[Unset, AiPluginAuth]
|
auth: Union[Unset, AiPluginAuth]
|
||||||
if isinstance(_auth, Unset):
|
if isinstance(_auth, Unset):
|
||||||
auth = UNSET
|
auth = UNSET
|
||||||
|
if _auth is None:
|
||||||
|
auth = UNSET
|
||||||
else:
|
else:
|
||||||
auth = _auth # type: ignore[arg-type]
|
auth = AiPluginAuth.from_dict(_auth)
|
||||||
|
|
||||||
contact_email = d.pop("contact_email", UNSET)
|
contact_email = d.pop("contact_email", UNSET)
|
||||||
|
|
||||||
|
@ -120,15 +120,19 @@ class AiPrompt:
|
|||||||
feedback: Union[Unset, AiFeedback]
|
feedback: Union[Unset, AiFeedback]
|
||||||
if isinstance(_feedback, Unset):
|
if isinstance(_feedback, Unset):
|
||||||
feedback = UNSET
|
feedback = UNSET
|
||||||
|
if _feedback is None:
|
||||||
|
feedback = UNSET
|
||||||
else:
|
else:
|
||||||
feedback = _feedback # type: ignore[arg-type]
|
feedback = _feedback
|
||||||
|
|
||||||
_id = d.pop("id", UNSET)
|
_id = d.pop("id", UNSET)
|
||||||
id: Union[Unset, UuidBinary]
|
id: Union[Unset, UuidBinary]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
metadata = d.pop("metadata", UNSET)
|
metadata = d.pop("metadata", UNSET)
|
||||||
model_version = d.pop("model_version", UNSET)
|
model_version = d.pop("model_version", UNSET)
|
||||||
@ -148,15 +152,19 @@ class AiPrompt:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_type = d.pop("type", UNSET)
|
_type = d.pop("type", UNSET)
|
||||||
type: Union[Unset, AiPromptType]
|
type: Union[Unset, AiPromptType]
|
||||||
if isinstance(_type, Unset):
|
if isinstance(_type, Unset):
|
||||||
type = UNSET
|
type = UNSET
|
||||||
|
if _type is None:
|
||||||
|
type = UNSET
|
||||||
else:
|
else:
|
||||||
type = _type # type: ignore[arg-type]
|
type = _type
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -169,8 +177,10 @@ class AiPrompt:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
ai_prompt = cls(
|
ai_prompt = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -39,8 +39,10 @@ class Angle:
|
|||||||
unit: Union[Unset, UnitAngle]
|
unit: Union[Unset, UnitAngle]
|
||||||
if isinstance(_unit, Unset):
|
if isinstance(_unit, Unset):
|
||||||
unit = UNSET
|
unit = UNSET
|
||||||
|
if _unit is None:
|
||||||
|
unit = UNSET
|
||||||
else:
|
else:
|
||||||
unit = _unit # type: ignore[arg-type]
|
unit = _unit
|
||||||
|
|
||||||
value = d.pop("value", UNSET)
|
value = d.pop("value", UNSET)
|
||||||
|
|
||||||
|
@ -40,15 +40,19 @@ class AnnotationLineEndOptions:
|
|||||||
end: Union[Unset, AnnotationLineEnd]
|
end: Union[Unset, AnnotationLineEnd]
|
||||||
if isinstance(_end, Unset):
|
if isinstance(_end, Unset):
|
||||||
end = UNSET
|
end = UNSET
|
||||||
|
if _end is None:
|
||||||
|
end = UNSET
|
||||||
else:
|
else:
|
||||||
end = _end # type: ignore[arg-type]
|
end = _end
|
||||||
|
|
||||||
_start = d.pop("start", UNSET)
|
_start = d.pop("start", UNSET)
|
||||||
start: Union[Unset, AnnotationLineEnd]
|
start: Union[Unset, AnnotationLineEnd]
|
||||||
if isinstance(_start, Unset):
|
if isinstance(_start, Unset):
|
||||||
start = UNSET
|
start = UNSET
|
||||||
|
if _start is None:
|
||||||
|
start = UNSET
|
||||||
else:
|
else:
|
||||||
start = _start # type: ignore[arg-type]
|
start = _start
|
||||||
|
|
||||||
annotation_line_end_options = cls(
|
annotation_line_end_options = cls(
|
||||||
end=end,
|
end=end,
|
||||||
|
@ -57,15 +57,19 @@ class AnnotationOptions:
|
|||||||
color: Union[Unset, Color]
|
color: Union[Unset, Color]
|
||||||
if isinstance(_color, Unset):
|
if isinstance(_color, Unset):
|
||||||
color = UNSET
|
color = UNSET
|
||||||
|
if _color is None:
|
||||||
|
color = UNSET
|
||||||
else:
|
else:
|
||||||
color = _color # type: ignore[arg-type]
|
color = Color.from_dict(_color)
|
||||||
|
|
||||||
_line_ends = d.pop("line_ends", UNSET)
|
_line_ends = d.pop("line_ends", UNSET)
|
||||||
line_ends: Union[Unset, AnnotationLineEndOptions]
|
line_ends: Union[Unset, AnnotationLineEndOptions]
|
||||||
if isinstance(_line_ends, Unset):
|
if isinstance(_line_ends, Unset):
|
||||||
line_ends = UNSET
|
line_ends = UNSET
|
||||||
|
if _line_ends is None:
|
||||||
|
line_ends = UNSET
|
||||||
else:
|
else:
|
||||||
line_ends = _line_ends # type: ignore[arg-type]
|
line_ends = AnnotationLineEndOptions.from_dict(_line_ends)
|
||||||
|
|
||||||
line_width = d.pop("line_width", UNSET)
|
line_width = d.pop("line_width", UNSET)
|
||||||
|
|
||||||
@ -73,15 +77,19 @@ class AnnotationOptions:
|
|||||||
position: Union[Unset, Point3d]
|
position: Union[Unset, Point3d]
|
||||||
if isinstance(_position, Unset):
|
if isinstance(_position, Unset):
|
||||||
position = UNSET
|
position = UNSET
|
||||||
|
if _position is None:
|
||||||
|
position = UNSET
|
||||||
else:
|
else:
|
||||||
position = _position # type: ignore[arg-type]
|
position = Point3d.from_dict(_position)
|
||||||
|
|
||||||
_text = d.pop("text", UNSET)
|
_text = d.pop("text", UNSET)
|
||||||
text: Union[Unset, AnnotationTextOptions]
|
text: Union[Unset, AnnotationTextOptions]
|
||||||
if isinstance(_text, Unset):
|
if isinstance(_text, Unset):
|
||||||
text = UNSET
|
text = UNSET
|
||||||
|
if _text is None:
|
||||||
|
text = UNSET
|
||||||
else:
|
else:
|
||||||
text = _text # type: ignore[arg-type]
|
text = AnnotationTextOptions.from_dict(_text)
|
||||||
|
|
||||||
annotation_options = cls(
|
annotation_options = cls(
|
||||||
color=color,
|
color=color,
|
||||||
|
@ -53,15 +53,19 @@ class AnnotationTextOptions:
|
|||||||
x: Union[Unset, AnnotationTextAlignmentX]
|
x: Union[Unset, AnnotationTextAlignmentX]
|
||||||
if isinstance(_x, Unset):
|
if isinstance(_x, Unset):
|
||||||
x = UNSET
|
x = UNSET
|
||||||
|
if _x is None:
|
||||||
|
x = UNSET
|
||||||
else:
|
else:
|
||||||
x = _x # type: ignore[arg-type]
|
x = _x
|
||||||
|
|
||||||
_y = d.pop("y", UNSET)
|
_y = d.pop("y", UNSET)
|
||||||
y: Union[Unset, AnnotationTextAlignmentY]
|
y: Union[Unset, AnnotationTextAlignmentY]
|
||||||
if isinstance(_y, Unset):
|
if isinstance(_y, Unset):
|
||||||
y = UNSET
|
y = UNSET
|
||||||
|
if _y is None:
|
||||||
|
y = UNSET
|
||||||
else:
|
else:
|
||||||
y = _y # type: ignore[arg-type]
|
y = _y
|
||||||
|
|
||||||
annotation_text_options = cls(
|
annotation_text_options = cls(
|
||||||
point_size=point_size,
|
point_size=point_size,
|
||||||
|
@ -152,8 +152,10 @@ class ApiCallWithPrice:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
ip_address = d.pop("ip_address", UNSET)
|
ip_address = d.pop("ip_address", UNSET)
|
||||||
|
|
||||||
@ -163,8 +165,10 @@ class ApiCallWithPrice:
|
|||||||
method: Union[Unset, Method]
|
method: Union[Unset, Method]
|
||||||
if isinstance(_method, Unset):
|
if isinstance(_method, Unset):
|
||||||
method = UNSET
|
method = UNSET
|
||||||
|
if _method is None:
|
||||||
|
method = UNSET
|
||||||
else:
|
else:
|
||||||
method = _method # type: ignore[arg-type]
|
method = _method
|
||||||
|
|
||||||
minutes = d.pop("minutes", UNSET)
|
minutes = d.pop("minutes", UNSET)
|
||||||
|
|
||||||
@ -193,8 +197,10 @@ class ApiCallWithPrice:
|
|||||||
token: Union[Unset, Uuid]
|
token: Union[Unset, Uuid]
|
||||||
if isinstance(_token, Unset):
|
if isinstance(_token, Unset):
|
||||||
token = UNSET
|
token = UNSET
|
||||||
|
if _token is None:
|
||||||
|
token = UNSET
|
||||||
else:
|
else:
|
||||||
token = _token # type: ignore[arg-type]
|
token = _token
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -209,8 +215,10 @@ class ApiCallWithPrice:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
api_call_with_price = cls(
|
api_call_with_price = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -39,8 +39,10 @@ class ApiError:
|
|||||||
error_code: Union[Unset, ErrorCode]
|
error_code: Union[Unset, ErrorCode]
|
||||||
if isinstance(_error_code, Unset):
|
if isinstance(_error_code, Unset):
|
||||||
error_code = UNSET
|
error_code = UNSET
|
||||||
|
if _error_code is None:
|
||||||
|
error_code = UNSET
|
||||||
else:
|
else:
|
||||||
error_code = _error_code # type: ignore[arg-type]
|
error_code = _error_code
|
||||||
|
|
||||||
message = d.pop("message", UNSET)
|
message = d.pop("message", UNSET)
|
||||||
|
|
||||||
|
@ -69,8 +69,10 @@ class ApiToken:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
is_valid = d.pop("is_valid", UNSET)
|
is_valid = d.pop("is_valid", UNSET)
|
||||||
|
|
||||||
@ -78,8 +80,10 @@ class ApiToken:
|
|||||||
token: Union[Unset, Uuid]
|
token: Union[Unset, Uuid]
|
||||||
if isinstance(_token, Unset):
|
if isinstance(_token, Unset):
|
||||||
token = UNSET
|
token = UNSET
|
||||||
|
if _token is None:
|
||||||
|
token = UNSET
|
||||||
else:
|
else:
|
||||||
token = _token # type: ignore[arg-type]
|
token = _token
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -92,8 +96,10 @@ class ApiToken:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
api_token = cls(
|
api_token = cls(
|
||||||
created_at=created_at,
|
created_at=created_at,
|
||||||
|
@ -108,8 +108,10 @@ class AsyncApiCall:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
@ -124,15 +126,19 @@ class AsyncApiCall:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_type = d.pop("type", UNSET)
|
_type = d.pop("type", UNSET)
|
||||||
type: Union[Unset, AsyncApiCallType]
|
type: Union[Unset, AsyncApiCallType]
|
||||||
if isinstance(_type, Unset):
|
if isinstance(_type, Unset):
|
||||||
type = UNSET
|
type = UNSET
|
||||||
|
if _type is None:
|
||||||
|
type = UNSET
|
||||||
else:
|
else:
|
||||||
type = _type # type: ignore[arg-type]
|
type = _type
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -145,8 +151,10 @@ class AsyncApiCall:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
worker = d.pop("worker", UNSET)
|
worker = d.pop("worker", UNSET)
|
||||||
|
|
||||||
|
@ -134,22 +134,28 @@ class file_conversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_format = d.pop("output_format", UNSET)
|
_output_format = d.pop("output_format", UNSET)
|
||||||
output_format: Union[Unset, FileExportFormat]
|
output_format: Union[Unset, FileExportFormat]
|
||||||
if isinstance(_output_format, Unset):
|
if isinstance(_output_format, Unset):
|
||||||
output_format = UNSET
|
output_format = UNSET
|
||||||
|
if _output_format is None:
|
||||||
|
output_format = UNSET
|
||||||
else:
|
else:
|
||||||
output_format = _output_format # type: ignore[arg-type]
|
output_format = _output_format
|
||||||
|
|
||||||
_output_format_options = d.pop("output_format_options", UNSET)
|
_output_format_options = d.pop("output_format_options", UNSET)
|
||||||
output_format_options: Union[Unset, OutputFormat]
|
output_format_options: Union[Unset, OutputFormat]
|
||||||
if isinstance(_output_format_options, Unset):
|
if isinstance(_output_format_options, Unset):
|
||||||
output_format_options = UNSET
|
output_format_options = UNSET
|
||||||
|
if _output_format_options is None:
|
||||||
|
output_format_options = UNSET
|
||||||
else:
|
else:
|
||||||
output_format_options = _output_format_options # type: ignore[arg-type]
|
output_format_options = OutputFormat.from_dict(_output_format_options)
|
||||||
|
|
||||||
_outputs = d.pop("outputs", UNSET)
|
_outputs = d.pop("outputs", UNSET)
|
||||||
if isinstance(_outputs, Unset):
|
if isinstance(_outputs, Unset):
|
||||||
@ -164,15 +170,19 @@ class file_conversion:
|
|||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_src_format_options = d.pop("src_format_options", UNSET)
|
_src_format_options = d.pop("src_format_options", UNSET)
|
||||||
src_format_options: Union[Unset, InputFormat]
|
src_format_options: Union[Unset, InputFormat]
|
||||||
if isinstance(_src_format_options, Unset):
|
if isinstance(_src_format_options, Unset):
|
||||||
src_format_options = UNSET
|
src_format_options = UNSET
|
||||||
|
if _src_format_options is None:
|
||||||
|
src_format_options = UNSET
|
||||||
else:
|
else:
|
||||||
src_format_options = _src_format_options # type: ignore[arg-type]
|
src_format_options = InputFormat.from_dict(_src_format_options)
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -185,8 +195,10 @@ class file_conversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -201,8 +213,10 @@ class file_conversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_conversion = cls(
|
file_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
@ -325,8 +339,10 @@ class file_center_of_mass:
|
|||||||
center_of_mass: Union[Unset, Point3d]
|
center_of_mass: Union[Unset, Point3d]
|
||||||
if isinstance(_center_of_mass, Unset):
|
if isinstance(_center_of_mass, Unset):
|
||||||
center_of_mass = UNSET
|
center_of_mass = UNSET
|
||||||
|
if _center_of_mass is None:
|
||||||
|
center_of_mass = UNSET
|
||||||
else:
|
else:
|
||||||
center_of_mass = _center_of_mass # type: ignore[arg-type]
|
center_of_mass = Point3d.from_dict(_center_of_mass)
|
||||||
|
|
||||||
_completed_at = d.pop("completed_at", UNSET)
|
_completed_at = d.pop("completed_at", UNSET)
|
||||||
completed_at: Union[Unset, datetime.datetime]
|
completed_at: Union[Unset, datetime.datetime]
|
||||||
@ -348,22 +364,28 @@ class file_center_of_mass:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitLength]
|
output_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -376,8 +398,10 @@ class file_center_of_mass:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -392,8 +416,10 @@ class file_center_of_mass:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_center_of_mass = cls(
|
file_center_of_mass = cls(
|
||||||
center_of_mass=center_of_mass,
|
center_of_mass=center_of_mass,
|
||||||
@ -538,8 +564,10 @@ class file_mass:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
mass = d.pop("mass", UNSET)
|
mass = d.pop("mass", UNSET)
|
||||||
|
|
||||||
@ -549,22 +577,28 @@ class file_mass:
|
|||||||
material_density_unit: Union[Unset, UnitDensity]
|
material_density_unit: Union[Unset, UnitDensity]
|
||||||
if isinstance(_material_density_unit, Unset):
|
if isinstance(_material_density_unit, Unset):
|
||||||
material_density_unit = UNSET
|
material_density_unit = UNSET
|
||||||
|
if _material_density_unit is None:
|
||||||
|
material_density_unit = UNSET
|
||||||
else:
|
else:
|
||||||
material_density_unit = _material_density_unit # type: ignore[arg-type]
|
material_density_unit = _material_density_unit
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitMass]
|
output_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -577,8 +611,10 @@ class file_mass:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -593,8 +629,10 @@ class file_mass:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_mass = cls(
|
file_mass = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
@ -732,22 +770,28 @@ class file_volume:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitVolume]
|
output_unit: Union[Unset, UnitVolume]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -760,8 +804,10 @@ class file_volume:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -776,8 +822,10 @@ class file_volume:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
volume = d.pop("volume", UNSET)
|
volume = d.pop("volume", UNSET)
|
||||||
|
|
||||||
@ -926,8 +974,10 @@ class file_density:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
material_mass = d.pop("material_mass", UNSET)
|
material_mass = d.pop("material_mass", UNSET)
|
||||||
|
|
||||||
@ -935,22 +985,28 @@ class file_density:
|
|||||||
material_mass_unit: Union[Unset, UnitMass]
|
material_mass_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_material_mass_unit, Unset):
|
if isinstance(_material_mass_unit, Unset):
|
||||||
material_mass_unit = UNSET
|
material_mass_unit = UNSET
|
||||||
|
if _material_mass_unit is None:
|
||||||
|
material_mass_unit = UNSET
|
||||||
else:
|
else:
|
||||||
material_mass_unit = _material_mass_unit # type: ignore[arg-type]
|
material_mass_unit = _material_mass_unit
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitDensity]
|
output_unit: Union[Unset, UnitDensity]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -963,8 +1019,10 @@ class file_density:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -979,8 +1037,10 @@ class file_density:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_density = cls(
|
file_density = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
@ -1118,22 +1178,28 @@ class file_surface_area:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitArea]
|
output_unit: Union[Unset, UnitArea]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -1146,8 +1212,10 @@ class file_surface_area:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
surface_area = d.pop("surface_area", UNSET)
|
surface_area = d.pop("surface_area", UNSET)
|
||||||
|
|
||||||
@ -1164,8 +1232,10 @@ class file_surface_area:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_surface_area = cls(
|
file_surface_area = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
@ -1314,15 +1384,19 @@ class text_to_cad:
|
|||||||
feedback: Union[Unset, AiFeedback]
|
feedback: Union[Unset, AiFeedback]
|
||||||
if isinstance(_feedback, Unset):
|
if isinstance(_feedback, Unset):
|
||||||
feedback = UNSET
|
feedback = UNSET
|
||||||
|
if _feedback is None:
|
||||||
|
feedback = UNSET
|
||||||
else:
|
else:
|
||||||
feedback = _feedback # type: ignore[arg-type]
|
feedback = _feedback
|
||||||
|
|
||||||
_id = d.pop("id", UNSET)
|
_id = d.pop("id", UNSET)
|
||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
model_version = d.pop("model_version", UNSET)
|
model_version = d.pop("model_version", UNSET)
|
||||||
|
|
||||||
@ -1330,8 +1404,10 @@ class text_to_cad:
|
|||||||
output_format: Union[Unset, FileExportFormat]
|
output_format: Union[Unset, FileExportFormat]
|
||||||
if isinstance(_output_format, Unset):
|
if isinstance(_output_format, Unset):
|
||||||
output_format = UNSET
|
output_format = UNSET
|
||||||
|
if _output_format is None:
|
||||||
|
output_format = UNSET
|
||||||
else:
|
else:
|
||||||
output_format = _output_format # type: ignore[arg-type]
|
output_format = _output_format
|
||||||
|
|
||||||
_outputs = d.pop("outputs", UNSET)
|
_outputs = d.pop("outputs", UNSET)
|
||||||
if isinstance(_outputs, Unset):
|
if isinstance(_outputs, Unset):
|
||||||
@ -1355,8 +1431,10 @@ class text_to_cad:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1371,8 +1449,10 @@ class text_to_cad:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
text_to_cad = cls(
|
text_to_cad = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -41,15 +41,19 @@ class AxisDirectionPair:
|
|||||||
axis: Union[Unset, Axis]
|
axis: Union[Unset, Axis]
|
||||||
if isinstance(_axis, Unset):
|
if isinstance(_axis, Unset):
|
||||||
axis = UNSET
|
axis = UNSET
|
||||||
|
if _axis is None:
|
||||||
|
axis = UNSET
|
||||||
else:
|
else:
|
||||||
axis = _axis # type: ignore[arg-type]
|
axis = _axis
|
||||||
|
|
||||||
_direction = d.pop("direction", UNSET)
|
_direction = d.pop("direction", UNSET)
|
||||||
direction: Union[Unset, Direction]
|
direction: Union[Unset, Direction]
|
||||||
if isinstance(_direction, Unset):
|
if isinstance(_direction, Unset):
|
||||||
direction = UNSET
|
direction = UNSET
|
||||||
|
if _direction is None:
|
||||||
|
direction = UNSET
|
||||||
else:
|
else:
|
||||||
direction = _direction # type: ignore[arg-type]
|
direction = _direction
|
||||||
|
|
||||||
axis_direction_pair = cls(
|
axis_direction_pair = cls(
|
||||||
axis=axis,
|
axis=axis,
|
||||||
|
@ -43,8 +43,10 @@ class BillingInfo:
|
|||||||
address: Union[Unset, NewAddress]
|
address: Union[Unset, NewAddress]
|
||||||
if isinstance(_address, Unset):
|
if isinstance(_address, Unset):
|
||||||
address = UNSET
|
address = UNSET
|
||||||
|
if _address is None:
|
||||||
|
address = UNSET
|
||||||
else:
|
else:
|
||||||
address = _address # type: ignore[arg-type]
|
address = NewAddress.from_dict(_address)
|
||||||
|
|
||||||
name = d.pop("name", UNSET)
|
name = d.pop("name", UNSET)
|
||||||
|
|
||||||
|
@ -65,8 +65,10 @@ class CardDetails:
|
|||||||
checks: Union[Unset, PaymentMethodCardChecks]
|
checks: Union[Unset, PaymentMethodCardChecks]
|
||||||
if isinstance(_checks, Unset):
|
if isinstance(_checks, Unset):
|
||||||
checks = UNSET
|
checks = UNSET
|
||||||
|
if _checks is None:
|
||||||
|
checks = UNSET
|
||||||
else:
|
else:
|
||||||
checks = _checks # type: ignore[arg-type]
|
checks = PaymentMethodCardChecks.from_dict(_checks)
|
||||||
|
|
||||||
country = d.pop("country", UNSET)
|
country = d.pop("country", UNSET)
|
||||||
|
|
||||||
|
@ -41,15 +41,19 @@ class CenterOfMass:
|
|||||||
center_of_mass: Union[Unset, Point3d]
|
center_of_mass: Union[Unset, Point3d]
|
||||||
if isinstance(_center_of_mass, Unset):
|
if isinstance(_center_of_mass, Unset):
|
||||||
center_of_mass = UNSET
|
center_of_mass = UNSET
|
||||||
|
if _center_of_mass is None:
|
||||||
|
center_of_mass = UNSET
|
||||||
else:
|
else:
|
||||||
center_of_mass = _center_of_mass # type: ignore[arg-type]
|
center_of_mass = Point3d.from_dict(_center_of_mass)
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitLength]
|
output_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
center_of_mass = cls(
|
center_of_mass = cls(
|
||||||
center_of_mass=center_of_mass,
|
center_of_mass=center_of_mass,
|
||||||
|
@ -234,8 +234,10 @@ class Connection:
|
|||||||
cluster: Union[Unset, Cluster]
|
cluster: Union[Unset, Cluster]
|
||||||
if isinstance(_cluster, Unset):
|
if isinstance(_cluster, Unset):
|
||||||
cluster = UNSET
|
cluster = UNSET
|
||||||
|
if _cluster is None:
|
||||||
|
cluster = UNSET
|
||||||
else:
|
else:
|
||||||
cluster = _cluster # type: ignore[arg-type]
|
cluster = Cluster.from_dict(_cluster)
|
||||||
|
|
||||||
_config_load_time = d.pop("config_load_time", UNSET)
|
_config_load_time = d.pop("config_load_time", UNSET)
|
||||||
config_load_time: Union[Unset, datetime.datetime]
|
config_load_time: Union[Unset, datetime.datetime]
|
||||||
@ -254,8 +256,10 @@ class Connection:
|
|||||||
gateway: Union[Unset, Gateway]
|
gateway: Union[Unset, Gateway]
|
||||||
if isinstance(_gateway, Unset):
|
if isinstance(_gateway, Unset):
|
||||||
gateway = UNSET
|
gateway = UNSET
|
||||||
|
if _gateway is None:
|
||||||
|
gateway = UNSET
|
||||||
else:
|
else:
|
||||||
gateway = _gateway # type: ignore[arg-type]
|
gateway = Gateway.from_dict(_gateway)
|
||||||
|
|
||||||
git_commit = d.pop("git_commit", UNSET)
|
git_commit = d.pop("git_commit", UNSET)
|
||||||
|
|
||||||
@ -283,15 +287,19 @@ class Connection:
|
|||||||
jetstream: Union[Unset, Jetstream]
|
jetstream: Union[Unset, Jetstream]
|
||||||
if isinstance(_jetstream, Unset):
|
if isinstance(_jetstream, Unset):
|
||||||
jetstream = UNSET
|
jetstream = UNSET
|
||||||
|
if _jetstream is None:
|
||||||
|
jetstream = UNSET
|
||||||
else:
|
else:
|
||||||
jetstream = _jetstream # type: ignore[arg-type]
|
jetstream = Jetstream.from_dict(_jetstream)
|
||||||
|
|
||||||
_leaf = d.pop("leaf", UNSET)
|
_leaf = d.pop("leaf", UNSET)
|
||||||
leaf: Union[Unset, LeafNode]
|
leaf: Union[Unset, LeafNode]
|
||||||
if isinstance(_leaf, Unset):
|
if isinstance(_leaf, Unset):
|
||||||
leaf = UNSET
|
leaf = UNSET
|
||||||
|
if _leaf is None:
|
||||||
|
leaf = UNSET
|
||||||
else:
|
else:
|
||||||
leaf = _leaf # type: ignore[arg-type]
|
leaf = LeafNode.from_dict(_leaf)
|
||||||
|
|
||||||
leafnodes = d.pop("leafnodes", UNSET)
|
leafnodes = d.pop("leafnodes", UNSET)
|
||||||
|
|
||||||
|
@ -40,15 +40,19 @@ class CurveGetEndPoints:
|
|||||||
end: Union[Unset, Point3d]
|
end: Union[Unset, Point3d]
|
||||||
if isinstance(_end, Unset):
|
if isinstance(_end, Unset):
|
||||||
end = UNSET
|
end = UNSET
|
||||||
|
if _end is None:
|
||||||
|
end = UNSET
|
||||||
else:
|
else:
|
||||||
end = _end # type: ignore[arg-type]
|
end = Point3d.from_dict(_end)
|
||||||
|
|
||||||
_start = d.pop("start", UNSET)
|
_start = d.pop("start", UNSET)
|
||||||
start: Union[Unset, Point3d]
|
start: Union[Unset, Point3d]
|
||||||
if isinstance(_start, Unset):
|
if isinstance(_start, Unset):
|
||||||
start = UNSET
|
start = UNSET
|
||||||
|
if _start is None:
|
||||||
|
start = UNSET
|
||||||
else:
|
else:
|
||||||
start = _start # type: ignore[arg-type]
|
start = Point3d.from_dict(_start)
|
||||||
|
|
||||||
curve_get_end_points = cls(
|
curve_get_end_points = cls(
|
||||||
end=end,
|
end=end,
|
||||||
|
@ -35,8 +35,10 @@ class CurveGetType:
|
|||||||
curve_type: Union[Unset, CurveType]
|
curve_type: Union[Unset, CurveType]
|
||||||
if isinstance(_curve_type, Unset):
|
if isinstance(_curve_type, Unset):
|
||||||
curve_type = UNSET
|
curve_type = UNSET
|
||||||
|
if _curve_type is None:
|
||||||
|
curve_type = UNSET
|
||||||
else:
|
else:
|
||||||
curve_type = _curve_type # type: ignore[arg-type]
|
curve_type = _curve_type
|
||||||
|
|
||||||
curve_get_type = cls(
|
curve_get_type = cls(
|
||||||
curve_type=curve_type,
|
curve_type=curve_type,
|
||||||
|
@ -78,8 +78,10 @@ class Customer:
|
|||||||
address: Union[Unset, NewAddress]
|
address: Union[Unset, NewAddress]
|
||||||
if isinstance(_address, Unset):
|
if isinstance(_address, Unset):
|
||||||
address = UNSET
|
address = UNSET
|
||||||
|
if _address is None:
|
||||||
|
address = UNSET
|
||||||
else:
|
else:
|
||||||
address = _address # type: ignore[arg-type]
|
address = NewAddress.from_dict(_address)
|
||||||
|
|
||||||
balance = d.pop("balance", UNSET)
|
balance = d.pop("balance", UNSET)
|
||||||
|
|
||||||
@ -94,8 +96,10 @@ class Customer:
|
|||||||
currency: Union[Unset, Currency]
|
currency: Union[Unset, Currency]
|
||||||
if isinstance(_currency, Unset):
|
if isinstance(_currency, Unset):
|
||||||
currency = UNSET
|
currency = UNSET
|
||||||
|
if _currency is None:
|
||||||
|
currency = UNSET
|
||||||
else:
|
else:
|
||||||
currency = _currency # type: ignore[arg-type]
|
currency = _currency
|
||||||
|
|
||||||
delinquent = d.pop("delinquent", UNSET)
|
delinquent = d.pop("delinquent", UNSET)
|
||||||
|
|
||||||
|
@ -77,8 +77,10 @@ class CustomerBalance:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
monthly_credits_remaining = d.pop("monthly_credits_remaining", UNSET)
|
monthly_credits_remaining = d.pop("monthly_credits_remaining", UNSET)
|
||||||
|
|
||||||
@ -99,8 +101,10 @@ class CustomerBalance:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
customer_balance = cls(
|
customer_balance = cls(
|
||||||
created_at=created_at,
|
created_at=created_at,
|
||||||
|
@ -41,8 +41,10 @@ class Density:
|
|||||||
output_unit: Union[Unset, UnitDensity]
|
output_unit: Union[Unset, UnitDensity]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
density = cls(
|
density = cls(
|
||||||
density=density,
|
density=density,
|
||||||
|
@ -47,8 +47,10 @@ class DeviceAccessTokenRequestForm:
|
|||||||
grant_type: Union[Unset, OAuth2GrantType]
|
grant_type: Union[Unset, OAuth2GrantType]
|
||||||
if isinstance(_grant_type, Unset):
|
if isinstance(_grant_type, Unset):
|
||||||
grant_type = UNSET
|
grant_type = UNSET
|
||||||
|
if _grant_type is None:
|
||||||
|
grant_type = UNSET
|
||||||
else:
|
else:
|
||||||
grant_type = _grant_type # type: ignore[arg-type]
|
grant_type = _grant_type
|
||||||
|
|
||||||
device_access_token_request_form = cls(
|
device_access_token_request_form = cls(
|
||||||
client_id=client_id,
|
client_id=client_id,
|
||||||
|
@ -35,8 +35,10 @@ class Discount:
|
|||||||
coupon: Union[Unset, Coupon]
|
coupon: Union[Unset, Coupon]
|
||||||
if isinstance(_coupon, Unset):
|
if isinstance(_coupon, Unset):
|
||||||
coupon = UNSET
|
coupon = UNSET
|
||||||
|
if _coupon is None:
|
||||||
|
coupon = UNSET
|
||||||
else:
|
else:
|
||||||
coupon = _coupon # type: ignore[arg-type]
|
coupon = Coupon.from_dict(_coupon)
|
||||||
|
|
||||||
discount = cls(
|
discount = cls(
|
||||||
coupon=coupon,
|
coupon=coupon,
|
||||||
|
@ -131,8 +131,10 @@ class ExtendedUser:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
image = d.pop("image", UNSET)
|
image = d.pop("image", UNSET)
|
||||||
|
|
||||||
|
@ -92,8 +92,10 @@ class FileCenterOfMass:
|
|||||||
center_of_mass: Union[Unset, Point3d]
|
center_of_mass: Union[Unset, Point3d]
|
||||||
if isinstance(_center_of_mass, Unset):
|
if isinstance(_center_of_mass, Unset):
|
||||||
center_of_mass = UNSET
|
center_of_mass = UNSET
|
||||||
|
if _center_of_mass is None:
|
||||||
|
center_of_mass = UNSET
|
||||||
else:
|
else:
|
||||||
center_of_mass = _center_of_mass # type: ignore[arg-type]
|
center_of_mass = Point3d.from_dict(_center_of_mass)
|
||||||
|
|
||||||
_completed_at = d.pop("completed_at", UNSET)
|
_completed_at = d.pop("completed_at", UNSET)
|
||||||
completed_at: Union[Unset, datetime.datetime]
|
completed_at: Union[Unset, datetime.datetime]
|
||||||
@ -115,22 +117,28 @@ class FileCenterOfMass:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitLength]
|
output_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -143,8 +151,10 @@ class FileCenterOfMass:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -157,8 +167,10 @@ class FileCenterOfMass:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_center_of_mass = cls(
|
file_center_of_mass = cls(
|
||||||
center_of_mass=center_of_mass,
|
center_of_mass=center_of_mass,
|
||||||
|
@ -124,22 +124,28 @@ class FileConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_format = d.pop("output_format", UNSET)
|
_output_format = d.pop("output_format", UNSET)
|
||||||
output_format: Union[Unset, FileExportFormat]
|
output_format: Union[Unset, FileExportFormat]
|
||||||
if isinstance(_output_format, Unset):
|
if isinstance(_output_format, Unset):
|
||||||
output_format = UNSET
|
output_format = UNSET
|
||||||
|
if _output_format is None:
|
||||||
|
output_format = UNSET
|
||||||
else:
|
else:
|
||||||
output_format = _output_format # type: ignore[arg-type]
|
output_format = _output_format
|
||||||
|
|
||||||
_output_format_options = d.pop("output_format_options", UNSET)
|
_output_format_options = d.pop("output_format_options", UNSET)
|
||||||
output_format_options: Union[Unset, OutputFormat]
|
output_format_options: Union[Unset, OutputFormat]
|
||||||
if isinstance(_output_format_options, Unset):
|
if isinstance(_output_format_options, Unset):
|
||||||
output_format_options = UNSET
|
output_format_options = UNSET
|
||||||
|
if _output_format_options is None:
|
||||||
|
output_format_options = UNSET
|
||||||
else:
|
else:
|
||||||
output_format_options = _output_format_options # type: ignore[arg-type]
|
output_format_options = OutputFormat.from_dict(_output_format_options)
|
||||||
|
|
||||||
_outputs = d.pop("outputs", UNSET)
|
_outputs = d.pop("outputs", UNSET)
|
||||||
if isinstance(_outputs, Unset):
|
if isinstance(_outputs, Unset):
|
||||||
@ -154,15 +160,19 @@ class FileConversion:
|
|||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_src_format_options = d.pop("src_format_options", UNSET)
|
_src_format_options = d.pop("src_format_options", UNSET)
|
||||||
src_format_options: Union[Unset, InputFormat]
|
src_format_options: Union[Unset, InputFormat]
|
||||||
if isinstance(_src_format_options, Unset):
|
if isinstance(_src_format_options, Unset):
|
||||||
src_format_options = UNSET
|
src_format_options = UNSET
|
||||||
|
if _src_format_options is None:
|
||||||
|
src_format_options = UNSET
|
||||||
else:
|
else:
|
||||||
src_format_options = _src_format_options # type: ignore[arg-type]
|
src_format_options = InputFormat.from_dict(_src_format_options)
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -175,8 +185,10 @@ class FileConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -189,8 +201,10 @@ class FileConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_conversion = cls(
|
file_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -118,8 +118,10 @@ class FileDensity:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
material_mass = d.pop("material_mass", UNSET)
|
material_mass = d.pop("material_mass", UNSET)
|
||||||
|
|
||||||
@ -127,22 +129,28 @@ class FileDensity:
|
|||||||
material_mass_unit: Union[Unset, UnitMass]
|
material_mass_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_material_mass_unit, Unset):
|
if isinstance(_material_mass_unit, Unset):
|
||||||
material_mass_unit = UNSET
|
material_mass_unit = UNSET
|
||||||
|
if _material_mass_unit is None:
|
||||||
|
material_mass_unit = UNSET
|
||||||
else:
|
else:
|
||||||
material_mass_unit = _material_mass_unit # type: ignore[arg-type]
|
material_mass_unit = _material_mass_unit
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitDensity]
|
output_unit: Union[Unset, UnitDensity]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class FileDensity:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -169,8 +179,10 @@ class FileDensity:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_density = cls(
|
file_density = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -116,8 +116,10 @@ class FileMass:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
mass = d.pop("mass", UNSET)
|
mass = d.pop("mass", UNSET)
|
||||||
|
|
||||||
@ -127,22 +129,28 @@ class FileMass:
|
|||||||
material_density_unit: Union[Unset, UnitDensity]
|
material_density_unit: Union[Unset, UnitDensity]
|
||||||
if isinstance(_material_density_unit, Unset):
|
if isinstance(_material_density_unit, Unset):
|
||||||
material_density_unit = UNSET
|
material_density_unit = UNSET
|
||||||
|
if _material_density_unit is None:
|
||||||
|
material_density_unit = UNSET
|
||||||
else:
|
else:
|
||||||
material_density_unit = _material_density_unit # type: ignore[arg-type]
|
material_density_unit = _material_density_unit
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitMass]
|
output_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class FileMass:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -169,8 +179,10 @@ class FileMass:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_mass = cls(
|
file_mass = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -106,22 +106,28 @@ class FileSurfaceArea:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitArea]
|
output_unit: Union[Unset, UnitArea]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -134,8 +140,10 @@ class FileSurfaceArea:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
surface_area = d.pop("surface_area", UNSET)
|
surface_area = d.pop("surface_area", UNSET)
|
||||||
|
|
||||||
@ -150,8 +158,10 @@ class FileSurfaceArea:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
file_surface_area = cls(
|
file_surface_area = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -106,22 +106,28 @@ class FileVolume:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitVolume]
|
output_unit: Union[Unset, UnitVolume]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_src_format = d.pop("src_format", UNSET)
|
_src_format = d.pop("src_format", UNSET)
|
||||||
src_format: Union[Unset, FileImportFormat]
|
src_format: Union[Unset, FileImportFormat]
|
||||||
if isinstance(_src_format, Unset):
|
if isinstance(_src_format, Unset):
|
||||||
src_format = UNSET
|
src_format = UNSET
|
||||||
|
if _src_format is None:
|
||||||
|
src_format = UNSET
|
||||||
else:
|
else:
|
||||||
src_format = _src_format # type: ignore[arg-type]
|
src_format = _src_format
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -134,8 +140,10 @@ class FileVolume:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -148,8 +156,10 @@ class FileVolume:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
volume = d.pop("volume", UNSET)
|
volume = d.pop("volume", UNSET)
|
||||||
|
|
||||||
|
@ -35,8 +35,10 @@ class GetEntityType:
|
|||||||
entity_type: Union[Unset, EntityType]
|
entity_type: Union[Unset, EntityType]
|
||||||
if isinstance(_entity_type, Unset):
|
if isinstance(_entity_type, Unset):
|
||||||
entity_type = UNSET
|
entity_type = UNSET
|
||||||
|
if _entity_type is None:
|
||||||
|
entity_type = UNSET
|
||||||
else:
|
else:
|
||||||
entity_type = _entity_type # type: ignore[arg-type]
|
entity_type = _entity_type
|
||||||
|
|
||||||
get_entity_type = cls(
|
get_entity_type = cls(
|
||||||
entity_type=entity_type,
|
entity_type=entity_type,
|
||||||
|
@ -45,22 +45,28 @@ class GetSketchModePlane:
|
|||||||
x_axis: Union[Unset, Point3d]
|
x_axis: Union[Unset, Point3d]
|
||||||
if isinstance(_x_axis, Unset):
|
if isinstance(_x_axis, Unset):
|
||||||
x_axis = UNSET
|
x_axis = UNSET
|
||||||
|
if _x_axis is None:
|
||||||
|
x_axis = UNSET
|
||||||
else:
|
else:
|
||||||
x_axis = _x_axis # type: ignore[arg-type]
|
x_axis = Point3d.from_dict(_x_axis)
|
||||||
|
|
||||||
_y_axis = d.pop("y_axis", UNSET)
|
_y_axis = d.pop("y_axis", UNSET)
|
||||||
y_axis: Union[Unset, Point3d]
|
y_axis: Union[Unset, Point3d]
|
||||||
if isinstance(_y_axis, Unset):
|
if isinstance(_y_axis, Unset):
|
||||||
y_axis = UNSET
|
y_axis = UNSET
|
||||||
|
if _y_axis is None:
|
||||||
|
y_axis = UNSET
|
||||||
else:
|
else:
|
||||||
y_axis = _y_axis # type: ignore[arg-type]
|
y_axis = Point3d.from_dict(_y_axis)
|
||||||
|
|
||||||
_z_axis = d.pop("z_axis", UNSET)
|
_z_axis = d.pop("z_axis", UNSET)
|
||||||
z_axis: Union[Unset, Point3d]
|
z_axis: Union[Unset, Point3d]
|
||||||
if isinstance(_z_axis, Unset):
|
if isinstance(_z_axis, Unset):
|
||||||
z_axis = UNSET
|
z_axis = UNSET
|
||||||
|
if _z_axis is None:
|
||||||
|
z_axis = UNSET
|
||||||
else:
|
else:
|
||||||
z_axis = _z_axis # type: ignore[arg-type]
|
z_axis = Point3d.from_dict(_z_axis)
|
||||||
|
|
||||||
get_sketch_mode_plane = cls(
|
get_sketch_mode_plane = cls(
|
||||||
x_axis=x_axis,
|
x_axis=x_axis,
|
||||||
|
@ -144,8 +144,10 @@ class obj:
|
|||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
if isinstance(_coords, Unset):
|
if isinstance(_coords, Unset):
|
||||||
coords = UNSET
|
coords = UNSET
|
||||||
|
if _coords is None:
|
||||||
|
coords = UNSET
|
||||||
else:
|
else:
|
||||||
coords = _coords # type: ignore[arg-type]
|
coords = System.from_dict(_coords)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -153,8 +155,10 @@ class obj:
|
|||||||
units: Union[Unset, UnitLength]
|
units: Union[Unset, UnitLength]
|
||||||
if isinstance(_units, Unset):
|
if isinstance(_units, Unset):
|
||||||
units = UNSET
|
units = UNSET
|
||||||
|
if _units is None:
|
||||||
|
units = UNSET
|
||||||
else:
|
else:
|
||||||
units = _units # type: ignore[arg-type]
|
units = _units
|
||||||
|
|
||||||
obj = cls(
|
obj = cls(
|
||||||
coords=coords,
|
coords=coords,
|
||||||
@ -220,8 +224,10 @@ class ply:
|
|||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
if isinstance(_coords, Unset):
|
if isinstance(_coords, Unset):
|
||||||
coords = UNSET
|
coords = UNSET
|
||||||
|
if _coords is None:
|
||||||
|
coords = UNSET
|
||||||
else:
|
else:
|
||||||
coords = _coords # type: ignore[arg-type]
|
coords = System.from_dict(_coords)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -229,8 +235,10 @@ class ply:
|
|||||||
units: Union[Unset, UnitLength]
|
units: Union[Unset, UnitLength]
|
||||||
if isinstance(_units, Unset):
|
if isinstance(_units, Unset):
|
||||||
units = UNSET
|
units = UNSET
|
||||||
|
if _units is None:
|
||||||
|
units = UNSET
|
||||||
else:
|
else:
|
||||||
units = _units # type: ignore[arg-type]
|
units = _units
|
||||||
|
|
||||||
ply = cls(
|
ply = cls(
|
||||||
coords=coords,
|
coords=coords,
|
||||||
@ -396,8 +404,10 @@ class stl:
|
|||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
if isinstance(_coords, Unset):
|
if isinstance(_coords, Unset):
|
||||||
coords = UNSET
|
coords = UNSET
|
||||||
|
if _coords is None:
|
||||||
|
coords = UNSET
|
||||||
else:
|
else:
|
||||||
coords = _coords # type: ignore[arg-type]
|
coords = System.from_dict(_coords)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -405,8 +415,10 @@ class stl:
|
|||||||
units: Union[Unset, UnitLength]
|
units: Union[Unset, UnitLength]
|
||||||
if isinstance(_units, Unset):
|
if isinstance(_units, Unset):
|
||||||
units = UNSET
|
units = UNSET
|
||||||
|
if _units is None:
|
||||||
|
units = UNSET
|
||||||
else:
|
else:
|
||||||
units = _units # type: ignore[arg-type]
|
units = _units
|
||||||
|
|
||||||
stl = cls(
|
stl = cls(
|
||||||
coords=coords,
|
coords=coords,
|
||||||
|
@ -167,8 +167,10 @@ class Invoice:
|
|||||||
currency: Union[Unset, Currency]
|
currency: Union[Unset, Currency]
|
||||||
if isinstance(_currency, Unset):
|
if isinstance(_currency, Unset):
|
||||||
currency = UNSET
|
currency = UNSET
|
||||||
|
if _currency is None:
|
||||||
|
currency = UNSET
|
||||||
else:
|
else:
|
||||||
currency = _currency # type: ignore[arg-type]
|
currency = _currency
|
||||||
|
|
||||||
customer_email = d.pop("customer_email", UNSET)
|
customer_email = d.pop("customer_email", UNSET)
|
||||||
|
|
||||||
@ -204,8 +206,10 @@ class Invoice:
|
|||||||
status: Union[Unset, InvoiceStatus]
|
status: Union[Unset, InvoiceStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
subtotal = d.pop("subtotal", UNSET)
|
subtotal = d.pop("subtotal", UNSET)
|
||||||
|
|
||||||
|
@ -57,8 +57,10 @@ class InvoiceLineItem:
|
|||||||
currency: Union[Unset, Currency]
|
currency: Union[Unset, Currency]
|
||||||
if isinstance(_currency, Unset):
|
if isinstance(_currency, Unset):
|
||||||
currency = UNSET
|
currency = UNSET
|
||||||
|
if _currency is None:
|
||||||
|
currency = UNSET
|
||||||
else:
|
else:
|
||||||
currency = _currency # type: ignore[arg-type]
|
currency = _currency
|
||||||
|
|
||||||
description = d.pop("description", UNSET)
|
description = d.pop("description", UNSET)
|
||||||
|
|
||||||
|
@ -47,22 +47,28 @@ class Jetstream:
|
|||||||
config: Union[Unset, JetstreamConfig]
|
config: Union[Unset, JetstreamConfig]
|
||||||
if isinstance(_config, Unset):
|
if isinstance(_config, Unset):
|
||||||
config = UNSET
|
config = UNSET
|
||||||
|
if _config is None:
|
||||||
|
config = UNSET
|
||||||
else:
|
else:
|
||||||
config = _config # type: ignore[arg-type]
|
config = JetstreamConfig.from_dict(_config)
|
||||||
|
|
||||||
_meta = d.pop("meta", UNSET)
|
_meta = d.pop("meta", UNSET)
|
||||||
meta: Union[Unset, MetaClusterInfo]
|
meta: Union[Unset, MetaClusterInfo]
|
||||||
if isinstance(_meta, Unset):
|
if isinstance(_meta, Unset):
|
||||||
meta = UNSET
|
meta = UNSET
|
||||||
|
if _meta is None:
|
||||||
|
meta = UNSET
|
||||||
else:
|
else:
|
||||||
meta = _meta # type: ignore[arg-type]
|
meta = MetaClusterInfo.from_dict(_meta)
|
||||||
|
|
||||||
_stats = d.pop("stats", UNSET)
|
_stats = d.pop("stats", UNSET)
|
||||||
stats: Union[Unset, JetstreamStats]
|
stats: Union[Unset, JetstreamStats]
|
||||||
if isinstance(_stats, Unset):
|
if isinstance(_stats, Unset):
|
||||||
stats = UNSET
|
stats = UNSET
|
||||||
|
if _stats is None:
|
||||||
|
stats = UNSET
|
||||||
else:
|
else:
|
||||||
stats = _stats # type: ignore[arg-type]
|
stats = JetstreamStats.from_dict(_stats)
|
||||||
|
|
||||||
jetstream = cls(
|
jetstream = cls(
|
||||||
config=config,
|
config=config,
|
||||||
|
@ -61,8 +61,10 @@ class JetstreamStats:
|
|||||||
api: Union[Unset, JetstreamApiStats]
|
api: Union[Unset, JetstreamApiStats]
|
||||||
if isinstance(_api, Unset):
|
if isinstance(_api, Unset):
|
||||||
api = UNSET
|
api = UNSET
|
||||||
|
if _api is None:
|
||||||
|
api = UNSET
|
||||||
else:
|
else:
|
||||||
api = _api # type: ignore[arg-type]
|
api = JetstreamApiStats.from_dict(_api)
|
||||||
|
|
||||||
ha_assets = d.pop("ha_assets", UNSET)
|
ha_assets = d.pop("ha_assets", UNSET)
|
||||||
|
|
||||||
|
@ -41,8 +41,10 @@ class Mass:
|
|||||||
output_unit: Union[Unset, UnitMass]
|
output_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
mass = cls(
|
mass = cls(
|
||||||
mass=mass,
|
mass=mass,
|
||||||
|
@ -59,22 +59,28 @@ class Metadata:
|
|||||||
cache: Union[Unset, CacheMetadata]
|
cache: Union[Unset, CacheMetadata]
|
||||||
if isinstance(_cache, Unset):
|
if isinstance(_cache, Unset):
|
||||||
cache = UNSET
|
cache = UNSET
|
||||||
|
if _cache is None:
|
||||||
|
cache = UNSET
|
||||||
else:
|
else:
|
||||||
cache = _cache # type: ignore[arg-type]
|
cache = CacheMetadata.from_dict(_cache)
|
||||||
|
|
||||||
_environment = d.pop("environment", UNSET)
|
_environment = d.pop("environment", UNSET)
|
||||||
environment: Union[Unset, Environment]
|
environment: Union[Unset, Environment]
|
||||||
if isinstance(_environment, Unset):
|
if isinstance(_environment, Unset):
|
||||||
environment = UNSET
|
environment = UNSET
|
||||||
|
if _environment is None:
|
||||||
|
environment = UNSET
|
||||||
else:
|
else:
|
||||||
environment = _environment # type: ignore[arg-type]
|
environment = _environment
|
||||||
|
|
||||||
_fs = d.pop("fs", UNSET)
|
_fs = d.pop("fs", UNSET)
|
||||||
fs: Union[Unset, FileSystemMetadata]
|
fs: Union[Unset, FileSystemMetadata]
|
||||||
if isinstance(_fs, Unset):
|
if isinstance(_fs, Unset):
|
||||||
fs = UNSET
|
fs = UNSET
|
||||||
|
if _fs is None:
|
||||||
|
fs = UNSET
|
||||||
else:
|
else:
|
||||||
fs = _fs # type: ignore[arg-type]
|
fs = FileSystemMetadata.from_dict(_fs)
|
||||||
|
|
||||||
git_hash = d.pop("git_hash", UNSET)
|
git_hash = d.pop("git_hash", UNSET)
|
||||||
|
|
||||||
@ -82,8 +88,10 @@ class Metadata:
|
|||||||
pubsub: Union[Unset, Connection]
|
pubsub: Union[Unset, Connection]
|
||||||
if isinstance(_pubsub, Unset):
|
if isinstance(_pubsub, Unset):
|
||||||
pubsub = UNSET
|
pubsub = UNSET
|
||||||
|
if _pubsub is None:
|
||||||
|
pubsub = UNSET
|
||||||
else:
|
else:
|
||||||
pubsub = _pubsub # type: ignore[arg-type]
|
pubsub = Connection.from_dict(_pubsub)
|
||||||
|
|
||||||
metadata = cls(
|
metadata = cls(
|
||||||
cache=cache,
|
cache=cache,
|
||||||
|
@ -112,15 +112,19 @@ class move_path_pen:
|
|||||||
path: Union[Unset, ModelingCmdId]
|
path: Union[Unset, ModelingCmdId]
|
||||||
if isinstance(_path, Unset):
|
if isinstance(_path, Unset):
|
||||||
path = UNSET
|
path = UNSET
|
||||||
|
if _path is None:
|
||||||
|
path = UNSET
|
||||||
else:
|
else:
|
||||||
path = _path # type: ignore[arg-type]
|
path = _path
|
||||||
|
|
||||||
_to = d.pop("to", UNSET)
|
_to = d.pop("to", UNSET)
|
||||||
to: Union[Unset, Point3d]
|
to: Union[Unset, Point3d]
|
||||||
if isinstance(_to, Unset):
|
if isinstance(_to, Unset):
|
||||||
to = UNSET
|
to = UNSET
|
||||||
|
if _to is None:
|
||||||
|
to = UNSET
|
||||||
else:
|
else:
|
||||||
to = _to # type: ignore[arg-type]
|
to = Point3d.from_dict(_to)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -188,15 +192,19 @@ class extend_path:
|
|||||||
path: Union[Unset, ModelingCmdId]
|
path: Union[Unset, ModelingCmdId]
|
||||||
if isinstance(_path, Unset):
|
if isinstance(_path, Unset):
|
||||||
path = UNSET
|
path = UNSET
|
||||||
|
if _path is None:
|
||||||
|
path = UNSET
|
||||||
else:
|
else:
|
||||||
path = _path # type: ignore[arg-type]
|
path = _path
|
||||||
|
|
||||||
_segment = d.pop("segment", UNSET)
|
_segment = d.pop("segment", UNSET)
|
||||||
segment: Union[Unset, PathSegment]
|
segment: Union[Unset, PathSegment]
|
||||||
if isinstance(_segment, Unset):
|
if isinstance(_segment, Unset):
|
||||||
segment = UNSET
|
segment = UNSET
|
||||||
|
if _segment is None:
|
||||||
|
segment = UNSET
|
||||||
else:
|
else:
|
||||||
segment = _segment # type: ignore[arg-type]
|
segment = PathSegment.from_dict(_segment)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -271,8 +279,10 @@ class extrude:
|
|||||||
target: Union[Unset, ModelingCmdId]
|
target: Union[Unset, ModelingCmdId]
|
||||||
if isinstance(_target, Unset):
|
if isinstance(_target, Unset):
|
||||||
target = UNSET
|
target = UNSET
|
||||||
|
if _target is None:
|
||||||
|
target = UNSET
|
||||||
else:
|
else:
|
||||||
target = _target # type: ignore[arg-type]
|
target = _target
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -398,8 +408,10 @@ class camera_drag_start:
|
|||||||
interaction: Union[Unset, CameraDragInteractionType]
|
interaction: Union[Unset, CameraDragInteractionType]
|
||||||
if isinstance(_interaction, Unset):
|
if isinstance(_interaction, Unset):
|
||||||
interaction = UNSET
|
interaction = UNSET
|
||||||
|
if _interaction is None:
|
||||||
|
interaction = UNSET
|
||||||
else:
|
else:
|
||||||
interaction = _interaction # type: ignore[arg-type]
|
interaction = _interaction
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -407,8 +419,10 @@ class camera_drag_start:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
camera_drag_start = cls(
|
camera_drag_start = cls(
|
||||||
interaction=interaction,
|
interaction=interaction,
|
||||||
@ -478,8 +492,10 @@ class camera_drag_move:
|
|||||||
interaction: Union[Unset, CameraDragInteractionType]
|
interaction: Union[Unset, CameraDragInteractionType]
|
||||||
if isinstance(_interaction, Unset):
|
if isinstance(_interaction, Unset):
|
||||||
interaction = UNSET
|
interaction = UNSET
|
||||||
|
if _interaction is None:
|
||||||
|
interaction = UNSET
|
||||||
else:
|
else:
|
||||||
interaction = _interaction # type: ignore[arg-type]
|
interaction = _interaction
|
||||||
|
|
||||||
sequence = d.pop("sequence", UNSET)
|
sequence = d.pop("sequence", UNSET)
|
||||||
|
|
||||||
@ -489,8 +505,10 @@ class camera_drag_move:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
camera_drag_move = cls(
|
camera_drag_move = cls(
|
||||||
interaction=interaction,
|
interaction=interaction,
|
||||||
@ -557,8 +575,10 @@ class camera_drag_end:
|
|||||||
interaction: Union[Unset, CameraDragInteractionType]
|
interaction: Union[Unset, CameraDragInteractionType]
|
||||||
if isinstance(_interaction, Unset):
|
if isinstance(_interaction, Unset):
|
||||||
interaction = UNSET
|
interaction = UNSET
|
||||||
|
if _interaction is None:
|
||||||
|
interaction = UNSET
|
||||||
else:
|
else:
|
||||||
interaction = _interaction # type: ignore[arg-type]
|
interaction = _interaction
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -566,8 +586,10 @@ class camera_drag_end:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
camera_drag_end = cls(
|
camera_drag_end = cls(
|
||||||
interaction=interaction,
|
interaction=interaction,
|
||||||
@ -638,8 +660,10 @@ class default_camera_look_at:
|
|||||||
center: Union[Unset, Point3d]
|
center: Union[Unset, Point3d]
|
||||||
if isinstance(_center, Unset):
|
if isinstance(_center, Unset):
|
||||||
center = UNSET
|
center = UNSET
|
||||||
|
if _center is None:
|
||||||
|
center = UNSET
|
||||||
else:
|
else:
|
||||||
center = _center # type: ignore[arg-type]
|
center = Point3d.from_dict(_center)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -647,15 +671,19 @@ class default_camera_look_at:
|
|||||||
up: Union[Unset, Point3d]
|
up: Union[Unset, Point3d]
|
||||||
if isinstance(_up, Unset):
|
if isinstance(_up, Unset):
|
||||||
up = UNSET
|
up = UNSET
|
||||||
|
if _up is None:
|
||||||
|
up = UNSET
|
||||||
else:
|
else:
|
||||||
up = _up # type: ignore[arg-type]
|
up = Point3d.from_dict(_up)
|
||||||
|
|
||||||
_vantage = d.pop("vantage", UNSET)
|
_vantage = d.pop("vantage", UNSET)
|
||||||
vantage: Union[Unset, Point3d]
|
vantage: Union[Unset, Point3d]
|
||||||
if isinstance(_vantage, Unset):
|
if isinstance(_vantage, Unset):
|
||||||
vantage = UNSET
|
vantage = UNSET
|
||||||
|
if _vantage is None:
|
||||||
|
vantage = UNSET
|
||||||
else:
|
else:
|
||||||
vantage = _vantage # type: ignore[arg-type]
|
vantage = Point3d.from_dict(_vantage)
|
||||||
|
|
||||||
default_camera_look_at = cls(
|
default_camera_look_at = cls(
|
||||||
center=center,
|
center=center,
|
||||||
@ -800,8 +828,10 @@ class default_camera_enable_sketch_mode:
|
|||||||
origin: Union[Unset, Point3d]
|
origin: Union[Unset, Point3d]
|
||||||
if isinstance(_origin, Unset):
|
if isinstance(_origin, Unset):
|
||||||
origin = UNSET
|
origin = UNSET
|
||||||
|
if _origin is None:
|
||||||
|
origin = UNSET
|
||||||
else:
|
else:
|
||||||
origin = _origin # type: ignore[arg-type]
|
origin = Point3d.from_dict(_origin)
|
||||||
|
|
||||||
ortho = d.pop("ortho", UNSET)
|
ortho = d.pop("ortho", UNSET)
|
||||||
|
|
||||||
@ -811,15 +841,19 @@ class default_camera_enable_sketch_mode:
|
|||||||
x_axis: Union[Unset, Point3d]
|
x_axis: Union[Unset, Point3d]
|
||||||
if isinstance(_x_axis, Unset):
|
if isinstance(_x_axis, Unset):
|
||||||
x_axis = UNSET
|
x_axis = UNSET
|
||||||
|
if _x_axis is None:
|
||||||
|
x_axis = UNSET
|
||||||
else:
|
else:
|
||||||
x_axis = _x_axis # type: ignore[arg-type]
|
x_axis = Point3d.from_dict(_x_axis)
|
||||||
|
|
||||||
_y_axis = d.pop("y_axis", UNSET)
|
_y_axis = d.pop("y_axis", UNSET)
|
||||||
y_axis: Union[Unset, Point3d]
|
y_axis: Union[Unset, Point3d]
|
||||||
if isinstance(_y_axis, Unset):
|
if isinstance(_y_axis, Unset):
|
||||||
y_axis = UNSET
|
y_axis = UNSET
|
||||||
|
if _y_axis is None:
|
||||||
|
y_axis = UNSET
|
||||||
else:
|
else:
|
||||||
y_axis = _y_axis # type: ignore[arg-type]
|
y_axis = Point3d.from_dict(_y_axis)
|
||||||
|
|
||||||
default_camera_enable_sketch_mode = cls(
|
default_camera_enable_sketch_mode = cls(
|
||||||
animated=animated,
|
animated=animated,
|
||||||
@ -1004,15 +1038,19 @@ class export:
|
|||||||
format: Union[Unset, OutputFormat]
|
format: Union[Unset, OutputFormat]
|
||||||
if isinstance(_format, Unset):
|
if isinstance(_format, Unset):
|
||||||
format = UNSET
|
format = UNSET
|
||||||
|
if _format is None:
|
||||||
|
format = UNSET
|
||||||
else:
|
else:
|
||||||
format = _format # type: ignore[arg-type]
|
format = OutputFormat.from_dict(_format)
|
||||||
|
|
||||||
_source_unit = d.pop("source_unit", UNSET)
|
_source_unit = d.pop("source_unit", UNSET)
|
||||||
source_unit: Union[Unset, UnitLength]
|
source_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_source_unit, Unset):
|
if isinstance(_source_unit, Unset):
|
||||||
source_unit = UNSET
|
source_unit = UNSET
|
||||||
|
if _source_unit is None:
|
||||||
|
source_unit = UNSET
|
||||||
else:
|
else:
|
||||||
source_unit = _source_unit # type: ignore[arg-type]
|
source_unit = _source_unit
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1423,15 +1461,19 @@ class select_with_point:
|
|||||||
selected_at_window: Union[Unset, Point2d]
|
selected_at_window: Union[Unset, Point2d]
|
||||||
if isinstance(_selected_at_window, Unset):
|
if isinstance(_selected_at_window, Unset):
|
||||||
selected_at_window = UNSET
|
selected_at_window = UNSET
|
||||||
|
if _selected_at_window is None:
|
||||||
|
selected_at_window = UNSET
|
||||||
else:
|
else:
|
||||||
selected_at_window = _selected_at_window # type: ignore[arg-type]
|
selected_at_window = Point2d.from_dict(_selected_at_window)
|
||||||
|
|
||||||
_selection_type = d.pop("selection_type", UNSET)
|
_selection_type = d.pop("selection_type", UNSET)
|
||||||
selection_type: Union[Unset, SceneSelectionType]
|
selection_type: Union[Unset, SceneSelectionType]
|
||||||
if isinstance(_selection_type, Unset):
|
if isinstance(_selection_type, Unset):
|
||||||
selection_type = UNSET
|
selection_type = UNSET
|
||||||
|
if _selection_type is None:
|
||||||
|
selection_type = UNSET
|
||||||
else:
|
else:
|
||||||
selection_type = _selection_type # type: ignore[arg-type]
|
selection_type = _selection_type
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1775,8 +1817,10 @@ class highlight_set_entity:
|
|||||||
selected_at_window: Union[Unset, Point2d]
|
selected_at_window: Union[Unset, Point2d]
|
||||||
if isinstance(_selected_at_window, Unset):
|
if isinstance(_selected_at_window, Unset):
|
||||||
selected_at_window = UNSET
|
selected_at_window = UNSET
|
||||||
|
if _selected_at_window is None:
|
||||||
|
selected_at_window = UNSET
|
||||||
else:
|
else:
|
||||||
selected_at_window = _selected_at_window # type: ignore[arg-type]
|
selected_at_window = Point2d.from_dict(_selected_at_window)
|
||||||
|
|
||||||
sequence = d.pop("sequence", UNSET)
|
sequence = d.pop("sequence", UNSET)
|
||||||
|
|
||||||
@ -1909,8 +1953,10 @@ class new_annotation:
|
|||||||
annotation_type: Union[Unset, AnnotationType]
|
annotation_type: Union[Unset, AnnotationType]
|
||||||
if isinstance(_annotation_type, Unset):
|
if isinstance(_annotation_type, Unset):
|
||||||
annotation_type = UNSET
|
annotation_type = UNSET
|
||||||
|
if _annotation_type is None:
|
||||||
|
annotation_type = UNSET
|
||||||
else:
|
else:
|
||||||
annotation_type = _annotation_type # type: ignore[arg-type]
|
annotation_type = _annotation_type
|
||||||
|
|
||||||
clobber = d.pop("clobber", UNSET)
|
clobber = d.pop("clobber", UNSET)
|
||||||
|
|
||||||
@ -1918,8 +1964,10 @@ class new_annotation:
|
|||||||
options: Union[Unset, AnnotationOptions]
|
options: Union[Unset, AnnotationOptions]
|
||||||
if isinstance(_options, Unset):
|
if isinstance(_options, Unset):
|
||||||
options = UNSET
|
options = UNSET
|
||||||
|
if _options is None:
|
||||||
|
options = UNSET
|
||||||
else:
|
else:
|
||||||
options = _options # type: ignore[arg-type]
|
options = AnnotationOptions.from_dict(_options)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1989,8 +2037,10 @@ class update_annotation:
|
|||||||
options: Union[Unset, AnnotationOptions]
|
options: Union[Unset, AnnotationOptions]
|
||||||
if isinstance(_options, Unset):
|
if isinstance(_options, Unset):
|
||||||
options = UNSET
|
options = UNSET
|
||||||
|
if _options is None:
|
||||||
|
options = UNSET
|
||||||
else:
|
else:
|
||||||
options = _options # type: ignore[arg-type]
|
options = AnnotationOptions.from_dict(_options)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -2367,8 +2417,10 @@ class solid3d_get_all_opposite_edges:
|
|||||||
along_vector: Union[Unset, Point3d]
|
along_vector: Union[Unset, Point3d]
|
||||||
if isinstance(_along_vector, Unset):
|
if isinstance(_along_vector, Unset):
|
||||||
along_vector = UNSET
|
along_vector = UNSET
|
||||||
|
if _along_vector is None:
|
||||||
|
along_vector = UNSET
|
||||||
else:
|
else:
|
||||||
along_vector = _along_vector # type: ignore[arg-type]
|
along_vector = Point3d.from_dict(_along_vector)
|
||||||
|
|
||||||
edge_id = d.pop("edge_id", UNSET)
|
edge_id = d.pop("edge_id", UNSET)
|
||||||
|
|
||||||
@ -2874,8 +2926,10 @@ class make_plane:
|
|||||||
origin: Union[Unset, Point3d]
|
origin: Union[Unset, Point3d]
|
||||||
if isinstance(_origin, Unset):
|
if isinstance(_origin, Unset):
|
||||||
origin = UNSET
|
origin = UNSET
|
||||||
|
if _origin is None:
|
||||||
|
origin = UNSET
|
||||||
else:
|
else:
|
||||||
origin = _origin # type: ignore[arg-type]
|
origin = Point3d.from_dict(_origin)
|
||||||
|
|
||||||
size = d.pop("size", UNSET)
|
size = d.pop("size", UNSET)
|
||||||
|
|
||||||
@ -2885,15 +2939,19 @@ class make_plane:
|
|||||||
x_axis: Union[Unset, Point3d]
|
x_axis: Union[Unset, Point3d]
|
||||||
if isinstance(_x_axis, Unset):
|
if isinstance(_x_axis, Unset):
|
||||||
x_axis = UNSET
|
x_axis = UNSET
|
||||||
|
if _x_axis is None:
|
||||||
|
x_axis = UNSET
|
||||||
else:
|
else:
|
||||||
x_axis = _x_axis # type: ignore[arg-type]
|
x_axis = Point3d.from_dict(_x_axis)
|
||||||
|
|
||||||
_y_axis = d.pop("y_axis", UNSET)
|
_y_axis = d.pop("y_axis", UNSET)
|
||||||
y_axis: Union[Unset, Point3d]
|
y_axis: Union[Unset, Point3d]
|
||||||
if isinstance(_y_axis, Unset):
|
if isinstance(_y_axis, Unset):
|
||||||
y_axis = UNSET
|
y_axis = UNSET
|
||||||
|
if _y_axis is None:
|
||||||
|
y_axis = UNSET
|
||||||
else:
|
else:
|
||||||
y_axis = _y_axis # type: ignore[arg-type]
|
y_axis = Point3d.from_dict(_y_axis)
|
||||||
|
|
||||||
make_plane = cls(
|
make_plane = cls(
|
||||||
clobber=clobber,
|
clobber=clobber,
|
||||||
@ -2962,8 +3020,10 @@ class plane_set_color:
|
|||||||
color: Union[Unset, Color]
|
color: Union[Unset, Color]
|
||||||
if isinstance(_color, Unset):
|
if isinstance(_color, Unset):
|
||||||
color = UNSET
|
color = UNSET
|
||||||
|
if _color is None:
|
||||||
|
color = UNSET
|
||||||
else:
|
else:
|
||||||
color = _color # type: ignore[arg-type]
|
color = Color.from_dict(_color)
|
||||||
|
|
||||||
plane_id = d.pop("plane_id", UNSET)
|
plane_id = d.pop("plane_id", UNSET)
|
||||||
|
|
||||||
@ -3028,8 +3088,10 @@ class set_tool:
|
|||||||
tool: Union[Unset, SceneToolType]
|
tool: Union[Unset, SceneToolType]
|
||||||
if isinstance(_tool, Unset):
|
if isinstance(_tool, Unset):
|
||||||
tool = UNSET
|
tool = UNSET
|
||||||
|
if _tool is None:
|
||||||
|
tool = UNSET
|
||||||
else:
|
else:
|
||||||
tool = _tool # type: ignore[arg-type]
|
tool = _tool
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -3099,8 +3161,10 @@ class mouse_move:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
mouse_move = cls(
|
mouse_move = cls(
|
||||||
sequence=sequence,
|
sequence=sequence,
|
||||||
@ -3163,8 +3227,10 @@ class mouse_click:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
mouse_click = cls(
|
mouse_click = cls(
|
||||||
type=type,
|
type=type,
|
||||||
@ -3240,8 +3306,10 @@ class sketch_mode_enable:
|
|||||||
disable_camera_with_plane: Union[Unset, Point3d]
|
disable_camera_with_plane: Union[Unset, Point3d]
|
||||||
if isinstance(_disable_camera_with_plane, Unset):
|
if isinstance(_disable_camera_with_plane, Unset):
|
||||||
disable_camera_with_plane = UNSET
|
disable_camera_with_plane = UNSET
|
||||||
|
if _disable_camera_with_plane is None:
|
||||||
|
disable_camera_with_plane = UNSET
|
||||||
else:
|
else:
|
||||||
disable_camera_with_plane = _disable_camera_with_plane # type: ignore[arg-type]
|
disable_camera_with_plane = Point3d.from_dict(_disable_camera_with_plane)
|
||||||
|
|
||||||
ortho = d.pop("ortho", UNSET)
|
ortho = d.pop("ortho", UNSET)
|
||||||
|
|
||||||
@ -3474,8 +3542,10 @@ class take_snapshot:
|
|||||||
format: Union[Unset, ImageFormat]
|
format: Union[Unset, ImageFormat]
|
||||||
if isinstance(_format, Unset):
|
if isinstance(_format, Unset):
|
||||||
format = UNSET
|
format = UNSET
|
||||||
|
if _format is None:
|
||||||
|
format = UNSET
|
||||||
else:
|
else:
|
||||||
format = _format # type: ignore[arg-type]
|
format = _format
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -3783,8 +3853,10 @@ class handle_mouse_drag_start:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
handle_mouse_drag_start = cls(
|
handle_mouse_drag_start = cls(
|
||||||
type=type,
|
type=type,
|
||||||
@ -3852,8 +3924,10 @@ class handle_mouse_drag_move:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
handle_mouse_drag_move = cls(
|
handle_mouse_drag_move = cls(
|
||||||
sequence=sequence,
|
sequence=sequence,
|
||||||
@ -3916,8 +3990,10 @@ class handle_mouse_drag_end:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
handle_mouse_drag_end = cls(
|
handle_mouse_drag_end = cls(
|
||||||
type=type,
|
type=type,
|
||||||
@ -4044,8 +4120,10 @@ class plane_intersect_and_project:
|
|||||||
window: Union[Unset, Point2d]
|
window: Union[Unset, Point2d]
|
||||||
if isinstance(_window, Unset):
|
if isinstance(_window, Unset):
|
||||||
window = UNSET
|
window = UNSET
|
||||||
|
if _window is None:
|
||||||
|
window = UNSET
|
||||||
else:
|
else:
|
||||||
window = _window # type: ignore[arg-type]
|
window = Point2d.from_dict(_window)
|
||||||
|
|
||||||
plane_intersect_and_project = cls(
|
plane_intersect_and_project = cls(
|
||||||
plane_id=plane_id,
|
plane_id=plane_id,
|
||||||
@ -4248,8 +4326,10 @@ class import_files:
|
|||||||
format: Union[Unset, InputFormat]
|
format: Union[Unset, InputFormat]
|
||||||
if isinstance(_format, Unset):
|
if isinstance(_format, Unset):
|
||||||
format = UNSET
|
format = UNSET
|
||||||
|
if _format is None:
|
||||||
|
format = UNSET
|
||||||
else:
|
else:
|
||||||
format = _format # type: ignore[arg-type]
|
format = InputFormat.from_dict(_format)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -4336,22 +4416,28 @@ class mass:
|
|||||||
material_density_unit: Union[Unset, UnitDensity]
|
material_density_unit: Union[Unset, UnitDensity]
|
||||||
if isinstance(_material_density_unit, Unset):
|
if isinstance(_material_density_unit, Unset):
|
||||||
material_density_unit = UNSET
|
material_density_unit = UNSET
|
||||||
|
if _material_density_unit is None:
|
||||||
|
material_density_unit = UNSET
|
||||||
else:
|
else:
|
||||||
material_density_unit = _material_density_unit # type: ignore[arg-type]
|
material_density_unit = _material_density_unit
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitMass]
|
output_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_source_unit = d.pop("source_unit", UNSET)
|
_source_unit = d.pop("source_unit", UNSET)
|
||||||
source_unit: Union[Unset, UnitLength]
|
source_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_source_unit, Unset):
|
if isinstance(_source_unit, Unset):
|
||||||
source_unit = UNSET
|
source_unit = UNSET
|
||||||
|
if _source_unit is None:
|
||||||
|
source_unit = UNSET
|
||||||
else:
|
else:
|
||||||
source_unit = _source_unit # type: ignore[arg-type]
|
source_unit = _source_unit
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -4441,22 +4527,28 @@ class density:
|
|||||||
material_mass_unit: Union[Unset, UnitMass]
|
material_mass_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_material_mass_unit, Unset):
|
if isinstance(_material_mass_unit, Unset):
|
||||||
material_mass_unit = UNSET
|
material_mass_unit = UNSET
|
||||||
|
if _material_mass_unit is None:
|
||||||
|
material_mass_unit = UNSET
|
||||||
else:
|
else:
|
||||||
material_mass_unit = _material_mass_unit # type: ignore[arg-type]
|
material_mass_unit = _material_mass_unit
|
||||||
|
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitDensity]
|
output_unit: Union[Unset, UnitDensity]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_source_unit = d.pop("source_unit", UNSET)
|
_source_unit = d.pop("source_unit", UNSET)
|
||||||
source_unit: Union[Unset, UnitLength]
|
source_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_source_unit, Unset):
|
if isinstance(_source_unit, Unset):
|
||||||
source_unit = UNSET
|
source_unit = UNSET
|
||||||
|
if _source_unit is None:
|
||||||
|
source_unit = UNSET
|
||||||
else:
|
else:
|
||||||
source_unit = _source_unit # type: ignore[arg-type]
|
source_unit = _source_unit
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -4535,15 +4627,19 @@ class volume:
|
|||||||
output_unit: Union[Unset, UnitVolume]
|
output_unit: Union[Unset, UnitVolume]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_source_unit = d.pop("source_unit", UNSET)
|
_source_unit = d.pop("source_unit", UNSET)
|
||||||
source_unit: Union[Unset, UnitLength]
|
source_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_source_unit, Unset):
|
if isinstance(_source_unit, Unset):
|
||||||
source_unit = UNSET
|
source_unit = UNSET
|
||||||
|
if _source_unit is None:
|
||||||
|
source_unit = UNSET
|
||||||
else:
|
else:
|
||||||
source_unit = _source_unit # type: ignore[arg-type]
|
source_unit = _source_unit
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -4620,15 +4716,19 @@ class center_of_mass:
|
|||||||
output_unit: Union[Unset, UnitLength]
|
output_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_source_unit = d.pop("source_unit", UNSET)
|
_source_unit = d.pop("source_unit", UNSET)
|
||||||
source_unit: Union[Unset, UnitLength]
|
source_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_source_unit, Unset):
|
if isinstance(_source_unit, Unset):
|
||||||
source_unit = UNSET
|
source_unit = UNSET
|
||||||
|
if _source_unit is None:
|
||||||
|
source_unit = UNSET
|
||||||
else:
|
else:
|
||||||
source_unit = _source_unit # type: ignore[arg-type]
|
source_unit = _source_unit
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -4705,15 +4805,19 @@ class surface_area:
|
|||||||
output_unit: Union[Unset, UnitArea]
|
output_unit: Union[Unset, UnitArea]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_source_unit = d.pop("source_unit", UNSET)
|
_source_unit = d.pop("source_unit", UNSET)
|
||||||
source_unit: Union[Unset, UnitLength]
|
source_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_source_unit, Unset):
|
if isinstance(_source_unit, Unset):
|
||||||
source_unit = UNSET
|
source_unit = UNSET
|
||||||
|
if _source_unit is None:
|
||||||
|
source_unit = UNSET
|
||||||
else:
|
else:
|
||||||
source_unit = _source_unit # type: ignore[arg-type]
|
source_unit = _source_unit
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -4836,15 +4940,19 @@ class curve_set_constraint:
|
|||||||
constraint_bound: Union[Unset, PathComponentConstraintBound]
|
constraint_bound: Union[Unset, PathComponentConstraintBound]
|
||||||
if isinstance(_constraint_bound, Unset):
|
if isinstance(_constraint_bound, Unset):
|
||||||
constraint_bound = UNSET
|
constraint_bound = UNSET
|
||||||
|
if _constraint_bound is None:
|
||||||
|
constraint_bound = UNSET
|
||||||
else:
|
else:
|
||||||
constraint_bound = _constraint_bound # type: ignore[arg-type]
|
constraint_bound = _constraint_bound
|
||||||
|
|
||||||
_constraint_type = d.pop("constraint_type", UNSET)
|
_constraint_type = d.pop("constraint_type", UNSET)
|
||||||
constraint_type: Union[Unset, PathComponentConstraintType]
|
constraint_type: Union[Unset, PathComponentConstraintType]
|
||||||
if isinstance(_constraint_type, Unset):
|
if isinstance(_constraint_type, Unset):
|
||||||
constraint_type = UNSET
|
constraint_type = UNSET
|
||||||
|
if _constraint_type is None:
|
||||||
|
constraint_type = UNSET
|
||||||
else:
|
else:
|
||||||
constraint_type = _constraint_type # type: ignore[arg-type]
|
constraint_type = _constraint_type
|
||||||
|
|
||||||
object_id = d.pop("object_id", UNSET)
|
object_id = d.pop("object_id", UNSET)
|
||||||
|
|
||||||
|
@ -41,15 +41,19 @@ class ModelingCmdReq:
|
|||||||
cmd: Union[Unset, ModelingCmd]
|
cmd: Union[Unset, ModelingCmd]
|
||||||
if isinstance(_cmd, Unset):
|
if isinstance(_cmd, Unset):
|
||||||
cmd = UNSET
|
cmd = UNSET
|
||||||
|
if _cmd is None:
|
||||||
|
cmd = UNSET
|
||||||
else:
|
else:
|
||||||
cmd = _cmd # type: ignore[arg-type]
|
cmd = ModelingCmd.from_dict(_cmd)
|
||||||
|
|
||||||
_cmd_id = d.pop("cmd_id", UNSET)
|
_cmd_id = d.pop("cmd_id", UNSET)
|
||||||
cmd_id: Union[Unset, ModelingCmdId]
|
cmd_id: Union[Unset, ModelingCmdId]
|
||||||
if isinstance(_cmd_id, Unset):
|
if isinstance(_cmd_id, Unset):
|
||||||
cmd_id = UNSET
|
cmd_id = UNSET
|
||||||
|
if _cmd_id is None:
|
||||||
|
cmd_id = UNSET
|
||||||
else:
|
else:
|
||||||
cmd_id = _cmd_id # type: ignore[arg-type]
|
cmd_id = _cmd_id
|
||||||
|
|
||||||
modeling_cmd_req = cls(
|
modeling_cmd_req = cls(
|
||||||
cmd=cmd,
|
cmd=cmd,
|
||||||
|
@ -62,8 +62,10 @@ class NewAddress:
|
|||||||
country: Union[Unset, CountryCode]
|
country: Union[Unset, CountryCode]
|
||||||
if isinstance(_country, Unset):
|
if isinstance(_country, Unset):
|
||||||
country = UNSET
|
country = UNSET
|
||||||
|
if _country is None:
|
||||||
|
country = UNSET
|
||||||
else:
|
else:
|
||||||
country = _country # type: ignore[arg-type]
|
country = _country
|
||||||
|
|
||||||
state = d.pop("state", UNSET)
|
state = d.pop("state", UNSET)
|
||||||
|
|
||||||
@ -75,8 +77,10 @@ class NewAddress:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
zip = d.pop("zip", UNSET)
|
zip = d.pop("zip", UNSET)
|
||||||
|
|
||||||
|
@ -117,8 +117,10 @@ class export:
|
|||||||
data: Union[Unset, Export]
|
data: Union[Unset, Export]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Export.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -180,8 +182,10 @@ class select_with_point:
|
|||||||
data: Union[Unset, SelectWithPoint]
|
data: Union[Unset, SelectWithPoint]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = SelectWithPoint.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -243,8 +247,10 @@ class highlight_set_entity:
|
|||||||
data: Union[Unset, HighlightSetEntity]
|
data: Union[Unset, HighlightSetEntity]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = HighlightSetEntity.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -306,8 +312,10 @@ class entity_get_child_uuid:
|
|||||||
data: Union[Unset, EntityGetChildUuid]
|
data: Union[Unset, EntityGetChildUuid]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = EntityGetChildUuid.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -369,8 +377,10 @@ class entity_get_num_children:
|
|||||||
data: Union[Unset, EntityGetNumChildren]
|
data: Union[Unset, EntityGetNumChildren]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = EntityGetNumChildren.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -432,8 +442,10 @@ class entity_get_parent_id:
|
|||||||
data: Union[Unset, EntityGetParentId]
|
data: Union[Unset, EntityGetParentId]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = EntityGetParentId.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -495,8 +507,10 @@ class entity_get_all_child_uuids:
|
|||||||
data: Union[Unset, EntityGetAllChildUuids]
|
data: Union[Unset, EntityGetAllChildUuids]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = EntityGetAllChildUuids.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -558,8 +572,10 @@ class select_get:
|
|||||||
data: Union[Unset, SelectGet]
|
data: Union[Unset, SelectGet]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = SelectGet.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -621,8 +637,10 @@ class get_entity_type:
|
|||||||
data: Union[Unset, GetEntityType]
|
data: Union[Unset, GetEntityType]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = GetEntityType.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -684,8 +702,10 @@ class solid3d_get_all_edge_faces:
|
|||||||
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Solid3dGetAllEdgeFaces.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -747,8 +767,10 @@ class solid3d_get_all_opposite_edges:
|
|||||||
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Solid3dGetAllOppositeEdges.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -810,8 +832,10 @@ class solid3d_get_opposite_edge:
|
|||||||
data: Union[Unset, Solid3dGetOppositeEdge]
|
data: Union[Unset, Solid3dGetOppositeEdge]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Solid3dGetOppositeEdge.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -873,8 +897,10 @@ class solid3d_get_prev_adjacent_edge:
|
|||||||
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Solid3dGetPrevAdjacentEdge.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -936,8 +962,10 @@ class solid3d_get_next_adjacent_edge:
|
|||||||
data: Union[Unset, Solid3dGetNextAdjacentEdge]
|
data: Union[Unset, Solid3dGetNextAdjacentEdge]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Solid3dGetNextAdjacentEdge.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -999,8 +1027,10 @@ class mouse_click:
|
|||||||
data: Union[Unset, MouseClick]
|
data: Union[Unset, MouseClick]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = MouseClick.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1062,8 +1092,10 @@ class curve_get_type:
|
|||||||
data: Union[Unset, CurveGetType]
|
data: Union[Unset, CurveGetType]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = CurveGetType.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1125,8 +1157,10 @@ class curve_get_control_points:
|
|||||||
data: Union[Unset, CurveGetControlPoints]
|
data: Union[Unset, CurveGetControlPoints]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = CurveGetControlPoints.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1188,8 +1222,10 @@ class take_snapshot:
|
|||||||
data: Union[Unset, TakeSnapshot]
|
data: Union[Unset, TakeSnapshot]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = TakeSnapshot.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1251,8 +1287,10 @@ class path_get_info:
|
|||||||
data: Union[Unset, PathGetInfo]
|
data: Union[Unset, PathGetInfo]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = PathGetInfo.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1314,8 +1352,10 @@ class path_get_curve_uuids_for_vertices:
|
|||||||
data: Union[Unset, PathGetCurveUuidsForVertices]
|
data: Union[Unset, PathGetCurveUuidsForVertices]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = PathGetCurveUuidsForVertices.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1377,8 +1417,10 @@ class path_get_vertex_uuids:
|
|||||||
data: Union[Unset, PathGetVertexUuids]
|
data: Union[Unset, PathGetVertexUuids]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = PathGetVertexUuids.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1440,8 +1482,10 @@ class plane_intersect_and_project:
|
|||||||
data: Union[Unset, PlaneIntersectAndProject]
|
data: Union[Unset, PlaneIntersectAndProject]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = PlaneIntersectAndProject.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1503,8 +1547,10 @@ class curve_get_end_points:
|
|||||||
data: Union[Unset, CurveGetEndPoints]
|
data: Union[Unset, CurveGetEndPoints]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = CurveGetEndPoints.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1566,8 +1612,10 @@ class import_files:
|
|||||||
data: Union[Unset, ImportFiles]
|
data: Union[Unset, ImportFiles]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = ImportFiles.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1629,8 +1677,10 @@ class mass:
|
|||||||
data: Union[Unset, Mass]
|
data: Union[Unset, Mass]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Mass.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1692,8 +1742,10 @@ class volume:
|
|||||||
data: Union[Unset, Volume]
|
data: Union[Unset, Volume]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Volume.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1755,8 +1807,10 @@ class density:
|
|||||||
data: Union[Unset, Density]
|
data: Union[Unset, Density]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = Density.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1818,8 +1872,10 @@ class surface_area:
|
|||||||
data: Union[Unset, SurfaceArea]
|
data: Union[Unset, SurfaceArea]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = SurfaceArea.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1881,8 +1937,10 @@ class center_of_mass:
|
|||||||
data: Union[Unset, CenterOfMass]
|
data: Union[Unset, CenterOfMass]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = CenterOfMass.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -1944,8 +2002,10 @@ class get_sketch_mode_plane:
|
|||||||
data: Union[Unset, GetSketchModePlane]
|
data: Union[Unset, GetSketchModePlane]
|
||||||
if isinstance(_data, Unset):
|
if isinstance(_data, Unset):
|
||||||
data = UNSET
|
data = UNSET
|
||||||
|
if _data is None:
|
||||||
|
data = UNSET
|
||||||
else:
|
else:
|
||||||
data = _data # type: ignore[arg-type]
|
data = GetSketchModePlane.from_dict(_data)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
|
@ -45,8 +45,10 @@ class fbx:
|
|||||||
storage: Union[Unset, FbxStorage]
|
storage: Union[Unset, FbxStorage]
|
||||||
if isinstance(_storage, Unset):
|
if isinstance(_storage, Unset):
|
||||||
storage = UNSET
|
storage = UNSET
|
||||||
|
if _storage is None:
|
||||||
|
storage = UNSET
|
||||||
else:
|
else:
|
||||||
storage = _storage # type: ignore[arg-type]
|
storage = _storage
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -113,15 +115,19 @@ class gltf:
|
|||||||
presentation: Union[Unset, GltfPresentation]
|
presentation: Union[Unset, GltfPresentation]
|
||||||
if isinstance(_presentation, Unset):
|
if isinstance(_presentation, Unset):
|
||||||
presentation = UNSET
|
presentation = UNSET
|
||||||
|
if _presentation is None:
|
||||||
|
presentation = UNSET
|
||||||
else:
|
else:
|
||||||
presentation = _presentation # type: ignore[arg-type]
|
presentation = _presentation
|
||||||
|
|
||||||
_storage = d.pop("storage", UNSET)
|
_storage = d.pop("storage", UNSET)
|
||||||
storage: Union[Unset, GltfStorage]
|
storage: Union[Unset, GltfStorage]
|
||||||
if isinstance(_storage, Unset):
|
if isinstance(_storage, Unset):
|
||||||
storage = UNSET
|
storage = UNSET
|
||||||
|
if _storage is None:
|
||||||
|
storage = UNSET
|
||||||
else:
|
else:
|
||||||
storage = _storage # type: ignore[arg-type]
|
storage = _storage
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -189,8 +195,10 @@ class obj:
|
|||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
if isinstance(_coords, Unset):
|
if isinstance(_coords, Unset):
|
||||||
coords = UNSET
|
coords = UNSET
|
||||||
|
if _coords is None:
|
||||||
|
coords = UNSET
|
||||||
else:
|
else:
|
||||||
coords = _coords # type: ignore[arg-type]
|
coords = System.from_dict(_coords)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -198,8 +206,10 @@ class obj:
|
|||||||
units: Union[Unset, UnitLength]
|
units: Union[Unset, UnitLength]
|
||||||
if isinstance(_units, Unset):
|
if isinstance(_units, Unset):
|
||||||
units = UNSET
|
units = UNSET
|
||||||
|
if _units is None:
|
||||||
|
units = UNSET
|
||||||
else:
|
else:
|
||||||
units = _units # type: ignore[arg-type]
|
units = _units
|
||||||
|
|
||||||
obj = cls(
|
obj = cls(
|
||||||
coords=coords,
|
coords=coords,
|
||||||
@ -275,22 +285,28 @@ class ply:
|
|||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
if isinstance(_coords, Unset):
|
if isinstance(_coords, Unset):
|
||||||
coords = UNSET
|
coords = UNSET
|
||||||
|
if _coords is None:
|
||||||
|
coords = UNSET
|
||||||
else:
|
else:
|
||||||
coords = _coords # type: ignore[arg-type]
|
coords = System.from_dict(_coords)
|
||||||
|
|
||||||
_selection = d.pop("selection", UNSET)
|
_selection = d.pop("selection", UNSET)
|
||||||
selection: Union[Unset, Selection]
|
selection: Union[Unset, Selection]
|
||||||
if isinstance(_selection, Unset):
|
if isinstance(_selection, Unset):
|
||||||
selection = UNSET
|
selection = UNSET
|
||||||
|
if _selection is None:
|
||||||
|
selection = UNSET
|
||||||
else:
|
else:
|
||||||
selection = _selection # type: ignore[arg-type]
|
selection = Selection.from_dict(_selection)
|
||||||
|
|
||||||
_storage = d.pop("storage", UNSET)
|
_storage = d.pop("storage", UNSET)
|
||||||
storage: Union[Unset, PlyStorage]
|
storage: Union[Unset, PlyStorage]
|
||||||
if isinstance(_storage, Unset):
|
if isinstance(_storage, Unset):
|
||||||
storage = UNSET
|
storage = UNSET
|
||||||
|
if _storage is None:
|
||||||
|
storage = UNSET
|
||||||
else:
|
else:
|
||||||
storage = _storage # type: ignore[arg-type]
|
storage = _storage
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -298,8 +314,10 @@ class ply:
|
|||||||
units: Union[Unset, UnitLength]
|
units: Union[Unset, UnitLength]
|
||||||
if isinstance(_units, Unset):
|
if isinstance(_units, Unset):
|
||||||
units = UNSET
|
units = UNSET
|
||||||
|
if _units is None:
|
||||||
|
units = UNSET
|
||||||
else:
|
else:
|
||||||
units = _units # type: ignore[arg-type]
|
units = _units
|
||||||
|
|
||||||
ply = cls(
|
ply = cls(
|
||||||
coords=coords,
|
coords=coords,
|
||||||
@ -362,8 +380,10 @@ class step:
|
|||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
if isinstance(_coords, Unset):
|
if isinstance(_coords, Unset):
|
||||||
coords = UNSET
|
coords = UNSET
|
||||||
|
if _coords is None:
|
||||||
|
coords = UNSET
|
||||||
else:
|
else:
|
||||||
coords = _coords # type: ignore[arg-type]
|
coords = System.from_dict(_coords)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -440,22 +460,28 @@ class stl:
|
|||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
if isinstance(_coords, Unset):
|
if isinstance(_coords, Unset):
|
||||||
coords = UNSET
|
coords = UNSET
|
||||||
|
if _coords is None:
|
||||||
|
coords = UNSET
|
||||||
else:
|
else:
|
||||||
coords = _coords # type: ignore[arg-type]
|
coords = System.from_dict(_coords)
|
||||||
|
|
||||||
_selection = d.pop("selection", UNSET)
|
_selection = d.pop("selection", UNSET)
|
||||||
selection: Union[Unset, Selection]
|
selection: Union[Unset, Selection]
|
||||||
if isinstance(_selection, Unset):
|
if isinstance(_selection, Unset):
|
||||||
selection = UNSET
|
selection = UNSET
|
||||||
|
if _selection is None:
|
||||||
|
selection = UNSET
|
||||||
else:
|
else:
|
||||||
selection = _selection # type: ignore[arg-type]
|
selection = Selection.from_dict(_selection)
|
||||||
|
|
||||||
_storage = d.pop("storage", UNSET)
|
_storage = d.pop("storage", UNSET)
|
||||||
storage: Union[Unset, StlStorage]
|
storage: Union[Unset, StlStorage]
|
||||||
if isinstance(_storage, Unset):
|
if isinstance(_storage, Unset):
|
||||||
storage = UNSET
|
storage = UNSET
|
||||||
|
if _storage is None:
|
||||||
|
storage = UNSET
|
||||||
else:
|
else:
|
||||||
storage = _storage # type: ignore[arg-type]
|
storage = _storage
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -463,8 +489,10 @@ class stl:
|
|||||||
units: Union[Unset, UnitLength]
|
units: Union[Unset, UnitLength]
|
||||||
if isinstance(_units, Unset):
|
if isinstance(_units, Unset):
|
||||||
units = UNSET
|
units = UNSET
|
||||||
|
if _units is None:
|
||||||
|
units = UNSET
|
||||||
else:
|
else:
|
||||||
units = _units # type: ignore[arg-type]
|
units = _units
|
||||||
|
|
||||||
stl = cls(
|
stl = cls(
|
||||||
coords=coords,
|
coords=coords,
|
||||||
|
@ -44,8 +44,10 @@ class line:
|
|||||||
end: Union[Unset, Point3d]
|
end: Union[Unset, Point3d]
|
||||||
if isinstance(_end, Unset):
|
if isinstance(_end, Unset):
|
||||||
end = UNSET
|
end = UNSET
|
||||||
|
if _end is None:
|
||||||
|
end = UNSET
|
||||||
else:
|
else:
|
||||||
end = _end # type: ignore[arg-type]
|
end = Point3d.from_dict(_end)
|
||||||
|
|
||||||
relative = d.pop("relative", UNSET)
|
relative = d.pop("relative", UNSET)
|
||||||
|
|
||||||
@ -140,15 +142,19 @@ class arc:
|
|||||||
center: Union[Unset, Point2d]
|
center: Union[Unset, Point2d]
|
||||||
if isinstance(_center, Unset):
|
if isinstance(_center, Unset):
|
||||||
center = UNSET
|
center = UNSET
|
||||||
|
if _center is None:
|
||||||
|
center = UNSET
|
||||||
else:
|
else:
|
||||||
center = _center # type: ignore[arg-type]
|
center = Point2d.from_dict(_center)
|
||||||
|
|
||||||
_end = d.pop("end", UNSET)
|
_end = d.pop("end", UNSET)
|
||||||
end: Union[Unset, Angle]
|
end: Union[Unset, Angle]
|
||||||
if isinstance(_end, Unset):
|
if isinstance(_end, Unset):
|
||||||
end = UNSET
|
end = UNSET
|
||||||
|
if _end is None:
|
||||||
|
end = UNSET
|
||||||
else:
|
else:
|
||||||
end = _end # type: ignore[arg-type]
|
end = Angle.from_dict(_end)
|
||||||
|
|
||||||
radius = d.pop("radius", UNSET)
|
radius = d.pop("radius", UNSET)
|
||||||
|
|
||||||
@ -158,8 +164,10 @@ class arc:
|
|||||||
start: Union[Unset, Angle]
|
start: Union[Unset, Angle]
|
||||||
if isinstance(_start, Unset):
|
if isinstance(_start, Unset):
|
||||||
start = UNSET
|
start = UNSET
|
||||||
|
if _start is None:
|
||||||
|
start = UNSET
|
||||||
else:
|
else:
|
||||||
start = _start # type: ignore[arg-type]
|
start = Angle.from_dict(_start)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -241,22 +249,28 @@ class bezier:
|
|||||||
control1: Union[Unset, Point3d]
|
control1: Union[Unset, Point3d]
|
||||||
if isinstance(_control1, Unset):
|
if isinstance(_control1, Unset):
|
||||||
control1 = UNSET
|
control1 = UNSET
|
||||||
|
if _control1 is None:
|
||||||
|
control1 = UNSET
|
||||||
else:
|
else:
|
||||||
control1 = _control1 # type: ignore[arg-type]
|
control1 = Point3d.from_dict(_control1)
|
||||||
|
|
||||||
_control2 = d.pop("control2", UNSET)
|
_control2 = d.pop("control2", UNSET)
|
||||||
control2: Union[Unset, Point3d]
|
control2: Union[Unset, Point3d]
|
||||||
if isinstance(_control2, Unset):
|
if isinstance(_control2, Unset):
|
||||||
control2 = UNSET
|
control2 = UNSET
|
||||||
|
if _control2 is None:
|
||||||
|
control2 = UNSET
|
||||||
else:
|
else:
|
||||||
control2 = _control2 # type: ignore[arg-type]
|
control2 = Point3d.from_dict(_control2)
|
||||||
|
|
||||||
_end = d.pop("end", UNSET)
|
_end = d.pop("end", UNSET)
|
||||||
end: Union[Unset, Point3d]
|
end: Union[Unset, Point3d]
|
||||||
if isinstance(_end, Unset):
|
if isinstance(_end, Unset):
|
||||||
end = UNSET
|
end = UNSET
|
||||||
|
if _end is None:
|
||||||
|
end = UNSET
|
||||||
else:
|
else:
|
||||||
end = _end # type: ignore[arg-type]
|
end = Point3d.from_dict(_end)
|
||||||
|
|
||||||
relative = d.pop("relative", UNSET)
|
relative = d.pop("relative", UNSET)
|
||||||
|
|
||||||
@ -327,8 +341,10 @@ class tangential_arc:
|
|||||||
offset: Union[Unset, Angle]
|
offset: Union[Unset, Angle]
|
||||||
if isinstance(_offset, Unset):
|
if isinstance(_offset, Unset):
|
||||||
offset = UNSET
|
offset = UNSET
|
||||||
|
if _offset is None:
|
||||||
|
offset = UNSET
|
||||||
else:
|
else:
|
||||||
offset = _offset # type: ignore[arg-type]
|
offset = Angle.from_dict(_offset)
|
||||||
|
|
||||||
radius = d.pop("radius", UNSET)
|
radius = d.pop("radius", UNSET)
|
||||||
|
|
||||||
@ -398,15 +414,19 @@ class tangential_arc_to:
|
|||||||
angle_snap_increment: Union[Unset, Angle]
|
angle_snap_increment: Union[Unset, Angle]
|
||||||
if isinstance(_angle_snap_increment, Unset):
|
if isinstance(_angle_snap_increment, Unset):
|
||||||
angle_snap_increment = UNSET
|
angle_snap_increment = UNSET
|
||||||
|
if _angle_snap_increment is None:
|
||||||
|
angle_snap_increment = UNSET
|
||||||
else:
|
else:
|
||||||
angle_snap_increment = _angle_snap_increment # type: ignore[arg-type]
|
angle_snap_increment = Angle.from_dict(_angle_snap_increment)
|
||||||
|
|
||||||
_to = d.pop("to", UNSET)
|
_to = d.pop("to", UNSET)
|
||||||
to: Union[Unset, Point3d]
|
to: Union[Unset, Point3d]
|
||||||
if isinstance(_to, Unset):
|
if isinstance(_to, Unset):
|
||||||
to = UNSET
|
to = UNSET
|
||||||
|
if _to is None:
|
||||||
|
to = UNSET
|
||||||
else:
|
else:
|
||||||
to = _to # type: ignore[arg-type]
|
to = Point3d.from_dict(_to)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
|
@ -45,15 +45,19 @@ class PathSegmentInfo:
|
|||||||
command: Union[Unset, PathCommand]
|
command: Union[Unset, PathCommand]
|
||||||
if isinstance(_command, Unset):
|
if isinstance(_command, Unset):
|
||||||
command = UNSET
|
command = UNSET
|
||||||
|
if _command is None:
|
||||||
|
command = UNSET
|
||||||
else:
|
else:
|
||||||
command = _command # type: ignore[arg-type]
|
command = _command
|
||||||
|
|
||||||
_command_id = d.pop("command_id", UNSET)
|
_command_id = d.pop("command_id", UNSET)
|
||||||
command_id: Union[Unset, ModelingCmdId]
|
command_id: Union[Unset, ModelingCmdId]
|
||||||
if isinstance(_command_id, Unset):
|
if isinstance(_command_id, Unset):
|
||||||
command_id = UNSET
|
command_id = UNSET
|
||||||
|
if _command_id is None:
|
||||||
|
command_id = UNSET
|
||||||
else:
|
else:
|
||||||
command_id = _command_id # type: ignore[arg-type]
|
command_id = _command_id
|
||||||
|
|
||||||
relative = d.pop("relative", UNSET)
|
relative = d.pop("relative", UNSET)
|
||||||
|
|
||||||
|
@ -64,15 +64,19 @@ class PaymentMethod:
|
|||||||
billing_info: Union[Unset, BillingInfo]
|
billing_info: Union[Unset, BillingInfo]
|
||||||
if isinstance(_billing_info, Unset):
|
if isinstance(_billing_info, Unset):
|
||||||
billing_info = UNSET
|
billing_info = UNSET
|
||||||
|
if _billing_info is None:
|
||||||
|
billing_info = UNSET
|
||||||
else:
|
else:
|
||||||
billing_info = _billing_info # type: ignore[arg-type]
|
billing_info = BillingInfo.from_dict(_billing_info)
|
||||||
|
|
||||||
_card = d.pop("card", UNSET)
|
_card = d.pop("card", UNSET)
|
||||||
card: Union[Unset, CardDetails]
|
card: Union[Unset, CardDetails]
|
||||||
if isinstance(_card, Unset):
|
if isinstance(_card, Unset):
|
||||||
card = UNSET
|
card = UNSET
|
||||||
|
if _card is None:
|
||||||
|
card = UNSET
|
||||||
else:
|
else:
|
||||||
card = _card # type: ignore[arg-type]
|
card = CardDetails.from_dict(_card)
|
||||||
|
|
||||||
_created_at = d.pop("created_at", UNSET)
|
_created_at = d.pop("created_at", UNSET)
|
||||||
created_at: Union[Unset, datetime.datetime]
|
created_at: Union[Unset, datetime.datetime]
|
||||||
@ -89,8 +93,10 @@ class PaymentMethod:
|
|||||||
type: Union[Unset, PaymentMethodType]
|
type: Union[Unset, PaymentMethodType]
|
||||||
if isinstance(_type, Unset):
|
if isinstance(_type, Unset):
|
||||||
type = UNSET
|
type = UNSET
|
||||||
|
if _type is None:
|
||||||
|
type = UNSET
|
||||||
else:
|
else:
|
||||||
type = _type # type: ignore[arg-type]
|
type = _type
|
||||||
|
|
||||||
payment_method = cls(
|
payment_method = cls(
|
||||||
billing_info=billing_info,
|
billing_info=billing_info,
|
||||||
|
@ -35,8 +35,10 @@ class PlaneIntersectAndProject:
|
|||||||
plane_coordinates: Union[Unset, Point2d]
|
plane_coordinates: Union[Unset, Point2d]
|
||||||
if isinstance(_plane_coordinates, Unset):
|
if isinstance(_plane_coordinates, Unset):
|
||||||
plane_coordinates = UNSET
|
plane_coordinates = UNSET
|
||||||
|
if _plane_coordinates is None:
|
||||||
|
plane_coordinates = UNSET
|
||||||
else:
|
else:
|
||||||
plane_coordinates = _plane_coordinates # type: ignore[arg-type]
|
plane_coordinates = Point2d.from_dict(_plane_coordinates)
|
||||||
|
|
||||||
plane_intersect_and_project = cls(
|
plane_intersect_and_project = cls(
|
||||||
plane_coordinates=plane_coordinates,
|
plane_coordinates=plane_coordinates,
|
||||||
|
@ -41,8 +41,10 @@ class RtcSessionDescription:
|
|||||||
type: Union[Unset, RtcSdpType]
|
type: Union[Unset, RtcSdpType]
|
||||||
if isinstance(_type, Unset):
|
if isinstance(_type, Unset):
|
||||||
type = UNSET
|
type = UNSET
|
||||||
|
if _type is None:
|
||||||
|
type = UNSET
|
||||||
else:
|
else:
|
||||||
type = _type # type: ignore[arg-type]
|
type = _type
|
||||||
|
|
||||||
rtc_session_description = cls(
|
rtc_session_description = cls(
|
||||||
sdp=sdp,
|
sdp=sdp,
|
||||||
|
@ -78,15 +78,19 @@ class Session:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
_session_token = d.pop("session_token", UNSET)
|
_session_token = d.pop("session_token", UNSET)
|
||||||
session_token: Union[Unset, Uuid]
|
session_token: Union[Unset, Uuid]
|
||||||
if isinstance(_session_token, Unset):
|
if isinstance(_session_token, Unset):
|
||||||
session_token = UNSET
|
session_token = UNSET
|
||||||
|
if _session_token is None:
|
||||||
|
session_token = UNSET
|
||||||
else:
|
else:
|
||||||
session_token = _session_token # type: ignore[arg-type]
|
session_token = _session_token
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -99,8 +103,10 @@ class Session:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
session = cls(
|
session = cls(
|
||||||
created_at=created_at,
|
created_at=created_at,
|
||||||
|
@ -45,8 +45,10 @@ class SuccessWebSocketResponse:
|
|||||||
resp: Union[Unset, OkWebSocketResponseData]
|
resp: Union[Unset, OkWebSocketResponseData]
|
||||||
if isinstance(_resp, Unset):
|
if isinstance(_resp, Unset):
|
||||||
resp = UNSET
|
resp = UNSET
|
||||||
|
if _resp is None:
|
||||||
|
resp = UNSET
|
||||||
else:
|
else:
|
||||||
resp = _resp # type: ignore[arg-type]
|
resp = OkWebSocketResponseData.from_dict(_resp)
|
||||||
|
|
||||||
success = d.pop("success", UNSET)
|
success = d.pop("success", UNSET)
|
||||||
|
|
||||||
|
@ -39,8 +39,10 @@ class SurfaceArea:
|
|||||||
output_unit: Union[Unset, UnitArea]
|
output_unit: Union[Unset, UnitArea]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
surface_area = d.pop("surface_area", UNSET)
|
surface_area = d.pop("surface_area", UNSET)
|
||||||
|
|
||||||
|
@ -47,15 +47,19 @@ class System:
|
|||||||
forward: Union[Unset, AxisDirectionPair]
|
forward: Union[Unset, AxisDirectionPair]
|
||||||
if isinstance(_forward, Unset):
|
if isinstance(_forward, Unset):
|
||||||
forward = UNSET
|
forward = UNSET
|
||||||
|
if _forward is None:
|
||||||
|
forward = UNSET
|
||||||
else:
|
else:
|
||||||
forward = _forward # type: ignore[arg-type]
|
forward = AxisDirectionPair.from_dict(_forward)
|
||||||
|
|
||||||
_up = d.pop("up", UNSET)
|
_up = d.pop("up", UNSET)
|
||||||
up: Union[Unset, AxisDirectionPair]
|
up: Union[Unset, AxisDirectionPair]
|
||||||
if isinstance(_up, Unset):
|
if isinstance(_up, Unset):
|
||||||
up = UNSET
|
up = UNSET
|
||||||
|
if _up is None:
|
||||||
|
up = UNSET
|
||||||
else:
|
else:
|
||||||
up = _up # type: ignore[arg-type]
|
up = AxisDirectionPair.from_dict(_up)
|
||||||
|
|
||||||
system = cls(
|
system = cls(
|
||||||
forward=forward,
|
forward=forward,
|
||||||
|
@ -120,15 +120,19 @@ class TextToCad:
|
|||||||
feedback: Union[Unset, AiFeedback]
|
feedback: Union[Unset, AiFeedback]
|
||||||
if isinstance(_feedback, Unset):
|
if isinstance(_feedback, Unset):
|
||||||
feedback = UNSET
|
feedback = UNSET
|
||||||
|
if _feedback is None:
|
||||||
|
feedback = UNSET
|
||||||
else:
|
else:
|
||||||
feedback = _feedback # type: ignore[arg-type]
|
feedback = _feedback
|
||||||
|
|
||||||
_id = d.pop("id", UNSET)
|
_id = d.pop("id", UNSET)
|
||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
model_version = d.pop("model_version", UNSET)
|
model_version = d.pop("model_version", UNSET)
|
||||||
|
|
||||||
@ -136,8 +140,10 @@ class TextToCad:
|
|||||||
output_format: Union[Unset, FileExportFormat]
|
output_format: Union[Unset, FileExportFormat]
|
||||||
if isinstance(_output_format, Unset):
|
if isinstance(_output_format, Unset):
|
||||||
output_format = UNSET
|
output_format = UNSET
|
||||||
|
if _output_format is None:
|
||||||
|
output_format = UNSET
|
||||||
else:
|
else:
|
||||||
output_format = _output_format # type: ignore[arg-type]
|
output_format = _output_format
|
||||||
|
|
||||||
_outputs = d.pop("outputs", UNSET)
|
_outputs = d.pop("outputs", UNSET)
|
||||||
if isinstance(_outputs, Unset):
|
if isinstance(_outputs, Unset):
|
||||||
@ -161,8 +167,10 @@ class TextToCad:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -175,8 +183,10 @@ class TextToCad:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
text_to_cad = cls(
|
text_to_cad = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitAngleConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitAngleConversion:
|
|||||||
input_unit: Union[Unset, UnitAngle]
|
input_unit: Union[Unset, UnitAngle]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitAngleConversion:
|
|||||||
output_unit: Union[Unset, UnitAngle]
|
output_unit: Union[Unset, UnitAngle]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitAngleConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitAngleConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_angle_conversion = cls(
|
unit_angle_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitAreaConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitAreaConversion:
|
|||||||
input_unit: Union[Unset, UnitArea]
|
input_unit: Union[Unset, UnitArea]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitAreaConversion:
|
|||||||
output_unit: Union[Unset, UnitArea]
|
output_unit: Union[Unset, UnitArea]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitAreaConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitAreaConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_area_conversion = cls(
|
unit_area_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitCurrentConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitCurrentConversion:
|
|||||||
input_unit: Union[Unset, UnitCurrent]
|
input_unit: Union[Unset, UnitCurrent]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitCurrentConversion:
|
|||||||
output_unit: Union[Unset, UnitCurrent]
|
output_unit: Union[Unset, UnitCurrent]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitCurrentConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitCurrentConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_current_conversion = cls(
|
unit_current_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitEnergyConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitEnergyConversion:
|
|||||||
input_unit: Union[Unset, UnitEnergy]
|
input_unit: Union[Unset, UnitEnergy]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitEnergyConversion:
|
|||||||
output_unit: Union[Unset, UnitEnergy]
|
output_unit: Union[Unset, UnitEnergy]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitEnergyConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitEnergyConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_energy_conversion = cls(
|
unit_energy_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitForceConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitForceConversion:
|
|||||||
input_unit: Union[Unset, UnitForce]
|
input_unit: Union[Unset, UnitForce]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitForceConversion:
|
|||||||
output_unit: Union[Unset, UnitForce]
|
output_unit: Union[Unset, UnitForce]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitForceConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitForceConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_force_conversion = cls(
|
unit_force_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitFrequencyConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitFrequencyConversion:
|
|||||||
input_unit: Union[Unset, UnitFrequency]
|
input_unit: Union[Unset, UnitFrequency]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitFrequencyConversion:
|
|||||||
output_unit: Union[Unset, UnitFrequency]
|
output_unit: Union[Unset, UnitFrequency]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitFrequencyConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitFrequencyConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_frequency_conversion = cls(
|
unit_frequency_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitLengthConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitLengthConversion:
|
|||||||
input_unit: Union[Unset, UnitLength]
|
input_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitLengthConversion:
|
|||||||
output_unit: Union[Unset, UnitLength]
|
output_unit: Union[Unset, UnitLength]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitLengthConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitLengthConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_length_conversion = cls(
|
unit_length_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitMassConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitMassConversion:
|
|||||||
input_unit: Union[Unset, UnitMass]
|
input_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitMassConversion:
|
|||||||
output_unit: Union[Unset, UnitMass]
|
output_unit: Union[Unset, UnitMass]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitMassConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitMassConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_mass_conversion = cls(
|
unit_mass_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitPowerConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitPowerConversion:
|
|||||||
input_unit: Union[Unset, UnitPower]
|
input_unit: Union[Unset, UnitPower]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitPowerConversion:
|
|||||||
output_unit: Union[Unset, UnitPower]
|
output_unit: Union[Unset, UnitPower]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitPowerConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitPowerConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_power_conversion = cls(
|
unit_power_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitPressureConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitPressureConversion:
|
|||||||
input_unit: Union[Unset, UnitPressure]
|
input_unit: Union[Unset, UnitPressure]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitPressureConversion:
|
|||||||
output_unit: Union[Unset, UnitPressure]
|
output_unit: Union[Unset, UnitPressure]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitPressureConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitPressureConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_pressure_conversion = cls(
|
unit_pressure_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitTemperatureConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitTemperatureConversion:
|
|||||||
input_unit: Union[Unset, UnitTemperature]
|
input_unit: Union[Unset, UnitTemperature]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitTemperatureConversion:
|
|||||||
output_unit: Union[Unset, UnitTemperature]
|
output_unit: Union[Unset, UnitTemperature]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitTemperatureConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitTemperatureConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_temperature_conversion = cls(
|
unit_temperature_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitTorqueConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitTorqueConversion:
|
|||||||
input_unit: Union[Unset, UnitTorque]
|
input_unit: Union[Unset, UnitTorque]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitTorqueConversion:
|
|||||||
output_unit: Union[Unset, UnitTorque]
|
output_unit: Union[Unset, UnitTorque]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitTorqueConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitTorqueConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_torque_conversion = cls(
|
unit_torque_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -109,8 +109,10 @@ class UnitVolumeConversion:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
input = d.pop("input", UNSET)
|
input = d.pop("input", UNSET)
|
||||||
|
|
||||||
@ -118,8 +120,10 @@ class UnitVolumeConversion:
|
|||||||
input_unit: Union[Unset, UnitVolume]
|
input_unit: Union[Unset, UnitVolume]
|
||||||
if isinstance(_input_unit, Unset):
|
if isinstance(_input_unit, Unset):
|
||||||
input_unit = UNSET
|
input_unit = UNSET
|
||||||
|
if _input_unit is None:
|
||||||
|
input_unit = UNSET
|
||||||
else:
|
else:
|
||||||
input_unit = _input_unit # type: ignore[arg-type]
|
input_unit = _input_unit
|
||||||
|
|
||||||
output = d.pop("output", UNSET)
|
output = d.pop("output", UNSET)
|
||||||
|
|
||||||
@ -127,8 +131,10 @@ class UnitVolumeConversion:
|
|||||||
output_unit: Union[Unset, UnitVolume]
|
output_unit: Union[Unset, UnitVolume]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
_started_at = d.pop("started_at", UNSET)
|
_started_at = d.pop("started_at", UNSET)
|
||||||
started_at: Union[Unset, datetime.datetime]
|
started_at: Union[Unset, datetime.datetime]
|
||||||
@ -141,8 +147,10 @@ class UnitVolumeConversion:
|
|||||||
status: Union[Unset, ApiCallStatus]
|
status: Union[Unset, ApiCallStatus]
|
||||||
if isinstance(_status, Unset):
|
if isinstance(_status, Unset):
|
||||||
status = UNSET
|
status = UNSET
|
||||||
|
if _status is None:
|
||||||
|
status = UNSET
|
||||||
else:
|
else:
|
||||||
status = _status # type: ignore[arg-type]
|
status = _status
|
||||||
|
|
||||||
_updated_at = d.pop("updated_at", UNSET)
|
_updated_at = d.pop("updated_at", UNSET)
|
||||||
updated_at: Union[Unset, datetime.datetime]
|
updated_at: Union[Unset, datetime.datetime]
|
||||||
@ -155,8 +163,10 @@ class UnitVolumeConversion:
|
|||||||
user_id: Union[Unset, Uuid]
|
user_id: Union[Unset, Uuid]
|
||||||
if isinstance(_user_id, Unset):
|
if isinstance(_user_id, Unset):
|
||||||
user_id = UNSET
|
user_id = UNSET
|
||||||
|
if _user_id is None:
|
||||||
|
user_id = UNSET
|
||||||
else:
|
else:
|
||||||
user_id = _user_id # type: ignore[arg-type]
|
user_id = _user_id
|
||||||
|
|
||||||
unit_volume_conversion = cls(
|
unit_volume_conversion = cls(
|
||||||
completed_at=completed_at,
|
completed_at=completed_at,
|
||||||
|
@ -114,8 +114,10 @@ class User:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
image = d.pop("image", UNSET)
|
image = d.pop("image", UNSET)
|
||||||
|
|
||||||
|
@ -74,8 +74,10 @@ class VerificationToken:
|
|||||||
id: Union[Unset, Uuid]
|
id: Union[Unset, Uuid]
|
||||||
if isinstance(_id, Unset):
|
if isinstance(_id, Unset):
|
||||||
id = UNSET
|
id = UNSET
|
||||||
|
if _id is None:
|
||||||
|
id = UNSET
|
||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id
|
||||||
|
|
||||||
identifier = d.pop("identifier", UNSET)
|
identifier = d.pop("identifier", UNSET)
|
||||||
|
|
||||||
|
@ -39,8 +39,10 @@ class Volume:
|
|||||||
output_unit: Union[Unset, UnitVolume]
|
output_unit: Union[Unset, UnitVolume]
|
||||||
if isinstance(_output_unit, Unset):
|
if isinstance(_output_unit, Unset):
|
||||||
output_unit = UNSET
|
output_unit = UNSET
|
||||||
|
if _output_unit is None:
|
||||||
|
output_unit = UNSET
|
||||||
else:
|
else:
|
||||||
output_unit = _output_unit # type: ignore[arg-type]
|
output_unit = _output_unit
|
||||||
|
|
||||||
volume = d.pop("volume", UNSET)
|
volume = d.pop("volume", UNSET)
|
||||||
|
|
||||||
|
@ -42,8 +42,10 @@ class trickle_ice:
|
|||||||
candidate: Union[Unset, RtcIceCandidateInit]
|
candidate: Union[Unset, RtcIceCandidateInit]
|
||||||
if isinstance(_candidate, Unset):
|
if isinstance(_candidate, Unset):
|
||||||
candidate = UNSET
|
candidate = UNSET
|
||||||
|
if _candidate is None:
|
||||||
|
candidate = UNSET
|
||||||
else:
|
else:
|
||||||
candidate = _candidate # type: ignore[arg-type]
|
candidate = RtcIceCandidateInit.from_dict(_candidate)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -105,8 +107,10 @@ class sdp_offer:
|
|||||||
offer: Union[Unset, RtcSessionDescription]
|
offer: Union[Unset, RtcSessionDescription]
|
||||||
if isinstance(_offer, Unset):
|
if isinstance(_offer, Unset):
|
||||||
offer = UNSET
|
offer = UNSET
|
||||||
|
if _offer is None:
|
||||||
|
offer = UNSET
|
||||||
else:
|
else:
|
||||||
offer = _offer # type: ignore[arg-type]
|
offer = RtcSessionDescription.from_dict(_offer)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -173,15 +177,19 @@ class modeling_cmd_req:
|
|||||||
cmd: Union[Unset, ModelingCmd]
|
cmd: Union[Unset, ModelingCmd]
|
||||||
if isinstance(_cmd, Unset):
|
if isinstance(_cmd, Unset):
|
||||||
cmd = UNSET
|
cmd = UNSET
|
||||||
|
if _cmd is None:
|
||||||
|
cmd = UNSET
|
||||||
else:
|
else:
|
||||||
cmd = _cmd # type: ignore[arg-type]
|
cmd = ModelingCmd.from_dict(_cmd)
|
||||||
|
|
||||||
_cmd_id = d.pop("cmd_id", UNSET)
|
_cmd_id = d.pop("cmd_id", UNSET)
|
||||||
cmd_id: Union[Unset, ModelingCmdId]
|
cmd_id: Union[Unset, ModelingCmdId]
|
||||||
if isinstance(_cmd_id, Unset):
|
if isinstance(_cmd_id, Unset):
|
||||||
cmd_id = UNSET
|
cmd_id = UNSET
|
||||||
|
if _cmd_id is None:
|
||||||
|
cmd_id = UNSET
|
||||||
else:
|
else:
|
||||||
cmd_id = _cmd_id # type: ignore[arg-type]
|
cmd_id = _cmd_id
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -359,8 +367,10 @@ class metrics_response:
|
|||||||
metrics: Union[Unset, ClientMetrics]
|
metrics: Union[Unset, ClientMetrics]
|
||||||
if isinstance(_metrics, Unset):
|
if isinstance(_metrics, Unset):
|
||||||
metrics = UNSET
|
metrics = UNSET
|
||||||
|
if _metrics is None:
|
||||||
|
metrics = UNSET
|
||||||
else:
|
else:
|
||||||
metrics = _metrics # type: ignore[arg-type]
|
metrics = ClientMetrics.from_dict(_metrics)
|
||||||
|
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user