Update api spec (#140)
* YOYO NEW API SPEC! * bump version Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -2234,6 +2234,8 @@ def hasBase64(schema: dict) -> bool:
|
|||||||
if "type" in schema:
|
if "type" in schema:
|
||||||
type_name = schema["type"]
|
type_name = schema["type"]
|
||||||
if type_name == "object":
|
if type_name == "object":
|
||||||
|
if "additionalProperties" in schema:
|
||||||
|
return hasBase64(schema["additionalProperties"])
|
||||||
# Iternate over the properties.
|
# Iternate over the properties.
|
||||||
if "properties" in schema:
|
if "properties" in schema:
|
||||||
for property_name in schema["properties"]:
|
for property_name in schema["properties"]:
|
||||||
|
@ -1,162 +1,18 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ping/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.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",
|
"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.meta.ping.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/~1user~1extended/get/x-python",
|
"path": "/paths/~1async~1operations~1{id}/get/x-python",
|
||||||
"value": {
|
"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",
|
"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)\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 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 ] = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self_extended.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_async_operation.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/~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/~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/~1modeling~1cmd-batch/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import cmd_batch\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ModelingOutcomes\nfrom kittycad.models.modeling_cmd import move_path_pen\nfrom kittycad.models.modeling_cmd_id import ModelingCmdId\nfrom kittycad.models.modeling_cmd_req import ModelingCmdReq\nfrom kittycad.models.modeling_cmd_req_batch import ModelingCmdReqBatch\nfrom kittycad.models.point3d import Point3d\nfrom kittycad.types import Response\n\n\ndef example_cmd_batch():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ModelingOutcomes, Error]] = cmd_batch.sync(\n client=client,\n body=ModelingCmdReqBatch(\n cmds={\n \"<string>\": ModelingCmdReq(\n cmd=move_path_pen(\n path=ModelingCmdId(\"<uuid>\"),\n to=Point3d(\n x=3.14,\n y=3.14,\n z=3.14,\n ),\n ),\n cmd_id=ModelingCmdId(\"<uuid>\"),\n )\n },\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ModelingOutcomes = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd_batch.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/~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/~1ai~1image-to-3d~1{input_format}~1{output_format}/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_image_to_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.image_type import ImageType\nfrom kittycad.types import Response\n\n\ndef example_create_image_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_image_to_3d.sync(\n client=client,\n input_format=ImageType.PNG,\n output_format=FileExportFormat.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: Mesh = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_image_to_3d.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~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"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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/~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/~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/~1user~1payment~1balance/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_balance_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CustomerBalance, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_balance_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[CustomerBalance, Error]\n ] = get_payment_balance_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: CustomerBalance = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_balance_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/~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/~1file~1mass/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileMass\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_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileMass, Error]] = create_file_mass.sync(\n client=client,\n material_density=3.14,\n material_density_unit=UnitDensity.LB_FT3,\n output_unit=UnitMass.G,\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: FileMass = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user/delete/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import delete_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_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: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.delete_user_self.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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -169,90 +25,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1auth~1email~1callback/get/x-python",
|
"path": "/paths/~1user/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.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.hidden.auth_email_callback.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1user/delete/x-python",
|
||||||
"value": {
|
"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",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import delete_user_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_user_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_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: Error = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_power_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.delete_user_self.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/~1user~1api-calls/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import user_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_user_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = user_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.api_calls.user_list_api_calls.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/~1ws~1modeling~1commands/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\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/~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~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/~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/~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~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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -263,30 +47,6 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.html"
|
"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/~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~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",
|
"op": "add",
|
||||||
"path": "/paths/~1apps~1github~1consent/get/x-python",
|
"path": "/paths/~1apps~1github~1consent/get/x-python",
|
||||||
@ -297,50 +57,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1file~1conversion~1{src_format}~1{output_format}/post/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.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.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.file.create_file_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_current_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1_meta~1info/get/x-python",
|
"path": "/paths/~1users~1{id}/get/x-python",
|
||||||
"value": {
|
"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",
|
"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.meta.get_metadata.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user.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/~1apps~1github~1callback/get/x-python",
|
|
||||||
"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",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_callback.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/~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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -351,54 +79,6 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd.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/~1async~1operations/get/x-python",
|
|
||||||
"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",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1logout/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import logout\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_logout():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = logout.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.hidden.logout.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"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~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\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.api_calls.list_api_calls.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1.well-known~1ai-plugin.json/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_ai_plugin_manifest\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPluginManifest, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_plugin_manifest():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AiPluginManifest, Error]\n ] = get_ai_plugin_manifest.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: AiPluginManifest = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_ai_plugin_manifest.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1api-tokens/get/x-python",
|
"path": "/paths/~1user~1api-tokens/get/x-python",
|
||||||
@ -417,82 +97,34 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ws~1executor~1term/get/x-python",
|
"path": "/paths/~1unit~1conversion~1energy~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_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.executor.create_executor_term.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_energy_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1apps~1github~1webhook/post/x-python",
|
"path": "/paths/~1unit~1conversion~1area~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_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",
|
"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.apps.apps_github_webhook.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_area_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1user~1onboarding/get/x-python",
|
||||||
"value": {
|
"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",
|
"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.unit.get_length_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1user~1payment/put/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.payments import update_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.models.billing_info import BillingInfo\nfrom kittycad.types import Response\n\n\ndef example_update_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = update_payment_information_for_user.sync(\n client=client,\n body=BillingInfo(\n 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: Customer = 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.payments.update_payment_information_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/~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/~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/~1ai~1text-to-3d~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_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_text_to_3d.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n prompt=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Mesh = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_3d.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/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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -513,26 +145,74 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment/put/x-python",
|
"path": "/paths/~1user~1payment/delete/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import update_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.models.billing_info import BillingInfo\nfrom kittycad.types import Response\n\n\ndef example_update_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = update_payment_information_for_user.sync(\n client=client,\n body=BillingInfo(\n 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: Customer = result\n print(body)\n",
|
"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.update_payment_information_for_user.html"
|
"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~1methods~1{id}/delete/x-python",
|
"path": "/paths/~1async~1operations/get/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.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.payments.delete_payment_method_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1async~1operations~1{id}/get/x-python",
|
"path": "/paths/~1auth~1email~1callback/get/x-python",
|
||||||
"value": {
|
"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)\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 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 ] = result\n print(body)\n",
|
"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.api_calls.get_async_operation.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email_callback.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~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/~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/~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/~1ws~1modeling~1commands/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\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/~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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -545,10 +225,282 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1api-calls~1{id}/get/x-python",
|
"path": "/paths/~1_meta~1info/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.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.api_calls.get_api_call_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.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~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/~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/~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/~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~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/~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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python",
|
||||||
|
"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",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_method_for_user.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/~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/~1modeling~1cmd-batch/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import cmd_batch\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ModelingOutcomes\nfrom kittycad.models.modeling_cmd import move_path_pen\nfrom kittycad.models.modeling_cmd_id import ModelingCmdId\nfrom kittycad.models.modeling_cmd_req import ModelingCmdReq\nfrom kittycad.models.modeling_cmd_req_batch import ModelingCmdReqBatch\nfrom kittycad.models.point3d import Point3d\nfrom kittycad.types import Response\n\n\ndef example_cmd_batch():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ModelingOutcomes, Error]] = cmd_batch.sync(\n client=client,\n body=ModelingCmdReqBatch(\n cmds={\n \"<string>\": ModelingCmdReq(\n cmd=move_path_pen(\n path=ModelingCmdId(\"<uuid>\"),\n to=Point3d(\n x=3.14,\n y=3.14,\n z=3.14,\n ),\n ),\n cmd_id=ModelingCmdId(\"<uuid>\"),\n )\n },\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ModelingOutcomes = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd_batch.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/~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/~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/~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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ai~1image-to-3d~1{input_format}~1{output_format}/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_image_to_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.image_type import ImageType\nfrom kittycad.types import Response\n\n\ndef example_create_image_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_image_to_3d.sync(\n client=client,\n input_format=ImageType.PNG,\n output_format=FileExportFormat.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: Mesh = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_image_to_3d.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/~1user~1api-calls/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import user_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_user_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = user_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.api_calls.user_list_api_calls.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/~1apps~1github~1callback/get/x-python",
|
||||||
|
"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",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_callback.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/~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/~1user~1payment~1balance/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_balance_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CustomerBalance, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_balance_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[CustomerBalance, Error]\n ] = get_payment_balance_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: CustomerBalance = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_balance_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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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/~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~1text-to-3d~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_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_text_to_3d.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n prompt=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Mesh = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_3d.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/~1file~1mass/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileMass\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_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileMass, Error]] = create_file_mass.sync(\n client=client,\n material_density=3.14,\n material_density_unit=UnitDensity.LB_FT3,\n output_unit=UnitMass.G,\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: FileMass = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.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/~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/~1.well-known~1ai-plugin.json/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_ai_plugin_manifest\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPluginManifest, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_plugin_manifest():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AiPluginManifest, Error]\n ] = get_ai_plugin_manifest.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: AiPluginManifest = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_ai_plugin_manifest.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~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\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.api_calls.list_api_calls.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -559,6 +511,54 @@
|
|||||||
"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.users.get_user_extended.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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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/~1logout/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import logout\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_logout():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = logout.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.hidden.logout.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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~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_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.api_calls.get_api_call_for_user.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",
|
"op": "add",
|
||||||
"path": "/info/x-python",
|
"path": "/info/x-python",
|
||||||
|
@ -30,7 +30,6 @@ class file_conversion:
|
|||||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||||
error: Union[Unset, str] = UNSET
|
error: Union[Unset, str] = UNSET
|
||||||
id: Union[Unset, str] = UNSET
|
id: Union[Unset, str] = UNSET
|
||||||
output: Union[Unset, Base64Data] = UNSET
|
|
||||||
output_format: Union[Unset, FileExportFormat] = UNSET
|
output_format: Union[Unset, FileExportFormat] = UNSET
|
||||||
output_format_options: Union[Unset, OutputFormat] = UNSET
|
output_format_options: Union[Unset, OutputFormat] = UNSET
|
||||||
outputs: Union[Unset, Dict[str, Base64Data]] = UNSET
|
outputs: Union[Unset, Dict[str, Base64Data]] = UNSET
|
||||||
@ -53,9 +52,6 @@ class file_conversion:
|
|||||||
created_at = self.created_at.isoformat()
|
created_at = self.created_at.isoformat()
|
||||||
error = self.error
|
error = self.error
|
||||||
id = self.id
|
id = self.id
|
||||||
output: Union[Unset, str] = UNSET
|
|
||||||
if not isinstance(self.output, Unset):
|
|
||||||
output = self.output.get_encoded()
|
|
||||||
if not isinstance(self.output_format, Unset):
|
if not isinstance(self.output_format, Unset):
|
||||||
output_format = self.output_format
|
output_format = self.output_format
|
||||||
if not isinstance(self.output_format_options, Unset):
|
if not isinstance(self.output_format_options, Unset):
|
||||||
@ -92,8 +88,6 @@ class file_conversion:
|
|||||||
field_dict["error"] = error
|
field_dict["error"] = error
|
||||||
if id is not UNSET:
|
if id is not UNSET:
|
||||||
field_dict["id"] = id
|
field_dict["id"] = id
|
||||||
if output is not UNSET:
|
|
||||||
field_dict["output"] = output
|
|
||||||
if output_format is not UNSET:
|
if output_format is not UNSET:
|
||||||
field_dict["output_format"] = output_format
|
field_dict["output_format"] = output_format
|
||||||
if output_format_options is not UNSET:
|
if output_format_options is not UNSET:
|
||||||
@ -142,13 +136,6 @@ class file_conversion:
|
|||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id # type: ignore[arg-type]
|
||||||
|
|
||||||
_output = d.pop("output", UNSET)
|
|
||||||
output: Union[Unset, Base64Data]
|
|
||||||
if isinstance(_output, Unset):
|
|
||||||
output = UNSET
|
|
||||||
else:
|
|
||||||
output = Base64Data(bytes(_output, "utf-8"))
|
|
||||||
|
|
||||||
_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):
|
||||||
@ -216,7 +203,6 @@ class file_conversion:
|
|||||||
created_at=created_at,
|
created_at=created_at,
|
||||||
error=error,
|
error=error,
|
||||||
id=id,
|
id=id,
|
||||||
output=output,
|
|
||||||
output_format=output_format,
|
output_format=output_format,
|
||||||
output_format_options=output_format_options,
|
output_format_options=output_format_options,
|
||||||
outputs=outputs,
|
outputs=outputs,
|
||||||
|
@ -24,7 +24,6 @@ class FileConversion:
|
|||||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||||
error: Union[Unset, str] = UNSET
|
error: Union[Unset, str] = UNSET
|
||||||
id: Union[Unset, str] = UNSET
|
id: Union[Unset, str] = UNSET
|
||||||
output: Union[Unset, Base64Data] = UNSET
|
|
||||||
output_format: Union[Unset, FileExportFormat] = UNSET
|
output_format: Union[Unset, FileExportFormat] = UNSET
|
||||||
output_format_options: Union[Unset, OutputFormat] = UNSET
|
output_format_options: Union[Unset, OutputFormat] = UNSET
|
||||||
outputs: Union[Unset, Dict[str, Base64Data]] = UNSET
|
outputs: Union[Unset, Dict[str, Base64Data]] = UNSET
|
||||||
@ -46,9 +45,6 @@ class FileConversion:
|
|||||||
created_at = self.created_at.isoformat()
|
created_at = self.created_at.isoformat()
|
||||||
error = self.error
|
error = self.error
|
||||||
id = self.id
|
id = self.id
|
||||||
output: Union[Unset, str] = UNSET
|
|
||||||
if not isinstance(self.output, Unset):
|
|
||||||
output = self.output.get_encoded()
|
|
||||||
if not isinstance(self.output_format, Unset):
|
if not isinstance(self.output_format, Unset):
|
||||||
output_format = self.output_format
|
output_format = self.output_format
|
||||||
if not isinstance(self.output_format_options, Unset):
|
if not isinstance(self.output_format_options, Unset):
|
||||||
@ -84,8 +80,6 @@ class FileConversion:
|
|||||||
field_dict["error"] = error
|
field_dict["error"] = error
|
||||||
if id is not UNSET:
|
if id is not UNSET:
|
||||||
field_dict["id"] = id
|
field_dict["id"] = id
|
||||||
if output is not UNSET:
|
|
||||||
field_dict["output"] = output
|
|
||||||
if output_format is not UNSET:
|
if output_format is not UNSET:
|
||||||
field_dict["output_format"] = output_format
|
field_dict["output_format"] = output_format
|
||||||
if output_format_options is not UNSET:
|
if output_format_options is not UNSET:
|
||||||
@ -133,13 +127,6 @@ class FileConversion:
|
|||||||
else:
|
else:
|
||||||
id = _id # type: ignore[arg-type]
|
id = _id # type: ignore[arg-type]
|
||||||
|
|
||||||
_output = d.pop("output", UNSET)
|
|
||||||
output: Union[Unset, Base64Data]
|
|
||||||
if isinstance(_output, Unset):
|
|
||||||
output = UNSET
|
|
||||||
else:
|
|
||||||
output = Base64Data(bytes(_output, "utf-8"))
|
|
||||||
|
|
||||||
_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):
|
||||||
@ -205,7 +192,6 @@ class FileConversion:
|
|||||||
created_at=created_at,
|
created_at=created_at,
|
||||||
error=error,
|
error=error,
|
||||||
id=id,
|
id=id,
|
||||||
output=output,
|
|
||||||
output_format=output_format,
|
output_format=output_format,
|
||||||
output_format_options=output_format_options,
|
output_format_options=output_format_options,
|
||||||
outputs=outputs,
|
outputs=outputs,
|
||||||
|
@ -3600,6 +3600,65 @@ class handle_mouse_drag_end:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
|
XL = TypeVar("XL", bound="remove_scene_objects")
|
||||||
|
|
||||||
|
|
||||||
|
@attr.s(auto_attribs=True)
|
||||||
|
class remove_scene_objects:
|
||||||
|
"""Remove scene objects.""" # noqa: E501
|
||||||
|
|
||||||
|
object_ids: Union[Unset, List[str]] = UNSET
|
||||||
|
type: str = "remove_scene_objects"
|
||||||
|
|
||||||
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||||
|
|
||||||
|
def to_dict(self) -> Dict[str, Any]:
|
||||||
|
object_ids: Union[Unset, List[str]] = UNSET
|
||||||
|
if not isinstance(self.object_ids, Unset):
|
||||||
|
object_ids = self.object_ids
|
||||||
|
type = self.type
|
||||||
|
|
||||||
|
field_dict: Dict[str, Any] = {}
|
||||||
|
field_dict.update(self.additional_properties)
|
||||||
|
field_dict.update({})
|
||||||
|
if object_ids is not UNSET:
|
||||||
|
field_dict["object_ids"] = object_ids
|
||||||
|
field_dict["type"] = type
|
||||||
|
|
||||||
|
return field_dict
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
||||||
|
d = src_dict.copy()
|
||||||
|
object_ids = cast(List[str], d.pop("object_ids", UNSET))
|
||||||
|
|
||||||
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
|
remove_scene_objects = cls(
|
||||||
|
object_ids=object_ids,
|
||||||
|
type=type,
|
||||||
|
)
|
||||||
|
|
||||||
|
remove_scene_objects.additional_properties = d
|
||||||
|
return remove_scene_objects
|
||||||
|
|
||||||
|
@property
|
||||||
|
def additional_keys(self) -> List[str]:
|
||||||
|
return list(self.additional_properties.keys())
|
||||||
|
|
||||||
|
def __getitem__(self, key: str) -> Any:
|
||||||
|
return self.additional_properties[key]
|
||||||
|
|
||||||
|
def __setitem__(self, key: str, value: Any) -> None:
|
||||||
|
self.additional_properties[key] = value
|
||||||
|
|
||||||
|
def __delitem__(self, key: str) -> None:
|
||||||
|
del self.additional_properties[key]
|
||||||
|
|
||||||
|
def __contains__(self, key: str) -> bool:
|
||||||
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
ModelingCmd = Union[
|
ModelingCmd = Union[
|
||||||
start_path,
|
start_path,
|
||||||
move_path_pen,
|
move_path_pen,
|
||||||
@ -3655,4 +3714,5 @@ ModelingCmd = Union[
|
|||||||
handle_mouse_drag_start,
|
handle_mouse_drag_start,
|
||||||
handle_mouse_drag_move,
|
handle_mouse_drag_move,
|
||||||
handle_mouse_drag_end,
|
handle_mouse_drag_end,
|
||||||
|
remove_scene_objects,
|
||||||
]
|
]
|
||||||
|
@ -6,7 +6,7 @@ from ..models.modeling_cmd import ModelingCmd
|
|||||||
from ..models.modeling_cmd_id import ModelingCmdId
|
from ..models.modeling_cmd_id import ModelingCmdId
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
XL = TypeVar("XL", bound="ModelingCmdReq")
|
ZX = TypeVar("ZX", bound="ModelingCmdReq")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class ModelingCmdReq:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_cmd = d.pop("cmd", UNSET)
|
_cmd = d.pop("cmd", UNSET)
|
||||||
cmd: Union[Unset, ModelingCmd]
|
cmd: Union[Unset, ModelingCmd]
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.modeling_cmd_req import ModelingCmdReq
|
from ..models.modeling_cmd_req import ModelingCmdReq
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
ZX = TypeVar("ZX", bound="ModelingCmdReqBatch")
|
FT = TypeVar("FT", bound="ModelingCmdReqBatch")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class ModelingCmdReqBatch:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_cmds = d.pop("cmds", UNSET)
|
_cmds = d.pop("cmds", UNSET)
|
||||||
if isinstance(_cmds, Unset):
|
if isinstance(_cmds, Unset):
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FT = TypeVar("FT", bound="ModelingError")
|
NX = TypeVar("NX", bound="ModelingError")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -39,7 +39,7 @@ class ModelingError:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
error_code = d.pop("error_code", UNSET)
|
error_code = d.pop("error_code", UNSET)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ success = OkModelingCmdResponse
|
|||||||
error = ModelingError
|
error = ModelingError
|
||||||
|
|
||||||
|
|
||||||
NX = TypeVar("NX", bound="cancelled")
|
SC = TypeVar("SC", bound="cancelled")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class cancelled:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_what_failed = d.pop("what_failed", UNSET)
|
_what_failed = d.pop("what_failed", UNSET)
|
||||||
what_failed: Union[Unset, ModelingCmdId]
|
what_failed: Union[Unset, ModelingCmdId]
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.modeling_outcome import ModelingOutcome
|
from ..models.modeling_outcome import ModelingOutcome
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
SC = TypeVar("SC", bound="ModelingOutcomes")
|
TX = TypeVar("TX", bound="ModelingOutcomes")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class ModelingOutcomes:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_outcomes = d.pop("outcomes", UNSET)
|
_outcomes = d.pop("outcomes", UNSET)
|
||||||
if isinstance(_outcomes, Unset):
|
if isinstance(_outcomes, Unset):
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
TX = TypeVar("TX", bound="MouseClick")
|
JA = TypeVar("JA", bound="MouseClick")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class MouseClick:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
entities_modified = cast(List[str], d.pop("entities_modified", UNSET))
|
entities_modified = cast(List[str], d.pop("entities_modified", UNSET))
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.country_code import CountryCode
|
from ..models.country_code import CountryCode
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
JA = TypeVar("JA", bound="NewAddress")
|
SK = TypeVar("SK", bound="NewAddress")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -53,7 +53,7 @@ class NewAddress:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
city = d.pop("city", UNSET)
|
city = d.pop("city", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
SK = TypeVar("SK", bound="OAuth2ClientInfo")
|
UK = TypeVar("UK", bound="OAuth2ClientInfo")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class OAuth2ClientInfo:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
csrf_token = d.pop("csrf_token", UNSET)
|
csrf_token = d.pop("csrf_token", UNSET)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ from ..models.solid3d_get_prev_adjacent_edge import Solid3dGetPrevAdjacentEdge
|
|||||||
from ..models.take_snapshot import TakeSnapshot
|
from ..models.take_snapshot import TakeSnapshot
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
UK = TypeVar("UK", bound="empty")
|
CX = TypeVar("CX", bound="empty")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -45,7 +45,7 @@ class empty:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ class empty:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
CX = TypeVar("CX", bound="export")
|
MT = TypeVar("MT", bound="export")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -100,7 +100,7 @@ class export:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Export]
|
data: Union[Unset, Export]
|
||||||
@ -136,7 +136,7 @@ class export:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
MT = TypeVar("MT", bound="select_with_point")
|
LJ = TypeVar("LJ", bound="select_with_point")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -163,7 +163,7 @@ class select_with_point:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, SelectWithPoint]
|
data: Union[Unset, SelectWithPoint]
|
||||||
@ -199,7 +199,7 @@ class select_with_point:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
LJ = TypeVar("LJ", bound="highlight_set_entity")
|
TF = TypeVar("TF", bound="highlight_set_entity")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -226,7 +226,7 @@ class highlight_set_entity:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, HighlightSetEntity]
|
data: Union[Unset, HighlightSetEntity]
|
||||||
@ -262,7 +262,7 @@ class highlight_set_entity:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
TF = TypeVar("TF", bound="entity_get_child_uuid")
|
HF = TypeVar("HF", bound="entity_get_child_uuid")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -289,7 +289,7 @@ class entity_get_child_uuid:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, EntityGetChildUuid]
|
data: Union[Unset, EntityGetChildUuid]
|
||||||
@ -325,7 +325,7 @@ class entity_get_child_uuid:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
HF = TypeVar("HF", bound="entity_get_num_children")
|
JD = TypeVar("JD", bound="entity_get_num_children")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -352,7 +352,7 @@ class entity_get_num_children:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, EntityGetNumChildren]
|
data: Union[Unset, EntityGetNumChildren]
|
||||||
@ -388,7 +388,7 @@ class entity_get_num_children:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
JD = TypeVar("JD", bound="entity_get_parent_id")
|
RZ = TypeVar("RZ", bound="entity_get_parent_id")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -415,7 +415,7 @@ class entity_get_parent_id:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, EntityGetParentId]
|
data: Union[Unset, EntityGetParentId]
|
||||||
@ -451,7 +451,7 @@ class entity_get_parent_id:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
RZ = TypeVar("RZ", bound="entity_get_all_child_uuids")
|
BH = TypeVar("BH", bound="entity_get_all_child_uuids")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -478,7 +478,7 @@ class entity_get_all_child_uuids:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, EntityGetAllChildUuids]
|
data: Union[Unset, EntityGetAllChildUuids]
|
||||||
@ -514,7 +514,7 @@ class entity_get_all_child_uuids:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
BH = TypeVar("BH", bound="select_get")
|
SX = TypeVar("SX", bound="select_get")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -541,7 +541,7 @@ class select_get:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, SelectGet]
|
data: Union[Unset, SelectGet]
|
||||||
@ -577,7 +577,7 @@ class select_get:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
SX = TypeVar("SX", bound="get_entity_type")
|
CN = TypeVar("CN", bound="get_entity_type")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -604,7 +604,7 @@ class get_entity_type:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, GetEntityType]
|
data: Union[Unset, GetEntityType]
|
||||||
@ -640,7 +640,7 @@ class get_entity_type:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
CN = TypeVar("CN", bound="solid3d_get_all_edge_faces")
|
GS = TypeVar("GS", bound="solid3d_get_all_edge_faces")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -667,7 +667,7 @@ class solid3d_get_all_edge_faces:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
||||||
@ -703,7 +703,7 @@ class solid3d_get_all_edge_faces:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
GS = TypeVar("GS", bound="solid3d_get_all_opposite_edges")
|
SO = TypeVar("SO", bound="solid3d_get_all_opposite_edges")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -730,7 +730,7 @@ class solid3d_get_all_opposite_edges:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
||||||
@ -766,7 +766,7 @@ class solid3d_get_all_opposite_edges:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
SO = TypeVar("SO", bound="solid3d_get_opposite_edge")
|
ZS = TypeVar("ZS", bound="solid3d_get_opposite_edge")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -793,7 +793,7 @@ class solid3d_get_opposite_edge:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Solid3dGetOppositeEdge]
|
data: Union[Unset, Solid3dGetOppositeEdge]
|
||||||
@ -829,7 +829,7 @@ class solid3d_get_opposite_edge:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
ZS = TypeVar("ZS", bound="solid3d_get_prev_adjacent_edge")
|
AM = TypeVar("AM", bound="solid3d_get_prev_adjacent_edge")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -856,7 +856,7 @@ class solid3d_get_prev_adjacent_edge:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
||||||
@ -892,7 +892,7 @@ class solid3d_get_prev_adjacent_edge:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
AM = TypeVar("AM", bound="solid3d_get_next_adjacent_edge")
|
GK = TypeVar("GK", bound="solid3d_get_next_adjacent_edge")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -919,7 +919,7 @@ class solid3d_get_next_adjacent_edge:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Solid3dGetNextAdjacentEdge]
|
data: Union[Unset, Solid3dGetNextAdjacentEdge]
|
||||||
@ -955,7 +955,7 @@ class solid3d_get_next_adjacent_edge:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
GK = TypeVar("GK", bound="mouse_click")
|
SG = TypeVar("SG", bound="mouse_click")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -982,7 +982,7 @@ class mouse_click:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, MouseClick]
|
data: Union[Unset, MouseClick]
|
||||||
@ -1018,7 +1018,7 @@ class mouse_click:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
SG = TypeVar("SG", bound="curve_get_type")
|
QZ = TypeVar("QZ", bound="curve_get_type")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -1045,7 +1045,7 @@ class curve_get_type:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, CurveGetType]
|
data: Union[Unset, CurveGetType]
|
||||||
@ -1081,7 +1081,7 @@ class curve_get_type:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
QZ = TypeVar("QZ", bound="curve_get_control_points")
|
SY = TypeVar("SY", bound="curve_get_control_points")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -1108,7 +1108,7 @@ class curve_get_control_points:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, CurveGetControlPoints]
|
data: Union[Unset, CurveGetControlPoints]
|
||||||
@ -1144,7 +1144,7 @@ class curve_get_control_points:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
SY = TypeVar("SY", bound="take_snapshot")
|
YK = TypeVar("YK", bound="take_snapshot")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -1171,7 +1171,7 @@ class take_snapshot:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, TakeSnapshot]
|
data: Union[Unset, TakeSnapshot]
|
||||||
@ -1207,7 +1207,7 @@ class take_snapshot:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
YK = TypeVar("YK", bound="path_get_info")
|
WS = TypeVar("WS", bound="path_get_info")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -1234,7 +1234,7 @@ class path_get_info:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, PathGetInfo]
|
data: Union[Unset, PathGetInfo]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
WS = TypeVar("WS", bound="ice_server_info")
|
SL = TypeVar("SL", bound="ice_server_info")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -30,7 +30,7 @@ class ice_server_info:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
data = d.pop("data", UNSET)
|
data = d.pop("data", UNSET)
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
@ -60,7 +60,7 @@ class ice_server_info:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
SL = TypeVar("SL", bound="trickle_ice")
|
MK = TypeVar("MK", bound="trickle_ice")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -86,7 +86,7 @@ class trickle_ice:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
data = d.pop("data", UNSET)
|
data = d.pop("data", UNSET)
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
@ -116,7 +116,7 @@ class trickle_ice:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
MK = TypeVar("MK", bound="sdp_answer")
|
TU = TypeVar("TU", bound="sdp_answer")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -142,7 +142,7 @@ class sdp_answer:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
data = d.pop("data", UNSET)
|
data = d.pop("data", UNSET)
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
@ -172,7 +172,7 @@ class sdp_answer:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
TU = TypeVar("TU", bound="modeling")
|
FY = TypeVar("FY", bound="modeling")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -198,7 +198,7 @@ class modeling:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
data = d.pop("data", UNSET)
|
data = d.pop("data", UNSET)
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
@ -228,7 +228,7 @@ class modeling:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
FY = TypeVar("FY", bound="export")
|
FD = TypeVar("FD", bound="export")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -254,7 +254,7 @@ class export:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
data = d.pop("data", UNSET)
|
data = d.pop("data", UNSET)
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FD = TypeVar("FD", bound="Onboarding")
|
TZ = TypeVar("TZ", bound="Onboarding")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -37,7 +37,7 @@ class Onboarding:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
first_call_from__their_machine_date = d.pop(
|
first_call_from__their_machine_date = d.pop(
|
||||||
"first_call_from_their_machine_date", UNSET
|
"first_call_from_their_machine_date", UNSET
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
TZ = TypeVar("TZ", bound="OutputFile")
|
AX = TypeVar("AX", bound="OutputFile")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -31,7 +31,7 @@ class OutputFile:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
contents = d.pop("contents", UNSET)
|
contents = d.pop("contents", UNSET)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ from ..models.stl_storage import StlStorage
|
|||||||
from ..models.system import System
|
from ..models.system import System
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
AX = TypeVar("AX", bound="fbx")
|
RQ = TypeVar("RQ", bound="fbx")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -37,7 +37,7 @@ class fbx:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_storage = d.pop("storage", UNSET)
|
_storage = d.pop("storage", UNSET)
|
||||||
storage: Union[Unset, FbxStorage]
|
storage: Union[Unset, FbxStorage]
|
||||||
@ -73,7 +73,7 @@ class fbx:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
RQ = TypeVar("RQ", bound="gltf")
|
ZL = TypeVar("ZL", bound="gltf")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -105,7 +105,7 @@ class gltf:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
def from_dict(cls: Type[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_presentation = d.pop("presentation", UNSET)
|
_presentation = d.pop("presentation", UNSET)
|
||||||
presentation: Union[Unset, GltfPresentation]
|
presentation: Union[Unset, GltfPresentation]
|
||||||
@ -149,7 +149,7 @@ class gltf:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
ZL = TypeVar("ZL", bound="obj")
|
CM = TypeVar("CM", bound="obj")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -176,7 +176,7 @@ class obj:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[ZL], src_dict: Dict[str, Any]) -> ZL:
|
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_coords = d.pop("coords", UNSET)
|
_coords = d.pop("coords", UNSET)
|
||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
@ -212,7 +212,7 @@ class obj:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
CM = TypeVar("CM", bound="ply")
|
OS = TypeVar("OS", bound="ply")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -244,7 +244,7 @@ class ply:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_coords = d.pop("coords", UNSET)
|
_coords = d.pop("coords", UNSET)
|
||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
@ -288,7 +288,7 @@ class ply:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
OS = TypeVar("OS", bound="step")
|
WP = TypeVar("WP", bound="step")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -315,7 +315,7 @@ class step:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_coords = d.pop("coords", UNSET)
|
_coords = d.pop("coords", UNSET)
|
||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
@ -351,7 +351,7 @@ class step:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
WP = TypeVar("WP", bound="stl")
|
XO = TypeVar("XO", bound="stl")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -383,7 +383,7 @@ class stl:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_coords = d.pop("coords", UNSET)
|
_coords = d.pop("coords", UNSET)
|
||||||
coords: Union[Unset, System]
|
coords: Union[Unset, System]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
XO = TypeVar("XO", bound="PathGetInfo")
|
LN = TypeVar("LN", bound="PathGetInfo")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -33,7 +33,7 @@ class PathGetInfo:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
from ..models.path_segment_info import PathSegmentInfo
|
from ..models.path_segment_info import PathSegmentInfo
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ from ..models.point2d import Point2d
|
|||||||
from ..models.point3d import Point3d
|
from ..models.point3d import Point3d
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
LN = TypeVar("LN", bound="line")
|
KR = TypeVar("KR", bound="line")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -33,7 +33,7 @@ class line:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
def from_dict(cls: Type[KR], src_dict: Dict[str, Any]) -> KR:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_end = d.pop("end", UNSET)
|
_end = d.pop("end", UNSET)
|
||||||
end: Union[Unset, Point3d]
|
end: Union[Unset, Point3d]
|
||||||
@ -69,7 +69,7 @@ class line:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
KR = TypeVar("KR", bound="arc")
|
MG = TypeVar("MG", bound="arc")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -108,7 +108,7 @@ class arc:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[KR], src_dict: Dict[str, Any]) -> KR:
|
def from_dict(cls: Type[MG], src_dict: Dict[str, Any]) -> MG:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
angle_end = d.pop("angle_end", UNSET)
|
angle_end = d.pop("angle_end", UNSET)
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ class arc:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
MG = TypeVar("MG", bound="bezier")
|
UE = TypeVar("UE", bound="bezier")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -190,7 +190,7 @@ class bezier:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MG], src_dict: Dict[str, Any]) -> MG:
|
def from_dict(cls: Type[UE], src_dict: Dict[str, Any]) -> UE:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_control1 = d.pop("control1", UNSET)
|
_control1 = d.pop("control1", UNSET)
|
||||||
control1: Union[Unset, Point3d]
|
control1: Union[Unset, Point3d]
|
||||||
|
@ -6,7 +6,7 @@ from ..models.modeling_cmd_id import ModelingCmdId
|
|||||||
from ..models.path_command import PathCommand
|
from ..models.path_command import PathCommand
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
UE = TypeVar("UE", bound="PathSegmentInfo")
|
BF = TypeVar("BF", bound="PathSegmentInfo")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class PathSegmentInfo:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[UE], src_dict: Dict[str, Any]) -> UE:
|
def from_dict(cls: Type[BF], src_dict: Dict[str, Any]) -> BF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_command = d.pop("command", UNSET)
|
_command = d.pop("command", UNSET)
|
||||||
command: Union[Unset, PathCommand]
|
command: Union[Unset, PathCommand]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
BF = TypeVar("BF", bound="PaymentIntent")
|
UU = TypeVar("UU", bound="PaymentIntent")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -27,7 +27,7 @@ class PaymentIntent:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[BF], src_dict: Dict[str, Any]) -> BF:
|
def from_dict(cls: Type[UU], src_dict: Dict[str, Any]) -> UU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
client_secret = d.pop("client_secret", UNSET)
|
client_secret = d.pop("client_secret", UNSET)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from ..models.card_details import CardDetails
|
|||||||
from ..models.payment_method_type import PaymentMethodType
|
from ..models.payment_method_type import PaymentMethodType
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
UU = TypeVar("UU", bound="PaymentMethod")
|
MB = TypeVar("MB", bound="PaymentMethod")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -58,7 +58,7 @@ class PaymentMethod:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[UU], src_dict: Dict[str, Any]) -> UU:
|
def from_dict(cls: Type[MB], src_dict: Dict[str, Any]) -> MB:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_billing_info = d.pop("billing_info", UNSET)
|
_billing_info = d.pop("billing_info", UNSET)
|
||||||
billing_info: Union[Unset, BillingInfo]
|
billing_info: Union[Unset, BillingInfo]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
MB = TypeVar("MB", bound="PaymentMethodCardChecks")
|
TB = TypeVar("TB", bound="PaymentMethodCardChecks")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class PaymentMethodCardChecks:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MB], src_dict: Dict[str, Any]) -> MB:
|
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
address_line1_check = d.pop("address_line1_check", UNSET)
|
address_line1_check = d.pop("address_line1_check", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
TB = TypeVar("TB", bound="PluginsInfo")
|
FJ = TypeVar("FJ", bound="PluginsInfo")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -50,7 +50,7 @@ class PluginsInfo:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
def from_dict(cls: Type[FJ], src_dict: Dict[str, Any]) -> FJ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
authorization = cast(List[str], d.pop("authorization", UNSET))
|
authorization = cast(List[str], d.pop("authorization", UNSET))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FJ = TypeVar("FJ", bound="Point2d")
|
HB = TypeVar("HB", bound="Point2d")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -31,7 +31,7 @@ class Point2d:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FJ], src_dict: Dict[str, Any]) -> FJ:
|
def from_dict(cls: Type[HB], src_dict: Dict[str, Any]) -> HB:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
x = d.pop("x", UNSET)
|
x = d.pop("x", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
HB = TypeVar("HB", bound="Point3d")
|
SF = TypeVar("SF", bound="Point3d")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class Point3d:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[HB], src_dict: Dict[str, Any]) -> HB:
|
def from_dict(cls: Type[SF], src_dict: Dict[str, Any]) -> SF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
x = d.pop("x", UNSET)
|
x = d.pop("x", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
SF = TypeVar("SF", bound="PointEMetadata")
|
DU = TypeVar("DU", bound="PointEMetadata")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -29,7 +29,7 @@ class PointEMetadata:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SF], src_dict: Dict[str, Any]) -> SF:
|
def from_dict(cls: Type[DU], src_dict: Dict[str, Any]) -> DU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
ok = d.pop("ok", UNSET)
|
ok = d.pop("ok", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
DU = TypeVar("DU", bound="Pong")
|
BM = TypeVar("BM", bound="Pong")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -27,7 +27,7 @@ class Pong:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[DU], src_dict: Dict[str, Any]) -> DU:
|
def from_dict(cls: Type[BM], src_dict: Dict[str, Any]) -> BM:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
message = d.pop("message", UNSET)
|
message = d.pop("message", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
BM = TypeVar("BM", bound="RawFile")
|
TY = TypeVar("TY", bound="RawFile")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -33,7 +33,7 @@ class RawFile:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[BM], src_dict: Dict[str, Any]) -> BM:
|
def from_dict(cls: Type[TY], src_dict: Dict[str, Any]) -> TY:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
contents = cast(List[int], d.pop("contents", UNSET))
|
contents = cast(List[int], d.pop("contents", UNSET))
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.index_info import IndexInfo
|
from ..models.index_info import IndexInfo
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
TY = TypeVar("TY", bound="RegistryServiceConfig")
|
NC = TypeVar("NC", bound="RegistryServiceConfig")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -67,7 +67,7 @@ class RegistryServiceConfig:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TY], src_dict: Dict[str, Any]) -> TY:
|
def from_dict(cls: Type[NC], src_dict: Dict[str, Any]) -> NC:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
allow_nondistributable_artifacts_cid_rs = cast(
|
allow_nondistributable_artifacts_cid_rs = cast(
|
||||||
List[str], d.pop("allow_nondistributable_artifacts_cid_rs", UNSET)
|
List[str], d.pop("allow_nondistributable_artifacts_cid_rs", UNSET)
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
NC = TypeVar("NC", bound="RtcIceCandidateInit")
|
GP = TypeVar("GP", bound="RtcIceCandidateInit")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -39,7 +39,7 @@ class RtcIceCandidateInit:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[NC], src_dict: Dict[str, Any]) -> NC:
|
def from_dict(cls: Type[GP], src_dict: Dict[str, Any]) -> GP:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
candidate = d.pop("candidate", UNSET)
|
candidate = d.pop("candidate", UNSET)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.rtc_sdp_type import RtcSdpType
|
from ..models.rtc_sdp_type import RtcSdpType
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
GP = TypeVar("GP", bound="RtcSessionDescription")
|
FF = TypeVar("FF", bound="RtcSessionDescription")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -33,7 +33,7 @@ class RtcSessionDescription:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[GP], src_dict: Dict[str, Any]) -> GP:
|
def from_dict(cls: Type[FF], src_dict: Dict[str, Any]) -> FF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
sdp = d.pop("sdp", UNSET)
|
sdp = d.pop("sdp", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FF = TypeVar("FF", bound="Runtime")
|
YO = TypeVar("YO", bound="Runtime")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -33,7 +33,7 @@ class Runtime:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FF], src_dict: Dict[str, Any]) -> FF:
|
def from_dict(cls: Type[YO], src_dict: Dict[str, Any]) -> YO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
path = d.pop("path", UNSET)
|
path = d.pop("path", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
YO = TypeVar("YO", bound="SelectGet")
|
FS = TypeVar("FS", bound="SelectGet")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -29,7 +29,7 @@ class SelectGet:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[YO], src_dict: Dict[str, Any]) -> YO:
|
def from_dict(cls: Type[FS], src_dict: Dict[str, Any]) -> FS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FS = TypeVar("FS", bound="SelectWithPoint")
|
WN = TypeVar("WN", bound="SelectWithPoint")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -27,7 +27,7 @@ class SelectWithPoint:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FS], src_dict: Dict[str, Any]) -> FS:
|
def from_dict(cls: Type[WN], src_dict: Dict[str, Any]) -> WN:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
entity_id = d.pop("entity_id", UNSET)
|
entity_id = d.pop("entity_id", UNSET)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ from dateutil.parser import isoparse
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
WN = TypeVar("WN", bound="Session")
|
EQ = TypeVar("EQ", bound="Session")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -58,7 +58,7 @@ class Session:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[WN], src_dict: Dict[str, Any]) -> WN:
|
def from_dict(cls: Type[EQ], src_dict: Dict[str, Any]) -> EQ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
EQ = TypeVar("EQ", bound="Solid3dGetAllEdgeFaces")
|
UW = TypeVar("UW", bound="Solid3dGetAllEdgeFaces")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -29,7 +29,7 @@ class Solid3dGetAllEdgeFaces:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[EQ], src_dict: Dict[str, Any]) -> EQ:
|
def from_dict(cls: Type[UW], src_dict: Dict[str, Any]) -> UW:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
faces = cast(List[str], d.pop("faces", UNSET))
|
faces = cast(List[str], d.pop("faces", UNSET))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
UW = TypeVar("UW", bound="Solid3dGetAllOppositeEdges")
|
MD = TypeVar("MD", bound="Solid3dGetAllOppositeEdges")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -29,7 +29,7 @@ class Solid3dGetAllOppositeEdges:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[UW], src_dict: Dict[str, Any]) -> UW:
|
def from_dict(cls: Type[MD], src_dict: Dict[str, Any]) -> MD:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
edges = cast(List[str], d.pop("edges", UNSET))
|
edges = cast(List[str], d.pop("edges", UNSET))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
MD = TypeVar("MD", bound="Solid3dGetNextAdjacentEdge")
|
HD = TypeVar("HD", bound="Solid3dGetNextAdjacentEdge")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -27,7 +27,7 @@ class Solid3dGetNextAdjacentEdge:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MD], src_dict: Dict[str, Any]) -> MD:
|
def from_dict(cls: Type[HD], src_dict: Dict[str, Any]) -> HD:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
edge = d.pop("edge", UNSET)
|
edge = d.pop("edge", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
HD = TypeVar("HD", bound="Solid3dGetOppositeEdge")
|
UJ = TypeVar("UJ", bound="Solid3dGetOppositeEdge")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -27,7 +27,7 @@ class Solid3dGetOppositeEdge:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[HD], src_dict: Dict[str, Any]) -> HD:
|
def from_dict(cls: Type[UJ], src_dict: Dict[str, Any]) -> UJ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
edge = d.pop("edge", UNSET)
|
edge = d.pop("edge", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
UJ = TypeVar("UJ", bound="Solid3dGetPrevAdjacentEdge")
|
RU = TypeVar("RU", bound="Solid3dGetPrevAdjacentEdge")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -27,7 +27,7 @@ class Solid3dGetPrevAdjacentEdge:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[UJ], src_dict: Dict[str, Any]) -> UJ:
|
def from_dict(cls: Type[RU], src_dict: Dict[str, Any]) -> RU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
edge = d.pop("edge", UNSET)
|
edge = d.pop("edge", UNSET)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.ok_web_socket_response_data import OkWebSocketResponseData
|
from ..models.ok_web_socket_response_data import OkWebSocketResponseData
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
RU = TypeVar("RU", bound="SuccessWebSocketResponse")
|
DL = TypeVar("DL", bound="SuccessWebSocketResponse")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -37,7 +37,7 @@ class SuccessWebSocketResponse:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[RU], src_dict: Dict[str, Any]) -> RU:
|
def from_dict(cls: Type[DL], src_dict: Dict[str, Any]) -> DL:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
request_id = d.pop("request_id", UNSET)
|
request_id = d.pop("request_id", UNSET)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.axis_direction_pair import AxisDirectionPair
|
from ..models.axis_direction_pair import AxisDirectionPair
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
DL = TypeVar("DL", bound="System")
|
QT = TypeVar("QT", bound="System")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -41,7 +41,7 @@ class System:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[DL], src_dict: Dict[str, Any]) -> DL:
|
def from_dict(cls: Type[QT], src_dict: Dict[str, Any]) -> QT:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_forward = d.pop("forward", UNSET)
|
_forward = d.pop("forward", UNSET)
|
||||||
forward: Union[Unset, AxisDirectionPair]
|
forward: Union[Unset, AxisDirectionPair]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
QT = TypeVar("QT", bound="SystemInfoDefaultAddressPools")
|
PT = TypeVar("PT", bound="SystemInfoDefaultAddressPools")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -29,7 +29,7 @@ class SystemInfoDefaultAddressPools:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[QT], src_dict: Dict[str, Any]) -> QT:
|
def from_dict(cls: Type[PT], src_dict: Dict[str, Any]) -> PT:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
base = d.pop("base", UNSET)
|
base = d.pop("base", UNSET)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.base64data import Base64Data
|
from ..models.base64data import Base64Data
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
PT = TypeVar("PT", bound="TakeSnapshot")
|
HR = TypeVar("HR", bound="TakeSnapshot")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -30,7 +30,7 @@ class TakeSnapshot:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[PT], src_dict: Dict[str, Any]) -> PT:
|
def from_dict(cls: Type[HR], src_dict: Dict[str, Any]) -> HR:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_contents = d.pop("contents", UNSET)
|
_contents = d.pop("contents", UNSET)
|
||||||
contents: Union[Unset, Base64Data]
|
contents: Union[Unset, Base64Data]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_angle import UnitAngle
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
HR = TypeVar("HR", bound="UnitAngleConversion")
|
VF = TypeVar("VF", bound="UnitAngleConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitAngleConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[HR], src_dict: Dict[str, Any]) -> HR:
|
def from_dict(cls: Type[VF], src_dict: Dict[str, Any]) -> VF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_area import UnitArea
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
VF = TypeVar("VF", bound="UnitAreaConversion")
|
VM = TypeVar("VM", bound="UnitAreaConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitAreaConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[VF], src_dict: Dict[str, Any]) -> VF:
|
def from_dict(cls: Type[VM], src_dict: Dict[str, Any]) -> VM:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_current import UnitCurrent
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
VM = TypeVar("VM", bound="UnitCurrentConversion")
|
WH = TypeVar("WH", bound="UnitCurrentConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitCurrentConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[VM], src_dict: Dict[str, Any]) -> VM:
|
def from_dict(cls: Type[WH], src_dict: Dict[str, Any]) -> WH:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_energy import UnitEnergy
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
WH = TypeVar("WH", bound="UnitEnergyConversion")
|
DQ = TypeVar("DQ", bound="UnitEnergyConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitEnergyConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[WH], src_dict: Dict[str, Any]) -> WH:
|
def from_dict(cls: Type[DQ], src_dict: Dict[str, Any]) -> DQ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_force import UnitForce
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
DQ = TypeVar("DQ", bound="UnitForceConversion")
|
UY = TypeVar("UY", bound="UnitForceConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitForceConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[DQ], src_dict: Dict[str, Any]) -> DQ:
|
def from_dict(cls: Type[UY], src_dict: Dict[str, Any]) -> UY:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_frequency import UnitFrequency
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
UY = TypeVar("UY", bound="UnitFrequencyConversion")
|
PD = TypeVar("PD", bound="UnitFrequencyConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitFrequencyConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[UY], src_dict: Dict[str, Any]) -> UY:
|
def from_dict(cls: Type[PD], src_dict: Dict[str, Any]) -> PD:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_length import UnitLength
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
PD = TypeVar("PD", bound="UnitLengthConversion")
|
SM = TypeVar("SM", bound="UnitLengthConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitLengthConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[PD], src_dict: Dict[str, Any]) -> PD:
|
def from_dict(cls: Type[SM], src_dict: Dict[str, Any]) -> SM:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_mass import UnitMass
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
SM = TypeVar("SM", bound="UnitMassConversion")
|
JL = TypeVar("JL", bound="UnitMassConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitMassConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[SM], src_dict: Dict[str, Any]) -> SM:
|
def from_dict(cls: Type[JL], src_dict: Dict[str, Any]) -> JL:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_power import UnitPower
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
JL = TypeVar("JL", bound="UnitPowerConversion")
|
CG = TypeVar("CG", bound="UnitPowerConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitPowerConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[JL], src_dict: Dict[str, Any]) -> JL:
|
def from_dict(cls: Type[CG], src_dict: Dict[str, Any]) -> CG:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_pressure import UnitPressure
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
CG = TypeVar("CG", bound="UnitPressureConversion")
|
QA = TypeVar("QA", bound="UnitPressureConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitPressureConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[CG], src_dict: Dict[str, Any]) -> CG:
|
def from_dict(cls: Type[QA], src_dict: Dict[str, Any]) -> QA:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_temperature import UnitTemperature
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
QA = TypeVar("QA", bound="UnitTemperatureConversion")
|
ZB = TypeVar("ZB", bound="UnitTemperatureConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitTemperatureConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[QA], src_dict: Dict[str, Any]) -> QA:
|
def from_dict(cls: Type[ZB], src_dict: Dict[str, Any]) -> ZB:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_torque import UnitTorque
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
ZB = TypeVar("ZB", bound="UnitTorqueConversion")
|
AU = TypeVar("AU", bound="UnitTorqueConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitTorqueConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[ZB], src_dict: Dict[str, Any]) -> ZB:
|
def from_dict(cls: Type[AU], src_dict: Dict[str, Any]) -> AU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -9,7 +9,7 @@ from ..models.unit_volume import UnitVolume
|
|||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
AU = TypeVar("AU", bound="UnitVolumeConversion")
|
FX = TypeVar("FX", bound="UnitVolumeConversion")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -87,7 +87,7 @@ class UnitVolumeConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[AU], src_dict: Dict[str, Any]) -> AU:
|
def from_dict(cls: Type[FX], src_dict: Dict[str, Any]) -> FX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FX = TypeVar("FX", bound="UpdateUser")
|
BL = TypeVar("BL", bound="UpdateUser")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -47,7 +47,7 @@ class UpdateUser:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FX], src_dict: Dict[str, Any]) -> FX:
|
def from_dict(cls: Type[BL], src_dict: Dict[str, Any]) -> BL:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
company = d.pop("company", UNSET)
|
company = d.pop("company", UNSET)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
BL = TypeVar("BL", bound="User")
|
KU = TypeVar("KU", bound="User")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -83,7 +83,7 @@ class User:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[BL], src_dict: Dict[str, Any]) -> BL:
|
def from_dict(cls: Type[KU], src_dict: Dict[str, Any]) -> KU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
company = d.pop("company", UNSET)
|
company = d.pop("company", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
KU = TypeVar("KU", bound="UserResultsPage")
|
PZ = TypeVar("PZ", bound="UserResultsPage")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -37,7 +37,7 @@ class UserResultsPage:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[KU], src_dict: Dict[str, Any]) -> KU:
|
def from_dict(cls: Type[PZ], src_dict: Dict[str, Any]) -> PZ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
from ..models.user import User
|
from ..models.user import User
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
PZ = TypeVar("PZ", bound="VerificationToken")
|
FA = TypeVar("FA", bound="VerificationToken")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -53,7 +53,7 @@ class VerificationToken:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[PZ], src_dict: Dict[str, Any]) -> PZ:
|
def from_dict(cls: Type[FA], src_dict: Dict[str, Any]) -> FA:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_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]
|
||||||
|
@ -8,7 +8,7 @@ from ..models.rtc_ice_candidate_init import RtcIceCandidateInit
|
|||||||
from ..models.rtc_session_description import RtcSessionDescription
|
from ..models.rtc_session_description import RtcSessionDescription
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FA = TypeVar("FA", bound="trickle_ice")
|
GE = TypeVar("GE", bound="trickle_ice")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -35,7 +35,7 @@ class trickle_ice:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FA], src_dict: Dict[str, Any]) -> FA:
|
def from_dict(cls: Type[GE], src_dict: Dict[str, Any]) -> GE:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_candidate = d.pop("candidate", UNSET)
|
_candidate = d.pop("candidate", UNSET)
|
||||||
candidate: Union[Unset, RtcIceCandidateInit]
|
candidate: Union[Unset, RtcIceCandidateInit]
|
||||||
@ -71,7 +71,7 @@ class trickle_ice:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
GE = TypeVar("GE", bound="sdp_offer")
|
JG = TypeVar("JG", bound="sdp_offer")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -98,7 +98,7 @@ class sdp_offer:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[GE], src_dict: Dict[str, Any]) -> GE:
|
def from_dict(cls: Type[JG], src_dict: Dict[str, Any]) -> JG:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_offer = d.pop("offer", UNSET)
|
_offer = d.pop("offer", UNSET)
|
||||||
offer: Union[Unset, RtcSessionDescription]
|
offer: Union[Unset, RtcSessionDescription]
|
||||||
@ -134,7 +134,7 @@ class sdp_offer:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
JG = TypeVar("JG", bound="modeling_cmd_req")
|
HH = TypeVar("HH", bound="modeling_cmd_req")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -166,7 +166,7 @@ class modeling_cmd_req:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[JG], src_dict: Dict[str, Any]) -> JG:
|
def from_dict(cls: Type[HH], src_dict: Dict[str, Any]) -> HH:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_cmd = d.pop("cmd", UNSET)
|
_cmd = d.pop("cmd", UNSET)
|
||||||
cmd: Union[Unset, ModelingCmd]
|
cmd: Union[Unset, ModelingCmd]
|
||||||
@ -210,7 +210,7 @@ class modeling_cmd_req:
|
|||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
|
|
||||||
HH = TypeVar("HH", bound="ping")
|
RY = TypeVar("RY", bound="ping")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
@ -232,7 +232,7 @@ class ping:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[HH], src_dict: Dict[str, Any]) -> HH:
|
def from_dict(cls: Type[RY], src_dict: Dict[str, Any]) -> RY:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "kittycad"
|
name = "kittycad"
|
||||||
version = "0.5.2"
|
version = "0.5.3"
|
||||||
description = "A client library for accessing KittyCAD"
|
description = "A client library for accessing KittyCAD"
|
||||||
|
|
||||||
authors = []
|
authors = []
|
||||||
|
41
spec.json
41
spec.json
@ -848,14 +848,6 @@
|
|||||||
],
|
],
|
||||||
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
||||||
},
|
},
|
||||||
"output": {
|
|
||||||
"deprecated": true,
|
|
||||||
"description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.",
|
|
||||||
"format": "byte",
|
|
||||||
"nullable": true,
|
|
||||||
"title": "String",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"output_format": {
|
"output_format": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
@ -6128,14 +6120,6 @@
|
|||||||
],
|
],
|
||||||
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
||||||
},
|
},
|
||||||
"output": {
|
|
||||||
"deprecated": true,
|
|
||||||
"description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.",
|
|
||||||
"format": "byte",
|
|
||||||
"nullable": true,
|
|
||||||
"title": "String",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"output_format": {
|
"output_format": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
@ -9187,6 +9171,31 @@
|
|||||||
"window"
|
"window"
|
||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Remove scene objects.",
|
||||||
|
"properties": {
|
||||||
|
"object_ids": {
|
||||||
|
"description": "Objects to remove.",
|
||||||
|
"items": {
|
||||||
|
"format": "uuid",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"uniqueItems": true
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"enum": [
|
||||||
|
"remove_scene_objects"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"object_ids",
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user